[GH-ISSUE #6421] [Issue]: inventory-tracker-details e2e hangs on a per-item detail control, failing desktop-chromium shard 4 intermittently #3591

Closed
opened 2026-10-21 06:04:36 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kolacheee on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6421

Originally assigned to: @kolacheee on GitHub.

e2e/inventory-tracker-details.e2e.ts:8 ("Inventory descriptions and locations persist with item locks") fails intermittently on desktop-chromium shard 4/4, in both its light and its dark variant, by hanging on an inventory detail button rather than by asserting anything false.

What the traces show

Two runs of the same job on the same commit (9ee0b7e99, PR #6416), re-run once under the flake rule:

  • First run, DARK variant: expect(locator).toHaveAttribute failed after 10s on getByRole('button', { name: /^Unlock.*Location for Painkillers/ }) with "element(s) not found".
  • Re-run, LIGHT variant: the whole test hit the 60s timeout. Parsing trace.zip for a before with no matching after gives exactly one unfinished call: click on internal:role=button[name="Description for Brass key"s]. The teardown then reports apiRequestContext.delete: Target page, context or browser has been closed.

So it is the same spec stuck on a per-item detail control, and which variant loses is not stable between runs.

Why this is not the PR it appeared on

  • The spec creates a roleplay chat (mode: "roleplay", line 13). Everything PR #6416 changes in generate.routes.ts sits inside chatMode === "game" branches or is a closure only those branches call, and the branch touches no storage, no db layer, no client panels and no hooks.
  • Sibling PR #6419, which shares the same staging merge, fails only shard 3.
  • The same spec was seen failing once before, on PR #6336, which also did not touch the Inventory Tracker.

Why it is worth a look anyway

staging itself is currently red only on shard 3 (the drag-list-scroll spec of #6399), so this one does not reproduce on every run — but it has now failed twice in a row on one commit, which is more than the usual single flake. The spec does a long sequence of per-item UI interactions inside one 60s budget, so the likeliest reading is that it is close enough to its limit that machine variance tips it over, and the failing control differs run to run.

Worth either raising the budget for this spec, splitting it, or making the detail controls awaited explicitly rather than clicked straight after a re-render.

Evidence

Originally created by @kolacheee on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6421 Originally assigned to: @kolacheee on GitHub. `e2e/inventory-tracker-details.e2e.ts:8` ("Inventory descriptions and locations persist with item locks") fails intermittently on `desktop-chromium` shard 4/4, in both its light and its dark variant, by hanging on an inventory detail button rather than by asserting anything false. ## What the traces show Two runs of the same job on the same commit (`9ee0b7e99`, PR #6416), re-run once under the flake rule: - First run, DARK variant: `expect(locator).toHaveAttribute` failed after 10s on `getByRole('button', { name: /^Unlock.*Location for Painkillers/ })` with "element(s) not found". - Re-run, LIGHT variant: the whole test hit the 60s timeout. Parsing `trace.zip` for a `before` with no matching `after` gives exactly one unfinished call: `click` on `internal:role=button[name="Description for Brass key"s]`. The teardown then reports `apiRequestContext.delete: Target page, context or browser has been closed`. So it is the same spec stuck on a per-item detail control, and which variant loses is not stable between runs. ## Why this is not the PR it appeared on - The spec creates a **roleplay** chat (`mode: "roleplay"`, line 13). Everything PR #6416 changes in `generate.routes.ts` sits inside `chatMode === "game"` branches or is a closure only those branches call, and the branch touches no storage, no db layer, no client panels and no hooks. - Sibling PR #6419, which shares the same `staging` merge, fails only shard 3. - The same spec was seen failing once before, on PR #6336, which also did not touch the Inventory Tracker. ## Why it is worth a look anyway `staging` itself is currently red only on shard 3 (the `drag-list-scroll` spec of #6399), so this one does not reproduce on every run — but it has now failed twice in a row on one commit, which is more than the usual single flake. The spec does a long sequence of per-item UI interactions inside one 60s budget, so the likeliest reading is that it is close enough to its limit that machine variance tips it over, and the failing control differs run to run. Worth either raising the budget for this spec, splitting it, or making the detail controls awaited explicitly rather than clicked straight after a re-render. ## Evidence - Failing run: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35500406742 - Artifacts: `playwright-desktop-chromium-shard-4-failure` (both the original and the re-run upload are on that run).
bsakaguchi 2026-10-21 06:04:36 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Codex for @SpicyMarinara is investigating this in the ongoing issue sweep. I will check the reported control transitions and reproduce the browser failure before choosing a fixture or product fix.

<!-- gh-comment-id:5749067721 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Codex for @SpicyMarinara is investigating this in the ongoing issue sweep. I will check the reported control transitions and reproduce the browser failure before choosing a fixture or product fix.
Author
Owner

@kolacheee commented on GitHub (Sep 20, 2026):

Datapoint: on the next run of the same branch (head fd58b1039, run https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35506225894), desktop-chromium 4/4 PASSED, with only shard 3 failing (#6399).

So the sequence on this branch is fail, fail-on-re-run, then pass, across three runs of the same spec, losing a different variant each time it failed. That is consistent with the reading above — a spec close enough to its 60s budget that machine variance decides it — rather than a deterministic break, and it means the failure is intermittent rather than persistent.

<!-- gh-comment-id:5749469647 --> @kolacheee commented on GitHub (Sep 20, 2026): Datapoint: on the next run of the same branch (head `fd58b1039`, run https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35506225894), `desktop-chromium 4/4` PASSED, with only shard 3 failing (#6399). So the sequence on this branch is fail, fail-on-re-run, then pass, across three runs of the same spec, losing a different variant each time it failed. That is consistent with the reading above — a spec close enough to its 60s budget that machine variance decides it — rather than a deterministic break, and it means the failure is intermittent rather than persistent.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Resolved by #6420, merged into staging at 49faeabfe4. Required checks and CodeRabbit passed before merge.

<!-- gh-comment-id:5749555906 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Resolved by #6420, merged into staging at 49faeabfe42b02d3648e29e226b773d4a33259ce. Required checks and CodeRabbit passed before merge.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3591
No description provided.