Repository navigation
Try: Run e2e tests in parallel, on one wp-env site per two cores - #85420
Conversation
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>
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. 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 📦 Bundle sizeSize Change: 0 B Total Size: 9.07 MB
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome 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
|
… 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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Keeps @wordpress/scripts unchanged, so WP_BASE_URLS is no new public setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Let's try it |
|
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. |
|
@ellatrix If this PR is needed for WordPress 7.2, can you manually create a backport PR? |
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>
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>
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>
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>
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
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
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
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?
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/scriptsis unchanged.--fully-parallel, so the workers take single tests from one queue and finish together.test/e2e/wp-env-instances.shwrites a copy of.wp-env.test.jsonper 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.activateTheme()andsetupRest()used theWP_BASE_URLread when the module loads instead of the site theRequestUtilswas created with.rewrite_rulesoption, 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:
Testing Instructions
Compare the Playwright job times and failures with trunk.
To run locally on several sites, start them and list them:
Use of AI Tools
Written with Claude Code.
🤖 Generated with Claude Code