[GH-ISSUE #8081] ci: investigate recurring Windows cold server-import timeout #7554

Closed
opened 2026-10-24 04:04:10 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Follow-up to #6743, observed during dependency refresh #8074. Owner: @SpicyMarinara.

The native Windows restart regression intermittently reaches its existing 60-second first-boot deadline while dynamically importing the source server. The failing fixture logs Loading the server module and never reaches Building the app; restart ownership assertions and app/listener startup have not run. The cause remains unproven.

Evidence:

  • Failed job 119872916558: source head 6dd282ba47a3b99dbc3f5015e532073dcb7c9004, synthetic merge 5decde6b15071026f916312a286ec2a580d755ac. Frozen install, production build, NSIS and launcher/data-preservation checks passed. Restart first boot failed after 60,381 ms. Runner 2.338.0, Windows image 20261007.264.1, Node 24.21.0, pnpm 10.34.7.
  • Earlier successful control: dependency candidate d6ed1141 used the same JavaScript dependency graph, Node 24.21.0 and Windows image 20261007.264.1. Initial boot 9,933 ms, replacement 4,625 ms; restart, native shutdown and update-policy checks passed. The subsequent two-file change only regenerates the Apple MLX utility lock and its manifest SHA.
  • Passing same-source replay: identical synthetic merge 5decde6b15071026f916312a286ec2a580d755ac, initial boot 4,693 ms and replacement 3,246 ms. Restart ownership, Windows console shutdown/data flush and update policy all passed. This runner had changed to Windows image 20261018.275.1 and Node 24.22.0, so it is not an identical-environment control.

#6743 documents earlier intermittent cold Windows startup timeouts on staging before this dependency change. Its previous 20-second deadline has already been raised to 60 seconds. The present observation exceeds that existing bound during module import; it does not establish the same underlying cause as the older issue or a fix in Node 24.22.

Investigation should capture which eager import or loader phase stalls on a cold Windows runner, retain the precise image/Node/cache conditions, and compare source-loader startup with the compiled production server. Preserve restart ownership, old-process exit, saved-data and shutdown assertions; do not hide the failure with skips or a larger deadline. No source, assertion or timeout changes were made to obtain the passing run.

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8081 Originally assigned to: @SpicyMarinara on GitHub. Follow-up to #6743, observed during dependency refresh #8074. Owner: @SpicyMarinara. The native Windows restart regression intermittently reaches its existing 60-second first-boot deadline while dynamically importing the source server. The failing fixture logs `Loading the server module` and never reaches `Building the app`; restart ownership assertions and app/listener startup have not run. The cause remains unproven. Evidence: - [Failed job 119872916558](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39792850396/job/119872916558): source head `6dd282ba47a3b99dbc3f5015e532073dcb7c9004`, synthetic merge `5decde6b15071026f916312a286ec2a580d755ac`. Frozen install, production build, NSIS and launcher/data-preservation checks passed. Restart first boot failed after 60,381 ms. Runner 2.338.0, Windows image `20261007.264.1`, Node 24.21.0, pnpm 10.34.7. - [Earlier successful control](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39790496161/job/119864935595): dependency candidate `d6ed1141` used the same JavaScript dependency graph, Node 24.21.0 and Windows image `20261007.264.1`. Initial boot 9,933 ms, replacement 4,625 ms; restart, native shutdown and update-policy checks passed. The subsequent two-file change only regenerates the Apple MLX utility lock and its manifest SHA. - [Passing same-source replay](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39793806118/job/119876581992): identical synthetic merge `5decde6b15071026f916312a286ec2a580d755ac`, initial boot 4,693 ms and replacement 3,246 ms. Restart ownership, Windows console shutdown/data flush and update policy all passed. This runner had changed to Windows image `20261018.275.1` and Node 24.22.0, so it is not an identical-environment control. #6743 documents earlier intermittent cold Windows startup timeouts on staging before this dependency change. Its previous 20-second deadline has already been raised to 60 seconds. The present observation exceeds that existing bound during module import; it does not establish the same underlying cause as the older issue or a fix in Node 24.22. Investigation should capture which eager import or loader phase stalls on a cold Windows runner, retain the precise image/Node/cache conditions, and compare source-loader startup with the compiled production server. Preserve restart ownership, old-process exit, saved-data and shutdown assertions; do not hide the failure with skips or a larger deadline. No source, assertion or timeout changes were made to obtain the passing run.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Additional native Windows observation from the assigned-issue cleanup: job 119962687294 for PR #8097 head 31cacefdad9a7f9a114630e8d651849728666376 passes the unchanged restart regression.

  • Windows image windows-2025-vs2026, version 20261018.275.1.
  • Node 24.22.0 as reported by setup-node; do not infer the local host's 24.22.1 version for this runner.
  • Initial startup 8,033 ms; supervised restart 4,541 ms.
  • Real restart route, single launcher ownership, old-process exit and launcher wiring assertions pass.

The successful log was preserved separately. This provides another passing observation, not a reproduction of the original 60-second source-import stall or proof of a fix. The previous failing runner image/Node combination remains different. Keeping this investigation open; no timeout increase, skipped assertion or production startup change was used to obtain the pass.

<!-- gh-comment-id:6346681871 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Additional native Windows observation from the assigned-issue cleanup: [job 119962687294](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39818353475/job/119962687294) for PR #8097 head `31cacefdad9a7f9a114630e8d651849728666376` passes the unchanged restart regression. - Windows image `windows-2025-vs2026`, version `20261018.275.1`. - Node **24.22.0** as reported by setup-node; do not infer the local host's 24.22.1 version for this runner. - Initial startup **8,033 ms**; supervised restart **4,541 ms**. - Real restart route, single launcher ownership, old-process exit and launcher wiring assertions pass. The successful log was preserved separately. This provides another passing observation, not a reproduction of the original 60-second source-import stall or proof of a fix. The previous failing runner image/Node combination remains different. Keeping this investigation open; no timeout increase, skipped assertion or production startup change was used to obtain the pass.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

@SpicyMarinara owns the bounded diagnostic follow-up in draft PR #8132. It will retain fixture-only slow-start evidence and compare source startup with the compiled server on the same native runner. The existing restart deadlines and ownership assertions remain required; the intermittent Windows source-import stall is still unproven, so this work will not close the investigation as fixed.

<!-- gh-comment-id:6354519754 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): @SpicyMarinara owns the bounded diagnostic follow-up in draft PR #8132. It will retain fixture-only slow-start evidence and compare source startup with the compiled server on the same native runner. The existing restart deadlines and ownership assertions remain required; the intermittent Windows source-import stall is still unproven, so this work will not close the investigation as fixed.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

