Skip to content

test(browser): give servers in CI a 15 s action timeout instead of upstream's 5 s - #123

Closed
william-monroy wants to merge 1 commit into
mainfrom
test/ci-action-timeout
Closed

william-monroy wants to merge 1 commit into
mainfrom
test/ci-action-timeout

Conversation

@william-monroy

Copy link
Copy Markdown
Collaborator

Test only, no changeset. One more macOS flake today (#120): record-replay's replayed fill waited 5 s for the Email box right after a navigation and timed out on a loaded runner. It is the same cause as the popup click fixed in #122: upstream's 5 s default action timeout.

Instead of raising it test by test, the test sandbox env sets PLAYWRIGHT_MCP_TIMEOUT_ACTION=15000 when CI is set, so every server a test starts from that env gets 15 s. A test that passes --timeout-action keeps its own value, since upstream merges CLI options over the env (checked in resolveCLIConfigForMCP). Locally with CI=1, the whole browser suite passes: 565 tests, 63 files.

@william-monroy

william-monroy commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

Closing: the CI logs no longer show the failure this works around.

I pulled the failed-job logs of every ci run since 2026-11-19 18:00 UTC (209 runs: every failed, cancelled or rerun attempt) and searched them for upstream's action timeout, Timeout 5000ms exceeded:

  • 6 attempts hit it, all on macOS, between 2026-11-19 18:55 and 2026-11-20 09:06 UTC (runs 44591091460, 44664312270, 44675082976, 44677524142, 44680527846, 44706658498): tab-sharing popup, record-replay with "sharing": "tabs", browser-tools background throttling.
  • 0 attempts since then: 137 runs (147 attempts) from 2026-11-20 09:07 UTC to now, on macOS, Ubuntu and Windows.

The flake that remained, policy-chrome with MCP error -32001: Request timed out, was a navigation waiting the full 60 s navigation timeout, not an action timeout, so a 15 s action timeout would not have changed it. It is fixed in #160.

Raising the action timeout for every server in CI would also hide real slowness in new tests, so with no failure to fix I am not keeping it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant