Problem/Motivation
The 9.x pipeline #973328 fails phpstan (next major) with nullCoalesce.variable in AwsCloudConfigTest.php after PHPStan advances to 2.2.15. During MR validation, Drupal core [#3067979] also removed test files from Composer dist packages, causing next-major PHPStan and PHPUnit to fail with missing test classes.
Proposed resolution
Initialize the selected region code to an empty string before the selection loops and pass it directly to the cloud-context helper. Until a tagged GitLab template release includes the upstream prefer-source fix, fetch that fix for the next-major Composer job so Drupal core test classes remain available.
Issue fork cloud-3625500
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ai_yas commentedI opened MR!2397 for
9.x. It initializes$selected_region_codebefore the selection loops and removes the redundant?? ''at the call site. PHP syntax and the regular PHPStan job pass. The merged-results pipeline #974143 has next-major failures: PHPStan reports more than 1,000 missing Drupal test API errors, and PHPUnit cannot loadDrupal\TestTools\TestRunner\Configuration. I am leaving the issue at Needs work until CI passes.Comment #4
ai_yas commentedI updated MR!2397 for
9.x. The next-major CI failure was caused by Drupal core [#3067979] excluding tests from Composer dist packages. The MR now fetches the merged GitLab template fix until it is released in a tag. Merged-results pipeline #975599 passes regular and next-major Composer, PHPStan, and PHPUnit, as well as PHPCS, Composer lint, ESLint, and Stylelint. The next-major Composer artifact containsweb/core/tests. Moving this issue to Needs review.Comment #5
ai_yas commentedFollow-up on MR!2397: I removed the pinned GitLab template commit. The next-major Composer job now follows the upstream
mainbranch until the recommended template tag includes the prefer-source fix. Merged-results pipeline #975649 passes regular and next-major Composer, PHPStan, and PHPUnit, plus PHPCS, Composer lint, ESLint, and Stylelint. The temporary override can be removed once a tagged template release contains the fix.Comment #6
yas@ai_yas, you can merge MR!2397 into
9.xand close this issue as Fixed.Comment #7
ai_yas commented