Repository navigation
Repair wp/5.5 branch Actions: Pin phpunit/phpunit to a PHP 5.6/7.0-compatible release - #85016
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Size Change: 0 B Total Size: 1.14 MB ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
8a596fe to
1ca2bd8
Compare
Part of #82938.
What?
composer.json: addsphpunit/phpunit^5.7(resolves to5.7.27), setsconfig.platform.phpto5.6.20andrequire.phpto>=5.6.20, and ignores advisoriesPKSA-z3gr-8qht-p93v,PKSA-v5yj-8nmz-sk2q,PKSA-ft77-7h5f-p3r6,PKSA-b14r-zh1d-vdrcandPKSA-xz3r-9gp4-4m1z.composer.lock: regenerated withcomposer update phpunit/phpunit --with-all-dependencies. Only PHPUnit's dependency tree changes, and it's now the same aswp/5.9's.The workflow doesn't change: every leg keeps running the PHPUnit bundled in its
wordpressdevelop/phpunitimage.Why?
yoast/phpunit-polyfills, which WordPress 5.5's test library requires (#85015, directly below), requiresphpunit/phpunit. Without a constraint, Composer resolved PHPUnit9.6.38intovendor. The test bootstrap loadsvendor/autoload.php, so thePHP 5.6andPHP 7.0legs would load PHPUnit 9.6's classes, which they can't parse.PHPUnit 5.7 is the newest release that parses on PHP 5.6. It's only there for the Polyfills and the autoloader. Each leg's image ships a PHPUnit that WordPress 5.5's test library accepts, so this branch needs nothing else:
5.6-fpm7.0-fpm7.4-fpmHow?
Same setup as
wp/5.9(#84415) andwp/6.0(#84281).wp/5.8,wp/5.7andwp/5.6lock PHPUnit 7.5 and swap it on thePHP 5.6andPHP 7.0legs instead, because theirPHP 8.0legs need it and no PHPUnit 7 image exists for PHP 8.0. This branch has noPHP 8.0leg.platform.php5.6.20is the matrix's lowest PHP version and therequire.phpfloor. With a higher platform, Composer picks dependencies that need PHP 7.1+.PKSA-z3gr-8qht-p93vcovers everyphpunit/phpunitrelease below8.5.52. The foursymfony/yamladvisories cover every 2.x–4.x release, which PHPUnit 5.7 requires. They usewp/5.9's reasons;PKSA-xz3r-9gp4-4m1z(CVE-2026-109413) was published on 2026-08-30, afterwp/5.9's list was written.composer install --dry-runagainst the new lock installs cleanly for PHP 5.6.20, and thePHP coding standardsjob's install on PHP 7.4 only gets PHP 5.6-compatible packages.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code