[GH-ISSUE #6303] [Issue]: Browser component fixtures depend on retained resource timings #3517

Closed
opened 2026-10-21 06:03:53 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

The battlefield reload browser fixture can fail depending on which resource-timing entries the browser retains. PR #6302 hit this in desktop Chromium shard 3/4: dependencyUrl dereferences .name on a missing entry during mountBattle.

The unchanged test passed locally once. Clearing performance resource timings immediately before the fixture import reproduces the same exception reliably (7.5 seconds), demonstrating that resource history is an unreliable module resolver. Resource timing is bounded and can differ after reload/cache use; it must not determine whether this fixture mounts.

I am fixing the failing battlefield fixture in #6302 by resolving the exact dependency URLs, including Vite's module hash, from the transformed entry module. The regression deliberately clears resource timings before each mount to verify independence from that history.

Other browser fixtures use this pattern too (game-combat-ai, game-experience-setup, issue-sweep-chat, chat-sweep, and assigned-issue-sweep). Audit these callers and share the proven resolver where useful. Keep this issue open until the remaining timing-dependent fixtures are migrated.

The two mobile failures on #6302 have a different, reproducible cause: the terrain inspection card covers Restart and intercepts taps. They are being fixed as a UI defect, not classified as flakes. The Node failure is a missing English key, also being fixed in #6302.

Originally created by @kolacheee on GitHub (Sep 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6303 Originally assigned to: @SpicyMarinara on GitHub. The battlefield reload browser fixture can fail depending on which resource-timing entries the browser retains. PR #6302 hit this in [desktop Chromium shard 3/4](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35274110721/job/105380902185): `dependencyUrl` dereferences `.name` on a missing entry during `mountBattle`. The unchanged test passed locally once. Clearing `performance` resource timings immediately before the fixture import reproduces the same exception reliably (7.5 seconds), demonstrating that resource history is an unreliable module resolver. Resource timing is bounded and can differ after reload/cache use; it must not determine whether this fixture mounts. I am fixing the failing battlefield fixture in #6302 by resolving the exact dependency URLs, including Vite's module hash, from the transformed entry module. The regression deliberately clears resource timings before each mount to verify independence from that history. Other browser fixtures use this pattern too (`game-combat-ai`, `game-experience-setup`, `issue-sweep-chat`, `chat-sweep`, and `assigned-issue-sweep`). Audit these callers and share the proven resolver where useful. Keep this issue open until the remaining timing-dependent fixtures are migrated. The two mobile failures on #6302 have a different, reproducible cause: the terrain inspection card covers Restart and intercepts taps. They are being fixed as a UI defect, not classified as flakes. The Node failure is a missing English key, also being fixed in #6302.
bsakaguchi 2026-10-21 06:03:53 +07:00
Author
Owner

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

Implementation owner: Codex working for @SpicyMarinara in the September 18 issue sweep. No open or draft PR is linked to this issue. I am tracing the existing implementation and will link the draft PR here; fixes will reuse the existing paths and include focused regression evidence.

<!-- gh-comment-id:5727504514 --> @SpicyMarinara commented on GitHub (Sep 18, 2026): Implementation owner: Codex working for @SpicyMarinara in the September 18 issue sweep. No open or draft PR is linked to this issue. I am tracing the existing implementation and will link the draft PR here; fixes will reuse the existing paths and include focused regression evidence.
Author
Owner

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

Implemented and merged into staging in #6310 (be8ac7334d). All 41 checks passed on the final reviewed commit. Available on staging; this does not claim a stable release.

<!-- gh-comment-id:5728747265 --> @SpicyMarinara commented on GitHub (Sep 18, 2026): Implemented and merged into staging in #6310 (be8ac7334dd8ce309f25da8446a0fa68de67aae0). All 41 checks passed on the final reviewed commit. Available on staging; this does not claim a stable release.
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#3517
No description provided.