Problem/Motivation

Actually the tests of ctools module seems fail @see https://www.drupal.org/pift-ci-job/807372 . That generate lot of noise and can disturb the correct issue validation process.

Proposed resolution

Resolve all Tests marked failled

Remaining tasks

We can start with Ctools.Drupal\ctools\Tests\Wizard\CToolsWizardTest that file seems generate few errors.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

woprrr created an issue. See original summary.

woprrr’s picture

The first part of these error is due to #2820848: Make BlockContent entities publishable the entity key "published" = "status", are added on block_content entity and MASK does add it too.

woprrr’s picture

Status: Active » Needs review
FileSize
3.37 KB

This patch does fixe all problems with block_content changes.

Status: Needs review » Needs work

The last submitted patch, 3: resolve_failed_tests-2922552-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

woprrr’s picture

Status: Needs work » Needs review
FileSize
941 bytes
189.06 KB

Here you are the correct path without follow-up patch added. To me all works well can you test it ?

Here the test for Drupal\ctools\Tests\Wizard\CToolsWizardTest only

Status: Needs review » Needs work

The last submitted patch, 5: resolve_failed_tests-2922552-5.patch, failed testing. View results

woprrr’s picture

Here the final patch with Convert of WebTest to BrowserTest by the way ;) Now all will work :)

I add the patch with enhancer fix to see all errors are fixed with two patches.

The last submitted patch, 7: resolve_failed_tests-2922552-7.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

woprrr’s picture

YAY ! All green with #2922297: Convert deprecated RouteEnhancerInterface use AND this patch applied :)

Just small adjust of coding standards issues.

I think everything is good now :)

geertvd’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me. Great to have these green again!

woprrr’s picture

Yes :) I love this green too. Can we merge both issue fast or you wait a precise date ?

howards’s picture

It looks like part of this patch was already fixed in 8.x-3.x-dev via commit Update the masked BlockContent to mirror the upstream entity definition. The new patch removes that updated code in modules/ctools_entity_mask/tests/modules/entity_mask_test/src/Entity/BlockContent.php because it will not apply against the current -dev.

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Needs work
jonathan1055’s picture

Berdir’s picture

Status: Needs work » Needs review
FileSize
7.68 KB

I don't understand why this includes #2922297: Convert deprecated RouteEnhancerInterface use, that is only a deprecated usage fix and not an actual test fail, and it has its own dedicated issue.

Same for the wizard test, mixing test fixes and all those deprecated conversions makes it so much harder to review the actually necessary fix. Deprecations do *not* cause tests to fail on DrupalCI, they are just warnings.

I fixed the @coversDefaultClass causing the new fail, removed the RouteEnhancer part but kept the phpunit test conversion.

Berdir’s picture

Also fixing the block test.

  • joelpittet committed 7ca5a88 on 8.x-3.x authored by Berdir
    Issue #2922552 by woprrr, Berdir, howards, DamienMcKenna, geertvd,...
joelpittet’s picture

Status: Needs review » Fixed

Thanks @Berdir, that was easy to scan through and fixes the 8.6 test failures.

joelpittet’s picture

@Berdir created a followup for D8.7 #3030158: Fix test fails for 8.7

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.