Skip to content

Repair wp/6.4 branch Actions: Fix flaky interactivity router navigate e2e test - #83692

Open
desrosj wants to merge 1 commit into
fix-actions-6.4/retry-plugin-activation-timeoutfrom
fix-actions-6.4/fix-flaky-router-navigate-test
Open

desrosj wants to merge 1 commit into
fix-actions-6.4/retry-plugin-activation-timeoutfrom
fix-actions-6.4/fix-flaky-router-navigate-test

Conversation

@desrosj

@desrosj desrosj commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Part of #82929.

What?

Makes the "should update the HTML only for the latest navigation" test in test/e2e/specs/interactivity/router-navigate.spec.ts wait until the browser has requested both linked pages before letting either request through.

Why?

The test holds each page request in a page.route() handler, and the functions that let a request through (resolveLink1 and resolveLink2) are only assigned once those handlers run. The test only waited for the page's own navigation counter, which can reach 2 before Playwright has run the handlers, so calling resolveLink2() could fail with TypeError: resolveLink2 is not a function. This branch has the same race in its copy of the test, so the fix is included for consistency with the wp/7.1–wp/6.8 stacks.

Upstream

A straight cherry-pick of e693c18 (#80178) from 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.

🤖 Generated with Claude Code

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

coderabbitai Bot commented Sep 28, 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: 738ee2ff-41cb-4c39-9312-80b4f16640e9

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

github-actions Bot commented Sep 28, 2026 •

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>
Co-authored-by: ntsekouras <ntsekouras@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 removed this pull request from stack #83694 September 28, 2026 23:46
@desrosj
desrosj added this pull request to stack #83741 September 28, 2026 23:46
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from 6155f99 to 38e5372 Compare October 2, 2026 20:00
@desrosj
desrosj removed this pull request from stack #83741 October 7, 2026 18:11
@desrosj
desrosj changed the base branch from fix-actions-6.4/stabilize-site-editor-perf-tests to wp/6.4 October 7, 2026 18:12
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from 38e5372 to 6975e2b Compare October 7, 2026 18:14
@github-actions github-actions Bot added [Tool] WP Scripts /packages/scripts [Tool] E2E Test Utils /packages/e2e-test-utils-playwright [Tool] Env /packages/env labels Oct 7, 2026
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/stabilize-site-editor-perf-tests October 7, 2026 18:20
@desrosj
desrosj added this pull request to stack #84191 October 7, 2026 18:20
@desrosj
desrosj removed this pull request from stack #84191 October 8, 2026 21:38
@desrosj
desrosj changed the base branch from fix-actions-6.4/stabilize-site-editor-perf-tests to wp/6.4 October 8, 2026 21:39
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from 6975e2b to fc68956 Compare October 8, 2026 21:40
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/retry-plugin-activation-timeout October 8, 2026 21:41
@desrosj
desrosj added this pull request to stack #84353 October 8, 2026 21:42
@github-actions github-actions Bot removed [Tool] WP Scripts /packages/scripts [Tool] E2E Test Utils /packages/e2e-test-utils-playwright [Tool] Env /packages/env labels Oct 8, 2026
@desrosj
desrosj removed this pull request from stack #84353 October 9, 2026 23:54
@desrosj
desrosj changed the base branch from fix-actions-6.4/retry-plugin-activation-timeout to wp/6.4 October 9, 2026 23:55
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from fc68956 to bcb90a4 Compare October 9, 2026 23:56
@desrosj
desrosj changed the base branch from wp/6.4 to fix-actions-6.4/retry-plugin-activation-timeout October 9, 2026 23:58
@desrosj
desrosj added this pull request to stack #84480 October 9, 2026 23:58
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from bcb90a4 to 3c4a53f Compare October 13, 2026 01:54
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from 3c4a53f to 73878a6 Compare October 19, 2026 17:06
@desrosj
desrosj removed this pull request from stack #84480 October 21, 2026 19:42
@desrosj
desrosj added this pull request to stack #85340 October 21, 2026 19:43

@ntsekouras ntsekouras 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.

LGTM, thanks!

@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from 73878a6 to 812fc14 Compare October 23, 2026 17:09
@desrosj
desrosj force-pushed the fix-actions-6.4/fix-flaky-router-navigate-test branch from 812fc14 to 7bba896 Compare October 23, 2026 18:12

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