Skip to content

Try: Run e2e tests in parallel, on one wp-env site per two cores - #85420

Merged
ellatrix merged 16 commits into
trunkfrom
try/e2e-four-wp-envs
Oct 23, 2026
Merged

ellatrix merged 16 commits into
trunkfrom
try/e2e-four-wp-envs

Conversation

@ellatrix

@ellatrix ellatrix commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

What?

An experiment to make the e2e jobs faster by running several tests at a time in each job, each on its own wp-env test environment: one per two cores, so two on public repositories' four-core runners and one, as now, on private repositories' two-core runners. Not meant to merge as is.

Why?

Each e2e job runs one test at a time, and the jobs take 16 to 25 minutes. Every site stays exactly as on trunk (its own Apache and MySQL containers, set up by wp-env); there are just more of them per job.

How?

  1. One site per worker. Gutenberg's own Playwright config reads WP_BASE_URLS, a comma-separated list of sites. Each worker uses the site matching its worker number (TEST_PARALLEL_INDEX) and its own login file, and the worker count is the number of sites. The global setup logs in to and resets every site. @wordpress/scripts is unchanged.
  2. One queue. Each job runs trunk's test command with --fully-parallel, so the workers take single tests from one queue and finish together.
  3. One environment per two cores. test/e2e/wp-env-instances.sh writes a copy of .wp-env.test.json per site with absolute paths and their own ports, each in its own folder so wp-env treats them as separate, starts them at the same time, and outputs their addresses.
  4. Site address fix. activateTheme() and setupRest() used the WP_BASE_URL read when the module loads instead of the site the RequestUtils was created with.
  5. Tests that relied on earlier tests. Splitting by test puts tests from one file on different sites, which showed tests that only passed because of what an earlier test left behind: the cover focal point and block bindings tests now open the sidebar, the settings test skips the generated rewrite_rules option, the navigation search test deletes existing pages first, and the style revisions tests run in order.

Results so far

