From 3261396897822345e7921b2c874c114e5a6a7cc9 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 18 Sep 2026 15:21:22 -0400 Subject: [PATCH] Pin WordPress 7.0 for performance testing. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `.wp-env.json` file pins Core as `WordPress/WordPress#7.0-branch`, so every other test suite on this branch runs against WordPress 7.0. The performance tests do not: `bin/plugin/cli.js perf` builds its own, separate `.wp-env.json` for each branch it measures, and that file's `core` field is only pinned when an explicit `--wp-version` argument is passed on the command line. The `pull_request` step never passed one, so it silently fell back to `WordPress/WordPress` — WordPress Core's own development trunk, which moves continuously. Measuring a frozen plugin snapshot against a moving Core install makes the results meaningless at best, and breaks the suite outright once Core's architecture drifts far enough from what this branch's editor expects. Passing `--wp-version "7.0"` resolves to `https://wordpress.org/wordpress-7.0.zip`, giving the performance tests the same Core pin every other suite on this branch already uses. The `release`, `push`, and `workflow_dispatch` steps in this workflow already pass `--wp-version`; only the `pull_request` step was missing it. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8 --- .github/workflows/performance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 1929b2b0cb9562..1701341b51cbdb 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -56,7 +56,7 @@ jobs: - name: Compare performance with base branch if: github.event_name == 'pull_request' - run: ./bin/plugin/cli.js perf "$GITHUB_SHA" "$GITHUB_BASE_REF" --tests-branch "$GITHUB_SHA" + run: ./bin/plugin/cli.js perf "$GITHUB_SHA" "$GITHUB_BASE_REF" --tests-branch "$GITHUB_SHA" --wp-version "7.0" - name: Compare performance with current WordPress Core and previous Gutenberg versions if: github.event_name == 'release'