The bounded diagnostic follow-up #8132 is merged into staging as e54fbd4394350f85feb021da91ab44d9c7130ee1, after the required checks, platform checks and final-head Dottore review passed.

The native Windows job now records a redacted diagnostic before the existing replacement-process deadline, compares the source startup/restart with the compiled server on the same runner, and preserves diagnostic artifacts on failure or cancellation. No startup/restart timeout was increased and no assertion was skipped. The passing final-head Windows run measured source startup/restart at 5,558 / 3,463 ms and compiled startup/restart at 2,028 / 2,633 ms; these are observations from that runner, not a reproduction of the intermittent stall.

Keeping this investigation open. The recurring cold-import timeout's cause is still unproven. The new diagnostics should let the next occurrence distinguish source loading, a stuck child, and launcher/restart ownership without exposing environment credentials.

Review and validation details: https://github.com/Pasta-Devs/Marinara-Engine/pull/8132#issuecomment-6355155091

<!-- gh-comment-id:6356867501 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): The bounded diagnostic follow-up #8132 is merged into `staging` as `e54fbd4394350f85feb021da91ab44d9c7130ee1`, after the required checks, platform checks and final-head Dottore review passed. The native Windows job now records a redacted diagnostic before the existing replacement-process deadline, compares the source startup/restart with the compiled server on the same runner, and preserves diagnostic artifacts on failure or cancellation. No startup/restart timeout was increased and no assertion was skipped. The passing final-head Windows run measured source startup/restart at 5,558 / 3,463 ms and compiled startup/restart at 2,028 / 2,633 ms; these are observations from that runner, not a reproduction of the intermittent stall. Keeping this investigation open. The recurring cold-import timeout's cause is still unproven. The new diagnostics should let the next occurrence distinguish source loading, a stuck child, and launcher/restart ownership without exposing environment credentials. Review and validation details: https://github.com/Pasta-Devs/Marinara-Engine/pull/8132#issuecomment-6355155091
Author
Owner

