Skip to content

Repair wp/5.1 branch Actions: Pin the Docker images to versions compatible with this branch - #85660

Merged
desrosj merged 1 commit into
fix-actions-5.1/add-setup-wordpress-actionfrom
fix-actions-5.1/pin-docker-images
Oct 29, 2026
Merged

desrosj merged 1 commit into
fix-actions-5.1/add-setup-wordpress-actionfrom
fix-actions-5.1/pin-docker-images

Conversation

@desrosj

@desrosj desrosj commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Part of #83422.

What?

Pins the wordpress, wordpress:cli and composer images in docker-compose.yml: wordpress:5.1, wordpress:cli-php7.2 and composer:1.7.

Why?

docker-compose.yml used 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.lock pins PHPCS installers that only support Composer 1, so composer install fails and bin/install-docker.sh aborts.
  • The latest WordPress, on PHP 8, isn't the WordPress this branch ships with, and runs on a PHP version WordPress 5.1 doesn't support.

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 the wordpress:5.1 image, 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/installers and dealerdirect/phpcodesniffer-composer-installer require composer-plugin-api ^1.0) and PHP 7 (dealerdirect/phpcodesniffer-composer-installer requires php ^5.3|^7). Of the Composer 1 images, 1.7 is the newest on a PHP version WordPress 5.1 supports: composer:1.8 and 1.9 run PHP 7.4, and composer:1.10 and composer:1 now run PHP 8.5.

mysql:5.7 and chriszarate/wordpress-phpunit were already effectively pinned and are unchanged.

This PR sits near the bottom of the stack, just above the setup-wordpress action (#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

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 26, 2026
@desrosj desrosj self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d9338ee4-854f-4402-bb27-c729fb6ccdf8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

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.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@andrewserong andrewserong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@desrosj
desrosj force-pushed the fix-actions-5.1/pin-docker-images branch from 6f51163 to ba1a4a9 Compare October 29, 2026 12:48
@desrosj
desrosj removed this pull request from stack #85678 October 29, 2026 17:59
@desrosj
desrosj force-pushed the fix-actions-5.1/pin-docker-images branch from ba1a4a9 to fbfdd96 Compare October 29, 2026 18:00
@desrosj
desrosj added this pull request to stack #85963 October 29, 2026 18:01
@desrosj
desrosj force-pushed the fix-actions-5.1/pin-docker-images branch from fbfdd96 to 94819dc Compare October 29, 2026 20:21
@desrosj
desrosj merged commit 642cded into wp/5.1 Oct 29, 2026
6 checks passed
@desrosj
desrosj deleted the fix-actions-5.1/pin-docker-images branch October 29, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants