Skip to content

Repair wp/6.2 branch Actions: Pin the PHP version used by the end-to-end tests - #85343

Open
desrosj wants to merge 1 commit into
fix-actions-6.2/fix-e2e-artifact-name-collisionsfrom
fix-actions-6.2/pin-e2e-php-version
Open

desrosj wants to merge 1 commit into
fix-actions-6.2/fix-e2e-artifact-name-collisionsfrom
fix-actions-6.2/pin-e2e-php-version

Conversation

@desrosj

@desrosj desrosj commented Oct 21, 2026

Copy link
Copy Markdown
Member

Part of #82931.

What?

Pins the PHP version used by the end-to-end tests to 8.2, the highest version WordPress 6.2 supports.

Why?

The end-to-end workflow sets no PHP version and .wp-env.json has no phpVersion, so wp-env builds the WordPress containers from the floating wordpress and wordpress:cli images. Those follow Docker Hub's latest tag, which is PHP 8.3 today, and they move to a new PHP version whenever Docker Hub retags latest, with no change on this branch. The unit tests already pin their PHP version through WP_ENV_PHP_VERSION. wp/5.5 ran 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.2, a lower version than today's PHP 8.3.

How?

.github/workflows/end2end-test.yml sets WP_ENV_PHP_VERSION: '8.2' in the workflow-level env:. wp-env already reads this variable and builds its WordPress and WP-CLI images from wordpress:php8.2 and wordpress:cli-php8.2, the same images the 8.2 unit-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

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

coderabbitai Bot commented Oct 21, 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: 33601aef-cd14-4213-baba-5b1d170b3c8a

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

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. You can also manually ask me to refresh this list by adding the props-bot label.

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>

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

This branch has not been deployed

No deployments
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