Repository navigation
Repair wp/6.6 branch Actions: Pin the PHP version used by the end-to-end tests - #85313
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:
|
4ad51c5 to
18dc222
Compare
18dc222 to
45d3e73
Compare
Part of #82784.
What?
Pins the PHP version used by the end-to-end tests to
8.3, the highest version WordPress 6.6 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.3, the same version they happen to run on today, but fixed.How?
.github/workflows/end2end-test.ymlsetsWP_ENV_PHP_VERSION: '8.3'in the workflow-levelenv:.wp-envalready reads this variable and builds its WordPress and WP-CLI images fromwordpress:php8.3andwordpress:cli-php8.3, the same images the8.3unit-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