Skip to content

Repair wp/7.0 branch Actions: Pin wp-env's WordPress Core version - #82802

Open
desrosj wants to merge 1 commit into
fix-actions-7.0/single-node-version-testingfrom
fix-actions-7.0/pin-wp-env-core-version
Open

desrosj wants to merge 1 commit into
fix-actions-7.0/single-node-version-testingfrom
fix-actions-7.0/pin-wp-env-core-version

Conversation

@desrosj

@desrosj desrosj commented Sep 11, 2026

Copy link
Copy Markdown
Member

Part of #82782.

What?

Pins wp-env's WordPress core checkout to WordPress/WordPress#7.0-branch via .wp-env.json's "core" value, and removes the wordpress test matrix dimension, the WP_ENV_CORE environment variable override, and the compute-previous-wordpress-version job it depended on from unit-test.yml's test-php job.

Why?

.wp-env.json's "core" value was unpinned ("WordPress/WordPress"), so every PHP unit test run built its WordPress environment against whatever commit happened to be on WordPress Core's own trunk at run time. That makes test-php non-reproducible and ties this frozen branch's CI to unrelated, ongoing changes on a different project's default branch — the opposite of what a maintenance branch's CI should depend on. Pinning to Core's own 7.0-branch tests against the WordPress version this Gutenberg branch is actually meant to run alongside, and removing the "previous major version" matrix leg (along with the job that computed which version that was) drops a comparison that only made sense while tracking Core's moving trunk.

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.

@coderabbitai

coderabbitai Bot commented Sep 11, 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

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 64e0e35f-7b9f-4d7f-ab6d-528193847536

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

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.

Copilot AI 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.

🟢 Approval recommended

The valid 7.0 branch pin and corresponding workflow cleanup are consistent and complete.

Pull request overview

Pins wp-env to WordPress Core’s 7.0 maintenance branch and simplifies PHP CI accordingly.

Changes:

  • Pins both wp-env configurations to WordPress/WordPress#7.0-branch.
  • Removes the previous-version lookup and WordPress matrix dimension.
File summaries
File Description
.wp-env.test.json Pins test environments to WordPress 7.0.
.wp-env.json Pins the default environment to WordPress 7.0.
.github/workflows/unit-test.yml Removes obsolete multi-version PHP testing logic.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@desrosj
desrosj force-pushed the fix-actions-7.0/pin-wp-env-core-version branch 2 times, most recently from 4a4849a to 3dc8e58 Compare September 14, 2026 02:32
@desrosj
desrosj force-pushed the fix-actions-7.0/pin-wp-env-core-version branch from 3dc8e58 to 98ff0c6 Compare September 14, 2026 16:42
@desrosj
desrosj marked this pull request as ready for review September 14, 2026 16:57
@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.

@desrosj
desrosj force-pushed the fix-actions-7.0/pin-wp-env-core-version branch from 98ff0c6 to 93a91ee Compare September 14, 2026 17:01
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