Minutes per job, with the change from trunk in brackets:

  • Trunk: average of its last 12 runs.
  • Fewer traces: trunk plus recording a trace only when a failed test is retried (E2E tests: Record traces only when a failed test is retried #85428, now merged into trunk), one run.
  • Three sites: trunk plus three sites per job, still recording a trace for every test, one run. Job 3 retried two timed-out collaboration tests.
  • Both: this PR, one run.
Job Trunk Fewer traces Three sites Both
1 22.1 19.1 (−14%) 16.2 (−27%) 13.6 (−38%)
2 21.3 14.3 (−33%) 15.5 (−27%) 13.1 (−38%)
3 19.5 15.2 (−22%) 20.7 (+6%) 10.6 (−46%)
4 23.3 21.0 (−10%) 18.4 (−21%) 15.6 (−33%)
5 21.7 19.7 (−9%) 18.5 (−15%) 11.5 (−47%)
6 23.5 14.2 (−40%) 20.3 (−14%) 12.6 (−46%)
7 21.4 16.1 (−25%) 12.0 (−44%) 14.9 (−30%)
8 23.0 19.4 (−16%) 19.9 (−13%) 14.8 (−36%)
Total machine time 176 139 (−21%) 142 (−20%) 107 (−39%)
Slowest job 25.6 21.0 (−18%) 20.7 (−19%) 15.6 (−39%)
  1. Together about 40% faster than trunk: 107 instead of 176 machine minutes, and the whole run finishes in about 16 minutes instead of 26.
  2. Two sites are as fast as three. Over several runs with fewer traces, two sites averaged 114 machine minutes (five runs) and three sites 109 (three runs), with the slowest job at about 16 minutes for both. Runs vary by more than that difference, so the PR uses two.
  3. The CPU is the limit. With three sites the four cores are 97% busy. Headless Chromium uses most of it (about half a core per browser), then Apache.
  4. GitHub's machines come in two speeds. Per test, jobs slow down either 1.4 to 1.8× or 2.2 to 2.4× compared with trunk, whatever tests they run, so single runs swing by about 10% depending on which machines they get. Per-job numbers need several runs.

Testing Instructions

Compare the Playwright job times and failures with trunk.

To run locally on several sites, start them and list them:

WP_BASE_URLS=http://localhost:8889,http://localhost:8891 npm run test:e2e

Use of AI Tools

Written with Claude Code.

🤖 Generated with Claude Code

The job starts four separate wp-env test environments, each with its own
WordPress and MySQL containers on its own port, and runs a quarter of the
job's tests against each at the same time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

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: ellatrix <ellatrix@git.wordpress.org>

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

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: 0 B

Total Size: 9.07 MB

96d9bc7 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 6efc0c3 trunk % Change
timeToFirstByte 42.7 ms +16.63% -3.98% 43.2 ms +3.12% -2.89% -1.16%
largestContentfulPaint 76 ms +10.53% -10.53% 72 ms +8.33% -5.56% 5.56%
lcpMinusTtfb 29.55 ms +19.8% -6.26% 28.15 ms +22.74% -5.68% 4.97%
wpBeforeTemplate 23.04 ms +19.7% -4.77% 22.74 ms +3.3% -1.8% 1.32%
wpTemplate 16.51 ms +9.39% -3.76% 16.45 ms +4.5% -2.37% 0.36%
wpTotal 39.44 ms +16.15% -4.06% 39.96 ms +3.8% -3.23% -1.3%
wpMemoryUsage 7.68 MB +0% -0% 7.65 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 6efc0c3 trunk % Change
timeToFirstByte 35.05 ms +7.7% -0.71% 36.95 ms +4.19% -3.79% -5.14%
largestContentfulPaint 80 ms +5% -0% 82 ms +2.44% -2.44% -2.44%
lcpMinusTtfb 44.85 ms +1% -1.56% 45.2 ms +2.32% -2.21% -0.77%
wpBeforeTemplate 19.68 ms +1.47% -1.27% 20.25 ms +1.98% -2.37% -2.81%
wpTemplate 12.83 ms +4.21% -2.57% 13.53 ms +3.33% -3.77% -5.17%
wpTotal 32.48 ms +7.33% -0.95% 34.2 ms +4.27% -3.83% -5.03%
wpMemoryUsage 6.37 MB +0% -0% 6.34 MB +0% -0% 0.54%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 6efc0c3 trunk % Change
mediaProcessingJpeg 324.98 ms +0.55% -1.2% 323.32 ms +3.28% -1.22% 0.51%
mediaProcessingAvif 4828.98 ms +0.13% -0.2% 4794.91 ms +0.23% -0.22% 0.71%
mediaProcessingJpegToAvif 3358.52 ms +0.13% -0.18% 3360.99 ms +0.06% -0.27% -0.07%

media-upload

Metric 6efc0c3 trunk % Change
jpegUploadProcessing 1419.19 ms +0.72% -1.39% 1396.26 ms +1.01% -1.09% 1.64%
pngUploadProcessing 195.83 ms +3.8% -4.34% 186.37 ms +3.5% -2.11% 5.08%
largeJpegUploadProcessing 1401.14 ms +1.22% -0.37% 1410.34 ms +0.67% -1.09% -0.65%
multipleImageUploadProcessing 1491.97 ms +0.35% -1.94% 1467.87 ms +1.96% -0.05% 1.64%

post-editor

Metric 6efc0c3 trunk % Change
serverResponse 260.74 ms +6.27% -4.94% 275.22 ms +0.98% -11.64% -5.26%
firstPaint 250.57 ms +36.7% -23.08% 207.03 ms +58.86% -22.28% 21.03%
domContentLoaded 760.65 ms +3.11% -2.92% 742.23 ms +2.78% -1.57% 2.48%
loaded 761.52 ms +3.11% -2.92% 742.97 ms +2.77% -1.57% 2.5%
firstContentfulPaint 348.29 ms +3.24% -21.09% 341.16 ms +1.98% -3.6% 2.09%
firstBlock 2105.4 ms +2.68% -0.91% 2068.34 ms +3.2% -0.7% 1.79%
type 14.19 ms +2.18% -2.75% 14.19 ms +4.86% -2.82% 0%
typeWithoutInspector 14.46 ms +3.25% -2.63% 14.46 ms +14.45% -3.6% 0%
typeWithTopToolbar 19.36 ms +6.87% -3.82% 17.91 ms +3.13% -3.8% 8.1%
typeContainer 6.61 ms +4.08% -5.3% 6.48 ms +8.95% -5.71% 2.01%
focus 81.46 ms +9.01% -5.6% 75.51 ms +14.74% -3.28% 7.88%
firstFocus 177.55 ms +0% -0% 156.79 ms +0% -0% 13.24%
selectAll 371.58 ms +0.43% -0.63% 354.39 ms +1.17% -1.95% 4.85%
listViewOpen 51.31 ms +8.15% -10.52% 48.33 ms +9.39% -4.47% 6.17%
inserterOpen 28.92 ms +13.93% -13.04% 31.67 ms +9.31% -11.94% -8.68%
inserterHover 9.09 ms +9.46% -3.85% 9.07 ms +5.4% -6.39% 0.22%
inserterSearch 6.6 ms +11.82% -5.61% 6.66 ms +3.75% -8.71% -0.9%
loadPatterns 423.91 ms +2.91% -1.4% 444.9 ms +1.84% -2.86% -4.72%
wpTotal 254.04 ms +6.45% -5.12% 268.55 ms +0.97% -11.94% -5.4%
wpMemoryUsage 14.71 MB +0% -0% 14.68 MB +0% -0% 0.24%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 6efc0c3 trunk % Change
serverResponse 220.11 ms +10.24% -4.03% 232.13 ms +3.68% -4.63% -5.18%
firstPaint 168.79 ms +13.14% -12.64% 256.61 ms +21.92% -42.2% -34.22%
domContentLoaded 726.09 ms +3.14% -2.8% 702.8 ms +5.33% -2.89% 3.31%
loaded 727.11 ms +3.11% -2.82% 703.58 ms +5.33% -2.92% 3.34%
firstContentfulPaint 308.06 ms +4.1% -2.77% 291.96 ms +9.67% -14.99% 5.51%
firstBlock 2543.87 ms +0.59% -1.63% 2521.06 ms +1.62% -1.47% 0.9%
type 13.31 ms +2.1% -0.3% 12.34 ms +5.19% -2.67% 7.86%
navigate 87.29 ms +3.29% -4.62% 77.82 ms +5.11% -2.24% 12.17%
loadPatterns 813.61 ms +6.08% -10.44% 731.18 ms +3.55% -2.46% 11.27%
loadPages 926.76 ms +6.7% -1.46% 962.15 ms +3.3% -5.2% -3.68%
wpTotal 214.05 ms +10.18% -3.98% 226.18 ms +3.76% -4.78% -5.36%
wpMemoryUsage 12.73 MB +0% -0% 12.70 MB +0% -0% 0.24%
wpDbQueries 45 +0% -2.22% 45 +0% -2.22% 0%

96d9bc7 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

Backspace in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  -  5
+ Received  + 11

@@ -1,25 +1,31 @@
  Array [
    Object {
      "innerBlocks": Array [
        Object {
          "attributes": Object {
-           "content": "1",
+           "content": "1‸a",
          },
-         "innerBlocks": Array [
+         "innerBlocks": Array [],
+         "name": "core/list-item",
+       },
        Object {
+         "attributes": Object {
+           "content": "2",
+         },
          "innerBlocks": Array [
            Object {
              "attributes": Object {
-                   "content": "a‸2",
+               "ordered": false,
+               "values": "",
              },
-                 "name": "core/list-item",
-               },
+             "innerBlocks": Array [
                Object {
                  "attributes": Object {
                    "content": "b",
                  },
+                 "innerBlocks": Array [],
                  "name": "core/list-item",
                },
              ],
              "name": "core/list",
            },

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:2041:42
Custom Completer: should allow newlines after multiple option completions in /test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 2
+ Received  + 2

@@ -5,15 +5,15 @@
  <!-- wp:paragraph -->
  <p>🫐 test</p>
  <!-- /wp:paragraph -->

  <!-- wp:paragraph -->
- <p>🫐 test</p>
+ <p>~🍎 test</p>
  <!-- /wp:paragraph -->

  <!-- wp:paragraph -->
- <p>🫐 test</p>
+ <p>🍎 test</p>
  <!-- /wp:paragraph -->

  <!-- wp:paragraph -->
  <p></p>
  <!-- /wp:paragraph -->

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js:466:6
Delete (forward) in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  -  5
+ Received  + 11

@@ -1,25 +1,31 @@
  Array [
    Object {
      "innerBlocks": Array [
        Object {
          "attributes": Object {
-           "content": "1",
+           "content": "1‸a",
          },
-         "innerBlocks": Array [
+         "innerBlocks": Array [],
+         "name": "core/list-item",
+       },
        Object {
+         "attributes": Object {
+           "content": "2",
+         },
          "innerBlocks": Array [
            Object {
              "attributes": Object {
-                   "content": "a‸2",
+               "ordered": false,
+               "values": "",
              },
-                 "name": "core/list-item",
-               },
+             "innerBlocks": Array [
                Object {
                  "attributes": Object {
                    "content": "b",
                  },
+                 "innerBlocks": Array [],
                  "name": "core/list-item",
                },
              ],
              "name": "core/list",
            },

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:2056:42
Undo restores the post selection when another synced entity is loaded (RTC WebSocket) in /test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

  Object {
    "attributeKey": "content",
    "blockIndex": 0,
    "content": "abcdef",
-   "endOffset": 3,
-   "offset": 3,
+   "endOffset": 6,
+   "offset": 6,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts:363:5
can apply custom gradient background color in /test/e2e/specs/editor/blocks/buttons.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 1
+ Received  + 1

  <!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button {"style":{"background":{"gradient":"linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,255,0) 100%)"}}} -->
+ <div class="wp-block-buttons"><!-- wp:button {"style":{"background":{"gradient":"linear-gradient(135deg,rgb(6,147,227) 0%,rgb(0,255,0) 100%)"}}} -->
  <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
  <!-- /wp:button --></div>
  <!-- /wp:buttons -->
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:411:21
should cut and paste individual blocks with collapsed selection in /test/e2e/specs/editor/various/copy-cut-paste.spec.js, passed after 1 failed attempt.
Error: expect(string).toMatchSnapshot(expected) failed

  @@ -1,3 +1,3 @@
   <!-- wp:paragraph -->
  -<p>2Cut - collapsed selection</p>
  +<p>2</p>
   <!-- /wp:paragraph -->


    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:45:49
should gradually multi-select in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 3
+ Received  + 7

  Array [
    Object {
-     "name": "core/column",
+     "attributes": Object {
+       "content": "1",
+       "dropCap": false,
      },
-   Object {
-     "name": "core/column",
+     "clientId": "e1b530ff-c690-4c53-b6cc-7b8af1e5c9e3",
+     "innerBlocks": Array [],
+     "isValid": true,
+     "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:1151:5
should indent and outdent a list item when its content is fully selected in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 7
+ Received  + 7

  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>a<!-- wp:list -->
- <ul class="wp-block-list"><!-- wp:list-item -->
- <li>b</li>
+ <li></li>
+ <!-- /wp:list-item --></ul>
- <!-- /wp:list-item --></ul>
+ <!-- /wp:list -->
+
- <!-- /wp:list --></li>
- <!-- /wp:list-item --></ul>
+ <!-- wp:paragraph -->
+ <p>b</p>
- <!-- /wp:list -->
+ <!-- /wp:paragraph -->

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:819:52
should insert a line break on shift+enter in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 1
+ Received  + 1

  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>a<br></li>
+ <li><br></li>
  <!-- /wp:list-item --></ul>
  <!-- /wp:list -->

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1210:52
should keep a full selection when outdenting nested items with Shift+Tab in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Indent"]')

    at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:17:15)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1166:3
should keep a selection ending after a non-breaking space in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 2
+ Received  + 2

  Object {
-   "anchorOffset": 3,
+   "anchorOffset": 1,
    "blocks": 2,
-   "focusOffset": 2,
+   "focusOffset": 1,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:2326:37
should merge a following sibling list into the outermost list with Delete from a nested item (#77245) in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

@@ -8,11 +8,11 @@
          "innerBlocks": Array [
            Object {
              "innerBlocks": Array [
                Object {
                  "attributes": Object {
-                   "content": "b‸",
+                   "content": "b",
                  },
                  "name": "core/list-item",
                },
              ],
              "name": "core/list",
@@ -25,11 +25,11 @@
    },
    Object {
      "innerBlocks": Array [
        Object {
          "attributes": Object {
-           "content": "1",
+           "content": "‸1",
          },
          "innerBlocks": Array [
            Object {
              "innerBlocks": Array [
                Object {

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:2854:41
should only mutate text data on input in /test/e2e/specs/editor/various/rich-text.spec.js, passed after 1 failed attempt.
Error: locator.evaluate: Error: The selection change event listener was never called.
    at eval (eval at evaluate (:311:30), <anonymous>:6:15)
    at UtilityScript.evaluate (<anonymous>:313:16)
    at UtilityScript.<anonymous> (<anonymous>:1:44)
    at eval (eval at evaluate (:311:30), <anonymous>:6:15)
    at UtilityScript.evaluate (<anonymous>:313:16)
    at UtilityScript.<anonymous> (<anonymous>:1:44)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:407:42
should replace selected non-breaking spaces from the toolbar in /test/e2e/specs/editor/various/rich-text.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 1
+ Received  + 1

  Array [
    Object {
      "attributes": Object {
-       "content": "one two three",
+       "content": "ne two three",
      },
      "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:1050:41
should update the URL from the last navigation if only varies in the URL fragment in /test/e2e/specs/interactivity/router-navigate.spec.ts, passed after 1 failed attempt.
Error: expect(locator).toHaveText(expected) failed

Locator:  getByTestId('title')
Expected: "Link 1"
Received: "Main"
Timeout:  5000ms

Call log:
  - Expect "toHaveText" getByTestId('title') with timeout 5000ms
  - waiting for getByTestId('title')
    14 × locator resolved to <h2 data-testid="title">Main</h2>
       - unexpected value "Main"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:160:25
shows title and sync status while creating a new synced pattern in the post editor in /test/e2e/specs/editor/various/post-summary/post-summary.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeVisible() failed

Locator: getByRole('dialog', { name: 'Create pattern' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('dialog', { name: 'Create pattern' }) with timeout 5000ms
  - waiting for getByRole('dialog', { name: 'Create pattern' })

    at createPatternFromModal (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-summary/post-summary.spec.js:179:26)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-summary/post-summary.spec.js:101:4

96d9bc7 Run

ellatrix and others added 6 commits October 22, 2026 17:22
… use

The focal point test relied on an earlier test leaving the sidebar open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Style revisions run in order, the settings test skips the generated
rewrite rules, and the navigation search test starts without pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WP_BASE_URLS takes a comma-separated list of sites. Each Playwright worker
uses the site matching its worker number, the worker count defaults to the
number of sites, and global setup prepares every site. The CI job starts
three environments and runs trunk's test command with --fully-parallel.

The theme and REST helpers now use the RequestUtils' own address instead
of the WP_BASE_URL read when the module loads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added [Tool] WP Scripts /packages/scripts [Tool] E2E Test Utils /packages/e2e-test-utils-playwright labels Oct 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ellatrix ellatrix changed the title Try: Run each e2e shard on four wp-env environments Try: Run each e2e job on three wp-env sites with one worker each Oct 23, 2026
ellatrix and others added 7 commits October 22, 2026 20:51
Recording a trace for every passing test made the same tests use about 40%
more CPU, which pushed the collaboration block gauntlet past its time limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They relied on an earlier test leaving the sidebar open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Private repositories get two-core runners, where a second site would
compete with the first for the CPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…our-wp-envs

# Conflicts:
#	packages/e2e-test-utils-playwright/CHANGELOG.md
…our-wp-envs

# Conflicts:
#	test/e2e/playwright.config.ts
@ellatrix
ellatrix marked this pull request as ready for review October 23, 2026 15:06
@ellatrix
ellatrix requested a review from desrosj as a code owner October 23, 2026 15:06
@ellatrix ellatrix added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Oct 23, 2026
@ellatrix ellatrix changed the title Try: Run each e2e job on three wp-env sites with one worker each Try: Run e2e tests in parallel, on one wp-env site per two cores Oct 23, 2026
Keeps @wordpress/scripts unchanged, so WP_BASE_URLS is no new public setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the [Tool] WP Scripts /packages/scripts label Oct 23, 2026
@ellatrix

Copy link
Copy Markdown
Member Author

Let's try it

@ellatrix
ellatrix merged commit f6becc1 into trunk Oct 23, 2026
87 checks passed
@ellatrix
ellatrix deleted the try/e2e-four-wp-envs branch October 23, 2026 23:28
@github-actions github-actions Bot added this to the Gutenberg 24.4 milestone Oct 23, 2026
@ellatrix ellatrix added the Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Oct 26, 2026
@t-hamano t-hamano added Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta and removed Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Oct 27, 2026
@github-actions

Copy link
Copy Markdown

There was a conflict while trying to cherry-pick the commit to the wp/7.2 branch. Please resolve the conflict manually and create a PR to the wp/7.2 branch.

PRs to wp/7.2 are similar to PRs to trunk, but you should base your PR on the wp/7.2 branch instead of trunk.

# Checkout the wp/7.2 branch instead of trunk.
git checkout wp/7.2

# Create a new branch for your PR.
git checkout -b my-branch

# Cherry-pick the commit.
git cherry-pick f6becc15d4e81fe749ce0188139715d0896d8a10

# Check which files have conflicts.
git status

# Resolve the conflict...
# Add the resolved files to the staging area.
git status
git add .
git cherry-pick --continue

# Push the branch to the repository
git push origin my-branch

# Create a PR and set the base to the wp/7.2 branch.
# See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request.

@t-hamano

Copy link
Copy Markdown
Contributor

@ellatrix If this PR is needed for WordPress 7.2, can you manually create a backport PR?

desrosj added a commit that referenced this pull request Oct 28, 2026
Backports the focal point test change from #85420 (f6becc1).

The test fills the focal point fields in the block settings sidebar without
opening it. The test before it shrinks the viewport, which closes the sidebar
and saves that as a user preference. On runners with fewer resources, such as
those used by private forks, that preference is saved before the test ends.
The focal point test then starts with the sidebar closed and fails on every
attempt.


Claude-Session: https://claude.ai/code/session_011Y86gzn3apHfS8kjjkmzTW

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
desrosj added a commit that referenced this pull request Oct 28, 2026
Backports the focal point test change from #85420 (f6becc1).

The test fills the focal point fields in the block settings sidebar without
opening it. The test before it shrinks the viewport, which closes the sidebar
and saves that as a user preference. On runners with fewer resources, such as
those used by private forks, that preference is saved before the test ends.
The focal point test then starts with the sidebar closed and fails on every
attempt.


Claude-Session: https://claude.ai/code/session_011Y86gzn3apHfS8kjjkmzTW

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
desrosj added a commit that referenced this pull request Oct 28, 2026
Backports the focal point test change from #85420 (f6becc1).

The test fills the focal point fields in the block settings sidebar without
opening it. The test before it shrinks the viewport, which closes the sidebar
and saves that as a user preference. On runners with fewer resources, such as
those used by private forks, that preference is saved before the test ends.
The focal point test then starts with the sidebar closed and fails on every
attempt.


Claude-Session: https://claude.ai/code/session_011Y86gzn3apHfS8kjjkmzTW

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
desrosj added a commit that referenced this pull request Oct 28, 2026
Backports the focal point test change from #85420 (f6becc1).

The test fills the focal point fields in the block settings sidebar without
opening it. The test before it shrinks the viewport, which closes the sidebar
and saves that as a user preference. On runners with fewer resources, such as
those used by private forks, that preference is saved before the test ends.
The focal point test then starts with the sidebar closed and fails on every
attempt.


Claude-Session: https://claude.ai/code/session_011Y86gzn3apHfS8kjjkmzTW

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Mamaduka Mamaduka added Backported to WP Core Pull request that has been successfully merged into WP Core and removed Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Nov 3, 2026
wporg-sync pushed a commit to WordPress/wordpress-develop that referenced this pull request Nov 3, 2026
This updates the pinned commit hash of the Gutenberg repository from `cc75a79186fd23e72eb015d594e82f40c6209eb5` to `c035c1a649ef68f5c1646694cf440df1d7ae6e62` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@cc75a79...c035c1a

- Components: Use solid brand highlights for popup items (WordPress/gutenberg#84583) (#85848)
- Fix endless sideload loop when the browser can't decode a big image (WordPress/gutenberg#83530)
- Notes: Show reaction picker as a row of emoji (WordPress/gutenberg#85819) (#85892)
- Notes: Add thumbs up and plus reactions (WordPress/gutenberg#85565)
- Notes: Share thread focus recovery across actions (WordPress/gutenberg#85455)
- Core Fields: Prevent extra space between `/` and text in slug input (WordPress/gutenberg#85935)
- Notes: Add search and a status filter to the All Notes sidebar (WordPress/gutenberg#84060)
- Notes: Use the note permission check when deleting a reaction (WordPress/gutenberg#85883)
- [WP 7.2] Math block: Keyboard focus is trapped in the LaTeX field when the formula has an error (WordPress/gutenberg#86032)
- Core fields: Keep the status icon full size when its label wraps (WordPress/gutenberg#85828) (#86050)
- [WP 7.2] ToolsPanel: Keep the "Reset" label visible on the highlighted menu item (WordPress/gutenberg#86060)
- Interactivity Router: Ignore router regions and attachTo targets inside data-wp-html content (WordPress/gutenberg#84919) (#86059)
- [WP 7.2] wp-build: Derive CSS module class names from each stylesheet's CSS (WordPress/gutenberg#86062)
- Playlist: Allow track without an attachment ID to render on the frontend (WordPress/gutenberg#83880) (#86158)
- UI: Show only the day number in Calendar day cells (WordPress/gutenberg#86010) (#86183)
- Notes: Tolerate a null comment in the reaction cascade hooks (WordPress/gutenberg#85959)
- Rich Text: Remove stale format boundary when field loses selection (WordPress/gutenberg#86168)
- Notes: Only let a reaction's author delete it (WordPress/gutenberg#85415)
- Writing flow: Fix Arrow Up and Down getting stuck at the edge of the screen (WordPress/gutenberg#85408)
- Try: Run e2e tests in parallel, on one wp-env site per two cores (WordPress/gutenberg#85420)
- Raw handling: Keep shortcodes in text inline (WordPress/gutenberg#85795)
- Fix: Fixes non-breaking space replacement tooltip (WordPress/gutenberg#85777)
- Non-breaking space: Remove non-breaking spaces that would collapse when replaced (WordPress/gutenberg#85873)

Props mamaduka.
See #66340.

git-svn-id: https://develop.svn.wordpress.org/trunk@65225 602fd350-edb4-49c9-b593-d223f7449a82
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Nov 3, 2026
This updates the pinned commit hash of the Gutenberg repository from `cc75a79186fd23e72eb015d594e82f40c6209eb5` to `c035c1a649ef68f5c1646694cf440df1d7ae6e62` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@cc75a79...c035c1a

- Components: Use solid brand highlights for popup items (WordPress/gutenberg#84583) (#85848)
- Fix endless sideload loop when the browser can't decode a big image (WordPress/gutenberg#83530)
- Notes: Show reaction picker as a row of emoji (WordPress/gutenberg#85819) (#85892)
- Notes: Add thumbs up and plus reactions (WordPress/gutenberg#85565)
- Notes: Share thread focus recovery across actions (WordPress/gutenberg#85455)
- Core Fields: Prevent extra space between `/` and text in slug input (WordPress/gutenberg#85935)
- Notes: Add search and a status filter to the All Notes sidebar (WordPress/gutenberg#84060)
- Notes: Use the note permission check when deleting a reaction (WordPress/gutenberg#85883)
- [WP 7.2] Math block: Keyboard focus is trapped in the LaTeX field when the formula has an error (WordPress/gutenberg#86032)
- Core fields: Keep the status icon full size when its label wraps (WordPress/gutenberg#85828) (#86050)
- [WP 7.2] ToolsPanel: Keep the "Reset" label visible on the highlighted menu item (WordPress/gutenberg#86060)
- Interactivity Router: Ignore router regions and attachTo targets inside data-wp-html content (WordPress/gutenberg#84919) (#86059)
- [WP 7.2] wp-build: Derive CSS module class names from each stylesheet's CSS (WordPress/gutenberg#86062)
- Playlist: Allow track without an attachment ID to render on the frontend (WordPress/gutenberg#83880) (#86158)
- UI: Show only the day number in Calendar day cells (WordPress/gutenberg#86010) (#86183)
- Notes: Tolerate a null comment in the reaction cascade hooks (WordPress/gutenberg#85959)
- Rich Text: Remove stale format boundary when field loses selection (WordPress/gutenberg#86168)
- Notes: Only let a reaction's author delete it (WordPress/gutenberg#85415)
- Writing flow: Fix Arrow Up and Down getting stuck at the edge of the screen (WordPress/gutenberg#85408)
- Try: Run e2e tests in parallel, on one wp-env site per two cores (WordPress/gutenberg#85420)
- Raw handling: Keep shortcodes in text inline (WordPress/gutenberg#85795)
- Fix: Fixes non-breaking space replacement tooltip (WordPress/gutenberg#85777)
- Non-breaking space: Remove non-breaking spaces that would collapse when replaced (WordPress/gutenberg#85873)

Props mamaduka.
See #66340.
Built from https://develop.svn.wordpress.org/trunk@65225


git-svn-id: http://core.svn.wordpress.org/trunk@64374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
arshidkv12 pushed a commit to arshidkv12/wordpress-develop that referenced this pull request Nov 21, 2026
This updates the pinned commit hash of the Gutenberg repository from `cc75a79186fd23e72eb015d594e82f40c6209eb5` to `c035c1a649ef68f5c1646694cf440df1d7ae6e62` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@cc75a79...c035c1a

- Components: Use solid brand highlights for popup items (WordPress/gutenberg#84583) (#85848)
- Fix endless sideload loop when the browser can't decode a big image (WordPress/gutenberg#83530)
- Notes: Show reaction picker as a row of emoji (WordPress/gutenberg#85819) (#85892)
- Notes: Add thumbs up and plus reactions (WordPress/gutenberg#85565)
- Notes: Share thread focus recovery across actions (WordPress/gutenberg#85455)
- Core Fields: Prevent extra space between `/` and text in slug input (WordPress/gutenberg#85935)
- Notes: Add search and a status filter to the All Notes sidebar (WordPress/gutenberg#84060)
- Notes: Use the note permission check when deleting a reaction (WordPress/gutenberg#85883)
- [WP 7.2] Math block: Keyboard focus is trapped in the LaTeX field when the formula has an error (WordPress/gutenberg#86032)
- Core fields: Keep the status icon full size when its label wraps (WordPress/gutenberg#85828) (#86050)
- [WP 7.2] ToolsPanel: Keep the "Reset" label visible on the highlighted menu item (WordPress/gutenberg#86060)
- Interactivity Router: Ignore router regions and attachTo targets inside data-wp-html content (WordPress/gutenberg#84919) (#86059)
- [WP 7.2] wp-build: Derive CSS module class names from each stylesheet's CSS (WordPress/gutenberg#86062)
- Playlist: Allow track without an attachment ID to render on the frontend (WordPress/gutenberg#83880) (#86158)
- UI: Show only the day number in Calendar day cells (WordPress/gutenberg#86010) (#86183)
- Notes: Tolerate a null comment in the reaction cascade hooks (WordPress/gutenberg#85959)
- Rich Text: Remove stale format boundary when field loses selection (WordPress/gutenberg#86168)
- Notes: Only let a reaction's author delete it (WordPress/gutenberg#85415)
- Writing flow: Fix Arrow Up and Down getting stuck at the edge of the screen (WordPress/gutenberg#85408)
- Try: Run e2e tests in parallel, on one wp-env site per two cores (WordPress/gutenberg#85420)
- Raw handling: Keep shortcodes in text inline (WordPress/gutenberg#85795)
- Fix: Fixes non-breaking space replacement tooltip (WordPress/gutenberg#85777)
- Non-breaking space: Remove non-breaking spaces that would collapse when replaced (WordPress/gutenberg#85873)

Props mamaduka.
See #66340.

git-svn-id: https://develop.svn.wordpress.org/trunk@65225 602fd350-edb4-49c9-b593-d223f7449a82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backported to WP Core Pull request that has been successfully merged into WP Core [Tool] E2E Test Utils /packages/e2e-test-utils-playwright [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants