[GH-ISSUE #6743] [Issue]: restart-supervisor lane times out on Windows CI before the first server boot finishes #3778

Closed
opened 2026-10-21 06:07:06 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On the Native install/build (windows-latest) CI job, scripts/regressions/restart-supervisor.regression.ts sometimes fails before it tests anything. The first server boot takes longer than the lane's 20-second first-boot deadline, and the lane fails with "Server did not become ready". The PRs it has failed on do not touch the launcher or the server's startup.

Expected behavior

On a cold Windows runner, the lane waits long enough for the first boot, then checks the supervised restart.

Actual behavior

The fixture is still starting when waitForPid() gives up. In the latest failure, "Loading the server module" alone took 18 seconds. The server was still seeding its default assets when the deadline passed:

AssertionError [ERR_ASSERTION]: Server did not become ready: [restart-fixture] Loading the server module
[restart-fixture] Building the app after 18168ms
... [seed] Installed 55 default game assets (music, ambient, SFX)
Last request error: TypeError: fetch failed
    at waitForPid (scripts/regressions/restart-supervisor.regression.ts:73:10)
FAILED (20467ms) (exit 1)

Steps to reproduce

  1. Push any branch and let the Native install/build (windows-latest) job run.
  2. On a slow runner, the restart-supervisor step fails as above. It is intermittent; a re-run usually passes.

Environment

  • Marinara Engine version: staging (c481ce37d and the day before)
  • Install type: source, GitHub Actions windows-latest
  • OS + version: Windows runner image, Node 24.21.0
  • Browser or app shell: none

Logs, screenshots, or video

Occurrences, all the same assertion:

Additional context

The deadline is previous === undefined ? 20_000 : 10_000 in waitForPid(). Its comment already says the first boot transpiles the full server on cold native runners. The two failures spent their time in different phases (module load in one, startup after the build in the other), so the whole first boot is slow, not one step. A longer first-boot deadline would stop the false failures. The restart deadline can stay as it is, since a restart reuses the cache.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6743 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On the `Native install/build (windows-latest)` CI job, `scripts/regressions/restart-supervisor.regression.ts` sometimes fails before it tests anything. The first server boot takes longer than the lane's 20-second first-boot deadline, and the lane fails with "Server did not become ready". The PRs it has failed on do not touch the launcher or the server's startup. ## Expected behavior On a cold Windows runner, the lane waits long enough for the first boot, then checks the supervised restart. ## Actual behavior The fixture is still starting when `waitForPid()` gives up. In the latest failure, "Loading the server module" alone took 18 seconds. The server was still seeding its default assets when the deadline passed: ``` AssertionError [ERR_ASSERTION]: Server did not become ready: [restart-fixture] Loading the server module [restart-fixture] Building the app after 18168ms ... [seed] Installed 55 default game assets (music, ambient, SFX) Last request error: TypeError: fetch failed at waitForPid (scripts/regressions/restart-supervisor.regression.ts:73:10) FAILED (20467ms) (exit 1) ``` ## Steps to reproduce 1. Push any branch and let the `Native install/build (windows-latest)` job run. 2. On a slow runner, the restart-supervisor step fails as above. It is intermittent; a re-run usually passes. ## Environment - Marinara Engine version: staging (c481ce37d and the day before) - Install type: source, GitHub Actions `windows-latest` - OS + version: Windows runner image, Node 24.21.0 - Browser or app shell: none ## Logs, screenshots, or video Occurrences, all the same assertion: - https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/36286203117 (PR #6741, 2026-09-27): module loaded after 18168 ms, failed at 20467 ms. - https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/36274113784 (branch `codex/quartermaster-relationship-guide`, 2026-09-26): module loaded after 5385 ms, failed at 21518 ms, so the time went into the rest of startup instead. - PR #6729 (2026-09-26): the same step failed once, and a re-run passed. ## Additional context The deadline is `previous === undefined ? 20_000 : 10_000` in `waitForPid()`. Its comment already says the first boot transpiles the full server on cold native runners. The two failures spent their time in different phases (module load in one, startup after the build in the other), so the whole first boot is slow, not one step. A longer first-boot deadline would stop the false failures. The restart deadline can stay as it is, since a restart reuses the cache. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:06 +07:00
Author
Owner

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

Taking ownership as @SpicyMarinara in codex/sept27-assigned-sweep. This is included in the maintainer's assigned-issue sweep against staging. I am tracing the existing implementation and will keep the fix focused, with the relevant validation recorded on the linked PR.

<!-- gh-comment-id:5855477149 --> @SpicyMarinara commented on GitHub (Sep 27, 2026): Taking ownership as @SpicyMarinara in `codex/sept27-assigned-sweep`. This is included in the maintainer's assigned-issue sweep against `staging`. I am tracing the existing implementation and will keep the fix focused, with the relevant validation recorded on the linked PR.
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#3778
No description provided.