Repository navigation
Repair wp/5.1 branch Actions: Pin the Docker images to versions compatible with this branch - #85660
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:
|
6f51163 to
ba1a4a9
Compare
ba1a4a9 to
fbfdd96
Compare
fbfdd96 to
94819dc
Compare
Part of #83422.
What?
Pins the
wordpress,wordpress:cliandcomposerimages indocker-compose.yml:wordpress:5.1,wordpress:cli-php7.2andcomposer:1.7.Why?
docker-compose.ymlused floating tags. When this branch was current they resolved to WordPress 5.1, WP-CLI on the same PHP, and Composer 1. Today they resolve to the latest WordPress on PHP 8 and to Composer 2, which breaks the environment the PHP and end-to-end tests run in:composer.lockpins PHPCS installers that only support Composer 1, socomposer installfails andbin/install-docker.shaborts.How?
Each image is pinned to match this branch, and only uses PHP versions WordPress 5.1 supports (PHP 5.2 to 7.3):
wordpress:5.1: WordPress 5.1.1 on PHP 7.2.18, the WordPress release this branch ships with, so the plugin is tested against the WordPress it was written for.wordpress:cli-php7.2: WP-CLI on PHP 7.2, the same PHP as thewordpress:5.1image, so both containers that load WordPress run the same PHP.composer:1.7: Composer 1.7.3 on PHP 7.3. The lock needs Composer 1 (composer/installersanddealerdirect/phpcodesniffer-composer-installerrequirecomposer-plugin-api ^1.0) and PHP 7 (dealerdirect/phpcodesniffer-composer-installerrequiresphp ^5.3|^7). Of the Composer 1 images, 1.7 is the newest on a PHP version WordPress 5.1 supports:composer:1.8and1.9run PHP 7.4, andcomposer:1.10andcomposer:1now run PHP 8.5.mysql:5.7andchriszarate/wordpress-phpunitwere already effectively pinned and are unchanged.This PR sits near the bottom of the stack, just above the
setup-wordpressaction (#85659) that starts these images, so the GitHub Actions workflows added above it (#85661 and the next two PRs) run on these versions from the start. It was previously a commit inside the unit test workflow PR.Testing Instructions
The pinned images exist on Docker Hub. The PHP and end-to-end jobs added above this PR run against them.
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