@DSBwizzard commented on GitHub (Nov 5, 2026):

New observation from PR #8851, with no claim that it shares the original cold-import timeout's cause:

  • Windows launcher job 126987123098 failed on source head cb050f00f15bdda3e6b00bc5437964a2d0ee2c7f. The retained state records synthetic merge 1ebab1054623e071f6aa91627408f0d6fa530655, Node 24.22.2, Windows image 20261103.298.1.
  • Source import completed: the fixture logged Building the app after 13816ms. The last retained snapshot is phase build, 18289ms, with 497 active resources. The supervisor exited before the listener, around 20 seconds into the test; this was not the existing 60-second import deadline. The old assertion did not retain exit code/signal, so the exit reason is unknown.
  • The artifact contains state but no full report. A report-generation failure is only a hypothesis. I tested a task-local official-SHA256-verified Node24.22.2: the unchanged restart case passed (first startup32779ms, restart4403ms), the existing worker-report regression passed, and forcing the report timer to fire during source startup also passed. These do not reproduce or explain the hosted exit.
  • PR #8851 now includes a bounded diagnostic improvement in 4f15905b7025223b7b596a21c743e52c39eb1dc1: preserve supervisor exit code/signal in the failure and detect a signal exit directly. Real-child controls verified exit42 and SIGTERM remain failures with the expected status reported; successful real startup/restart still passes. No readiness/restart deadline or ownership assertion was increased or skipped. CodeRabbit's signal-guard finding was reproduced and fixed; final review has zero findings.

Reusable controls and validation are included as restart-diagnostic-proof.md and the three small .mjs files. Fresh hosted replay is run41954570759. I have not reopened/reassigned this issue or claimed the intermittent startup defect fixed.

<!-- gh-comment-id:6647948018 --> @DSBwizzard commented on GitHub (Nov 5, 2026): New observation from PR #8851, with no claim that it shares the original cold-import timeout's cause: - [Windows launcher job 126987123098](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/41948677335/job/126987123098) failed on source head `cb050f00f15bdda3e6b00bc5437964a2d0ee2c7f`. The retained state records synthetic merge `1ebab1054623e071f6aa91627408f0d6fa530655`, Node **24.22.2**, Windows image `20261103.298.1`. - Source import completed: the fixture logged `Building the app after 13816ms`. The last retained snapshot is **phase build, 18289ms**, with 497 active resources. The supervisor exited before the listener, around 20 seconds into the test; this was not the existing 60-second import deadline. The old assertion did not retain exit code/signal, so the exit reason is unknown. - The artifact contains state but no full report. A report-generation failure is only a hypothesis. I tested a task-local official-SHA256-verified Node24.22.2: the unchanged restart case passed (first startup32779ms, restart4403ms), the existing worker-report regression passed, and forcing the report timer to fire during source startup also passed. These do not reproduce or explain the hosted exit. - PR #8851 now includes a bounded diagnostic improvement in `4f15905b7025223b7b596a21c743e52c39eb1dc1`: preserve supervisor exit code/signal in the failure and detect a signal exit directly. Real-child controls verified exit42 and SIGTERM remain failures with the expected status reported; successful real startup/restart still passes. No readiness/restart deadline or ownership assertion was increased or skipped. CodeRabbit's signal-guard finding was reproduced and fixed; final review has zero findings. [Reusable controls and validation](https://gist.github.com/DSBwizzard/9586ba2652c0c19c48873f038a8893d7) are included as `restart-diagnostic-proof.md` and the three small `.mjs` files. Fresh hosted replay is [run41954570759](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/41954570759). I have not reopened/reassigned this issue or claimed the intermittent startup defect fixed.
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#7554
No description provided.