[GH-ISSUE #6141] [Issue]: WebKit page closes during the native-dice stacked-history regression #3416

Closed
opened 2026-10-21 06:02:52 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The long native-dice browser regression reaches Playwright's 60-second per-test deadline on mobile WebKit after its product assertions have passed. This makes the release regression matrix unreliable.

Expected behavior

The full scenario has enough overall time to exercise live dice, persisted history, translation, continuation, and regeneration while retaining the existing 10-second action/assertion limits.

Actual behavior

On PR #6137 head 258d2b624, mobile WebKit's light-theme scenario timed out twice at different points: first while capturing the verified Session Logs, then later before reading messages for the continuation check. The same-head dark-theme control passed in 50.4 seconds. No incorrect dice result was reported.

Steps to reproduce

  1. Run the Release Regression Matrix for head 258d2b624.
  2. Run the mobile-webkit 4/4 shard containing Game queues every native roll and skill check and retains their history (light).
  3. Observe the overall 60-second timeout in the long scenario, after its earlier product assertions pass.

Environment

  • Marinara Engine version: 2.4.5, head 258d2b624 (merged to staging in #6137).
  • Install type: source, GitHub Actions release regression job.
  • OS + version: GitHub-hosted Linux runner.
  • Browser or app shell: Playwright 1.61.0 mobile WebKit project (iPhone 15 Pro emulation).

Logs, screenshots, or video

Additional context

Proposed scope: give only this long native-dice scenario a 120-second total budget. Keep existing action/assertion timeouts and product code unchanged. Owner: SpicyMarinara, with Codex implementing this focused follow-up.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6141 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The long native-dice browser regression reaches Playwright's 60-second per-test deadline on mobile WebKit after its product assertions have passed. This makes the release regression matrix unreliable. ## Expected behavior The full scenario has enough overall time to exercise live dice, persisted history, translation, continuation, and regeneration while retaining the existing 10-second action/assertion limits. ## Actual behavior On PR #6137 head `258d2b624`, mobile WebKit's light-theme scenario timed out twice at different points: first while capturing the verified Session Logs, then later before reading messages for the continuation check. The same-head dark-theme control passed in 50.4 seconds. No incorrect dice result was reported. ## Steps to reproduce 1. Run the Release Regression Matrix for head `258d2b624`. 2. Run the `mobile-webkit 4/4` shard containing `Game queues every native roll and skill check and retains their history (light)`. 3. Observe the overall 60-second timeout in the long scenario, after its earlier product assertions pass. ## Environment - Marinara Engine version: 2.4.5, head `258d2b624` (merged to staging in #6137). - Install type: source, GitHub Actions release regression job. - OS + version: GitHub-hosted Linux runner. - Browser or app shell: Playwright 1.61.0 mobile WebKit project (iPhone 15 Pro emulation). ## Logs, screenshots, or video - First job: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34752015402/job/103710106608 — timeout at `e2e/game-native-dice.e2e.ts:252` during screenshot capture. - One authorized rerun: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34752015402/job/103712945222 — timeout at line 327 before the continuation request; 88 other tests passed. - Paired dark-theme control: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34752015402/job/103710106625 — passed in 50.4 seconds. ## Additional context Proposed scope: give only this long native-dice scenario a 120-second total budget. Keep existing action/assertion timeouts and product code unchanged. Owner: SpicyMarinara, with Codex implementing this focused follow-up. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:02:52 +07:00
Author
Owner

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

Implementation owner: Codex working for @SpicyMarinara. Draft PR #6142 tracks the scoped native-dice test budget change and its validation.

<!-- gh-comment-id:5652958203 --> @SpicyMarinara commented on GitHub (Sep 13, 2026): Implementation owner: Codex working for @SpicyMarinara. Draft PR #6142 tracks the scoped native-dice test budget change and its validation.
Author
Owner

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

Fixed on staging by #6142, squash commit 5fa59f0301. Only the long native-dice browser scenario receives a 120-second total deadline; action/assertion limits stay at 10 seconds. Local pnpm check and both mobile-WebKit theme scenarios passed, as did all required CI checks and the completed CodeRabbit review. The broader optional matrix continues separately.

<!-- gh-comment-id:5653006951 --> @SpicyMarinara commented on GitHub (Sep 13, 2026): Fixed on staging by #6142, squash commit 5fa59f030159539831ec2aae0242015bd7361b64. Only the long native-dice browser scenario receives a 120-second total deadline; action/assertion limits stay at 10 seconds. Local pnpm check and both mobile-WebKit theme scenarios passed, as did all required CI checks and the completed CodeRabbit review. The broader optional matrix continues separately.
Author
Owner

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

Reopening after additional optional-matrix evidence on PR #6142 head 769c064a4693a8f080eb880b0b9696b10e90c8e6. The native-dice dark case in mobile WebKit 3/4 failed despite the larger total deadline.

The retained trace places the UI-store evaluation at about 40 seconds, an unexpected page-closed event at about 62 seconds, and cleanup reaching the 120-second deadline. The UI store module had already returned HTTP 200 in 29.8 ms during the preceding reload. This does not establish an import-performance defect or justify another timeout increase. Earlier product assertions passed; the page-closure cause is still under investigation.

The timeout adjustment remains on staging and its local dark/light WebKit proof passed. It does not establish that this separate CI failure is resolved. Retained CI evidence: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34754499713.

<!-- gh-comment-id:5653055894 --> @SpicyMarinara commented on GitHub (Sep 13, 2026): Reopening after additional optional-matrix evidence on PR #6142 head `769c064a4693a8f080eb880b0b9696b10e90c8e6`. The native-dice dark case in mobile WebKit 3/4 failed despite the larger total deadline. The retained trace places the UI-store evaluation at about 40 seconds, an unexpected page-closed event at about 62 seconds, and cleanup reaching the 120-second deadline. The UI store module had already returned HTTP 200 in 29.8 ms during the preceding reload. This does not establish an import-performance defect or justify another timeout increase. Earlier product assertions passed; the page-closure cause is still under investigation. The timeout adjustment remains on staging and its local dark/light WebKit proof passed. It does not establish that this separate CI failure is resolved. Retained CI evidence: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34754499713.
Author
Owner

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

The affected WebKit 4/4 lane passed: native-dice light completed in 51.1 seconds, with 89 passed / 2 skipped across the shard.

The dark case on WebKit 3/4 remains unexplained: store evaluation starts at +40.044s after the new-scene narration assertion passes; the browser reports pageClosed at +62.271s before test cleanup; cleanup reaches the total deadline at +120s. The module had already loaded successfully. There is no explicit crash, JavaScript exception, network-process exit, or worker-shutdown marker establishing the closure cause. No resolved evaluation or post-call screenshot establishes whether the stacked-mode setter executed.

Retained failure artifact. Exact observed CI command:

PLAYWRIGHT_ONLY_PROJECT=mobile pnpm exec playwright test -c playwright.config.ts --project=mobile-webkit --fully-parallel --workers=1 --shard=3/4

The isolated native-dice dark/light scenarios passed locally. No retry, further timeout increase, assertion removal, or speculative product change was made. The next useful proof is reproduction with explicit page-close/crash diagnostics on this shard. Keep this issue open for that separate closure; the original light-case deadline adjustment is validated.

<!-- gh-comment-id:5653063044 --> @SpicyMarinara commented on GitHub (Sep 13, 2026): The affected [WebKit 4/4 lane passed](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34754499713/job/103716488904): native-dice light completed in **51.1 seconds**, with **89 passed / 2 skipped** across the shard. The [dark case on WebKit 3/4](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34754499713/job/103716488899) remains unexplained: store evaluation starts at +40.044s after the new-scene narration assertion passes; the browser reports `pageClosed` at +62.271s before test cleanup; cleanup reaches the total deadline at +120s. The module had already loaded successfully. There is no explicit crash, JavaScript exception, network-process exit, or worker-shutdown marker establishing the closure cause. No resolved evaluation or post-call screenshot establishes whether the stacked-mode setter executed. [Retained failure artifact](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34754499713/artifacts/10316024849). Exact observed CI command: ```sh PLAYWRIGHT_ONLY_PROJECT=mobile pnpm exec playwright test -c playwright.config.ts --project=mobile-webkit --fully-parallel --workers=1 --shard=3/4 ``` The isolated native-dice dark/light scenarios passed locally. No retry, further timeout increase, assertion removal, or speculative product change was made. The next useful proof is reproduction with explicit page-close/crash diagnostics on this shard. Keep this issue open for that separate closure; the original light-case deadline adjustment is validated.
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#3416
No description provided.