Repository navigation
Repair wp/7.0 branch Actions: Pin the PHP version used by the end-to-end tests - #85317
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
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
347e9ac to
3f7eb3f
Compare
3f7eb3f to
7e4275f
Compare
Part of #82782.
What?
Pins the PHP version used by the end-to-end tests to
8.5, the highest version WordPress 7.0 supports.Why?
The end-to-end workflow sets no PHP version and
.wp-env.jsonhas nophpVersion, sowp-envbuilds the WordPress containers from the floatingwordpressandwordpress:cliimages. Those follow Docker Hub'slatesttag, which is PHP 8.3 today, and they move to a new PHP version whenever Docker Hub retagslatest, with no change on this branch. The unit tests already pin their PHP version throughWP_ENV_PHP_VERSION.wp/5.5ran into this: on the floating image's PHP 8.3, 10 of its end-to-end tests failed, which led to #85012 and #85013.With this change, the end-to-end tests run on PHP
8.5, a higher version than today's PHP 8.3.How?
.github/workflows/end2end-test.ymlsetsWP_ENV_PHP_VERSION: '8.5'in the workflow-levelenv:.wp-envalready reads this variable and builds its WordPress and WP-CLI images fromwordpress:php8.5andwordpress:cli-php8.5, the same images the8.5unit-test legs use.Testing Instructions
Check that the end-to-end jobs on this pull request pass.
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