Repository navigation
Repair wp/6.0 branch Actions: Pin wp-phpunit/wp-phpunit to the WordPress 6.0 test bootstrap - #84279
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 |
63730a3 to
8148231
Compare
|
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. |
8148231 to
7a50367
Compare
|
Size Change: 0 B Total Size: 1.23 MB ℹ️ View Unchanged
|
7a50367 to
6843c72
Compare
|
Size Change: 0 B Total Size: 1.23 MB ℹ️ View Unchanged
|
6843c72 to
848bf7e
Compare
848bf7e to
37b0ae1
Compare
Part of #82933.
What?
Pins the
wp-phpunit/wp-phpunitdev dependency to~6.0.0, the WordPress 6.0 test bootstrap, instead of^5.4.composer.lockmoves it from5.8.2to6.0.14, and nothing else in the lock changes.Why?
Every
PHP 7.4,PHP 8.0andPHP 8.1leg ofunit-test.yml(single-site and multisite, 6 legs) fails identically at PHPUnit startup:This message comes from
wp-phpunit/wp-phpunit's bundled test bootstrap — not from theWordPress/WordPress#6.0-branchcore checkout.wp-env.jsonalready pins.composer.json's^5.4constraint resolves towp-phpunit/wp-phpunit5.8.2, a snapshot of WordPress 5.8's test bootstrap, which hard-rejects any PHPUnit newer than 7.x. Each leg's PHPUnit version is tied toWP_ENV_PHP_VERSION(viapackages/env's PHP-to-PHPUnit Docker image tag mapping), so the7.4/8.0/8.1legs get PHPUnit 8.x/9.x and are rejected outright.wp-phpunit/wp-phpunit6.0.x(matching the WordPress version.wp-env.jsonalready pins for these jobs) dropped the upper-bound check entirely — it only requires PHPUnit>=5.7.21and relies on the already-presentyoast/phpunit-polyfillsdependency for compatibility with modern PHPUnit releases. Constraining to~6.0.0keeps the test bootstrap aligned with the actual WordPress version this branch tests against, rather than floating to whichever5.xrelease happens to be newest.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