[PR #8949] [MERGED] fix(regressions): keep the notices lookup out of the restart and shutdown fixtures #8905

Closed
opened 2026-11-07 22:46:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8949
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/restart-supervisor-stall


📝 Commits (2)

  • b1aefdb fix(regressions): keep the notices lookup out of the restart-supervisor fixture
  • d2508ac fix(regressions): keep the notices lookup out of the signal-shutdown fixtures

📊 Changes

2 files changed (+16 additions, -1 deletions)

View changed files

📝 scripts/regressions/restart-supervisor.regression.ts (+13 -1)
📝 scripts/regressions/server-signal-shutdown.regression.ts (+3 -0)

📄 Description

Linked issue

Closes #8947

Why this change

restart-supervisor failed intermittently on Native install/build (macos-15-intel): four attempts across two days (jobs 128414895936 and 126018830056). The issue guessed the server stalled after seeding. It didn't:

  • First boot succeeded (11.4 s from source, 3.8 s compiled).
  • What timed out was the supervised restart. The old server logged "Server restart requested" right before process.exit(75), then took ~29 s to actually exit, past the test's 20 s window. No replacement process ever started.
  • Both diagnostics artifacts show a pending GetAddrInfoReqWrap at ready. That's the notices fetch's DNS lookup for raw.githubusercontent.com (notices.routes.ts), started during route registration.
  • process.exit() waits for pending libuv threadpool work, so a stalled resolver held the exit for about 30 s.
  • CPU load doesn't explain it: passing macos-15-intel jobs restarted in 3.3–8.5 s.

What changed

  • scripts/regressions/restart-supervisor.regression.ts:
    • The fixture sets MARINARA_NOTICES_ENABLED=false. Notices aren't under test, so the fixture makes no outbound network call. The restart route, supervisor, old-process exit and launcher wiring are still all tested.
    • A timed-out restart now says when the old server hasn't exited yet, which would have pointed straight at this.
  • scripts/regressions/server-signal-shutdown.regression.ts: the same setting for its 7 servers (spawn, POSIX PTY and Windows console). This step runs next in the same CI job and has the same exposure: under a simulated stalled lookup, its server ran its exit handlers and was then SIGKILLed.
  • No timeouts changed. The production delay for users with a stalled resolver is filed separately as #8948.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agents (not a substitute for the boxes above):

  • The CI failure reproduced locally with a preload that holds a threadpool thread while the notices host is looked up. Before the fix, both modes failed with CI's signature ("restart requested", then fetch failed). After it, they pass (source restart ~4.1 s, compiled ~1.6 s), with zero DNS lookups traced.
  • 10 normal runs and 5 runs under heavy CPU load (12 busy loops) all passed after the fix. Compiled mode passed 5 out of 5.
  • The signal-shutdown regression under the same stall: before, 137 !== 0 after a SIGKILL; after, exit 0 (21.8 s and 21.9 s), with zero lookups.
  • pnpm check, plus the admin-server-restart, restart-diagnostics, shutdown-deadline and robustness-shutdown-safety regressions: pass.
  • Confirming on CI needs runs of the macos-15-intel lane after this merges. The ~30 s resolver timeout there is inferred from timestamps.

Docs and release impact

  • No docs changes needed

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8949 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/restart-supervisor-stall` --- ### 📝 Commits (2) - [`b1aefdb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b1aefdbc0b03317490dbf109c319457a5239f9da) fix(regressions): keep the notices lookup out of the restart-supervisor fixture - [`d2508ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d2508acc5f5ec6c32653ff62872a855ac41b0972) fix(regressions): keep the notices lookup out of the signal-shutdown fixtures ### 📊 Changes **2 files changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/regressions/restart-supervisor.regression.ts` (+13 -1) 📝 `scripts/regressions/server-signal-shutdown.regression.ts` (+3 -0) </details> ### 📄 Description ## Linked issue Closes #8947 ## Why this change `restart-supervisor` failed intermittently on `Native install/build (macos-15-intel)`: four attempts across two days (jobs 128414895936 and 126018830056). The issue guessed the server stalled after seeding. It didn't: - First boot succeeded (11.4 s from source, 3.8 s compiled). - What timed out was the supervised restart. The old server logged "Server restart requested" right before `process.exit(75)`, then took ~29 s to actually exit, past the test's 20 s window. No replacement process ever started. - Both diagnostics artifacts show a pending `GetAddrInfoReqWrap` at ready. That's the notices fetch's DNS lookup for `raw.githubusercontent.com` (`notices.routes.ts`), started during route registration. - `process.exit()` waits for pending libuv threadpool work, so a stalled resolver held the exit for about 30 s. - CPU load doesn't explain it: passing macos-15-intel jobs restarted in 3.3–8.5 s. ## What changed - `scripts/regressions/restart-supervisor.regression.ts`: - The fixture sets `MARINARA_NOTICES_ENABLED=false`. Notices aren't under test, so the fixture makes no outbound network call. The restart route, supervisor, old-process exit and launcher wiring are still all tested. - A timed-out restart now says when the old server hasn't exited yet, which would have pointed straight at this. - `scripts/regressions/server-signal-shutdown.regression.ts`: the same setting for its 7 servers (spawn, POSIX PTY and Windows console). This step runs next in the same CI job and has the same exposure: under a simulated stalled lookup, its server ran its exit handlers and was then SIGKILLed. - No timeouts changed. The production delay for users with a stalled resolver is filed separately as #8948. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agents (not a substitute for the boxes above): - The CI failure reproduced locally with a preload that holds a threadpool thread while the notices host is looked up. Before the fix, both modes failed with CI's signature ("restart requested", then `fetch failed`). After it, they pass (source restart ~4.1 s, compiled ~1.6 s), with zero DNS lookups traced. - 10 normal runs and 5 runs under heavy CPU load (12 busy loops) all passed after the fix. Compiled mode passed 5 out of 5. - The signal-shutdown regression under the same stall: before, `137 !== 0` after a SIGKILL; after, exit 0 (21.8 s and 21.9 s), with zero lookups. - `pnpm check`, plus the `admin-server-restart`, `restart-diagnostics`, `shutdown-deadline` and `robustness-shutdown-safety` regressions: pass. - Confirming on CI needs runs of the macos-15-intel lane after this merges. The ~30 s resolver timeout there is inferred from timestamps. ## Docs and release impact - [x] No docs changes needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi changed title from [PR #8949] fix(regressions): keep the notices lookup out of the restart and shutdown fixtures to [PR #8949] [MERGED] fix(regressions): keep the notices lookup out of the restart and shutdown fixtures 2026-11-07 23:47:23 +07:00
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#8905
No description provided.