[Bug] Flaky: geography-explorer e2e fails under 4-worker load (master too), failing the e2e-anonymous gate #1188

Closed
opened 2026-10-06 00:57:29 +00:00 by spikerj · 0 comments
Owner

Summary

e2e/playwright/geography-explorer.spec.ts (anonymous project) fails under parallel load, on master as well as on PR branches. It is now failing the e2e-anonymous hard gate on unrelated PRs, which also blocks publish.

Evidence

CI, spikerj/spikersoft-angular#1481 (diff touches only unified-game/* and game-landing.spec.ts): e2e-anonymous failed on two attempts, a different geography test each time, and passed again on retry:

  • attempt 1: :61 "'Skip for now' dismisses the intro…" failed three times (timeout; page.goto: net::ERR_ABORTED; maybe frame was detached?); :77 passed on retry.
  • attempt 2: :33 "the intro opens on a first visit…" failed three times (30 s timeout); :77 passed on retry.

Local A/B, same machine, same command, served from a production dist:
CI=1 playwright test --project=anonymous --repeat-each=3 --workers=4 --retries=0 geography-explorer.spec.ts game-landing.spec.ts

Build Result Failing tests
master 1047a9781 8 failed, 19 passed :110, :132, :155 ×2, :188 ×2, :222 ×2
#1481 branch 9 failed, 18 passed :155 ×3, :188 ×3, :222 ×3
#1481 branch, --workers=1 8 passed —

Locally the failures are mostly unexpectedConsoleErrors(...) assertions, e.g. "console errors in My Explorations (anonymous)" at :237. The same tests pass with one worker.

Likely cause

The page is heavy (globe and maps) and fetches real API data. Under 4 workers it starts timing out, or logs console errors that the specs treat as failures. It is not tied to any one change.

Suggested next steps

  • Mark the describe test.describe.configure({ mode: "serial" }), or isolate it in its own worker.
  • Look at which console errors appear only under load, and either fix them or allow-list the transient network ones.
  • Check whether the abort comes from a second navigation racing the first page.goto.

🤖 Generated with Claude Code

## Summary `e2e/playwright/geography-explorer.spec.ts` (anonymous project) fails under parallel load, on `master` as well as on PR branches. It is now failing the `e2e-anonymous` hard gate on unrelated PRs, which also blocks `publish`. ## Evidence **CI, spikerj/spikersoft-angular#1481** (diff touches only `unified-game/*` and `game-landing.spec.ts`): `e2e-anonymous` failed on two attempts, a different geography test each time, and passed again on retry: - attempt 1: `:61` "'Skip for now' dismisses the intro…" failed three times (timeout; `page.goto: net::ERR_ABORTED; maybe frame was detached?`); `:77` passed on retry. - attempt 2: `:33` "the intro opens on a first visit…" failed three times (30 s timeout); `:77` passed on retry. **Local A/B, same machine, same command, served from a production `dist`:** `CI=1 playwright test --project=anonymous --repeat-each=3 --workers=4 --retries=0 geography-explorer.spec.ts game-landing.spec.ts` | Build | Result | Failing tests | |---|---|---| | `master` 1047a9781 | 8 failed, 19 passed | `:110`, `:132`, `:155` ×2, `:188` ×2, `:222` ×2 | | #1481 branch | 9 failed, 18 passed | `:155` ×3, `:188` ×3, `:222` ×3 | | #1481 branch, `--workers=1` | 8 passed | — | Locally the failures are mostly `unexpectedConsoleErrors(...)` assertions, e.g. "console errors in My Explorations (anonymous)" at `:237`. The same tests pass with one worker. ## Likely cause The page is heavy (globe and maps) and fetches real API data. Under 4 workers it starts timing out, or logs console errors that the specs treat as failures. It is not tied to any one change. ## Suggested next steps - Mark the describe `test.describe.configure({ mode: "serial" })`, or isolate it in its own worker. - Look at which console errors appear only under load, and either fix them or allow-list the transient network ones. - Check whether the abort comes from a second navigation racing the first `page.goto`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
spikerj added the bug label 2026-10-06 00:57:29 +00:00
Sign in to join this conversation.