[PR #8132] [MERGED] ci: retain cold restart-import diagnostics and compiled control #8119

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8132
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: ci/restart-import-diagnostics


📝 Commits (4)

  • 0faa65e chore: track Windows restart-import diagnostics work
  • c4cb7ac ci: retain slow restart evidence and compare compiled startup
  • a08bb94 fix(ci): capture restart report before replacement deadline
  • dc409e1 fix(ci): retain restart diagnostics on cancellation

📊 Changes

7 files changed (+229 additions, -15 deletions)

View changed files

📝 .github/workflows/platform-artifacts.yml (+17 -0)
📝 .github/workflows/pull-request-checks.yml (+10 -0)
➕ scripts/regressions/fixtures/restart-diagnostics.mjs (+89 -0)
➕ scripts/regressions/fixtures/restart-server.mjs (+21 -0)
➖ scripts/regressions/fixtures/restart-server.ts (+0 -12)
➕ scripts/regressions/restart-diagnostics.regression.mjs (+87 -0)
📝 scripts/regressions/restart-supervisor.regression.ts (+5 -3)

📄 Description

Linked issue

Refs #8081. Owner: @SpicyMarinara. The intermittent cold Windows import remains under investigation; this PR does not close it as fixed.

Why this change

When the restart regression reaches its existing first-boot deadline, its output identifies the server-import phase but retains no process report. A passing rerun cannot distinguish the TypeScript source loader from compiled-server startup on the runner that stalled.

What changed

  • Keep per-process source/compiled phase snapshots with Node, runner image, architecture, active resources and memory. A boot still pending after 15 seconds also saves a native Node diagnostic report. Reports omit environment variables in the main thread and nested worker reports, and disable network discovery.
  • Retain that evidence from failed or cancelled native and Windows launcher jobs. Normal boots cancel the slow-start report.
  • Run the same restart regression against the compiled server after the source run in the native platform matrix, including when the source run fails. The compiled fixture runs without the tsx loader; running it second preserves the source cold-start order.
  • Preserve the existing 60-second first-boot, 20-second replacement and 90-second whole-file deadlines, restart-route validation, launcher ownership, old-process exit and wiring assertions. Production startup and launchers are unchanged.

The fixture is now plain JavaScript so both paths share the same assertions. A diagnostic timer cannot run if the JavaScript thread itself is blocked; in that case the last phase snapshot is the remaining evidence. The report can expose native/loader-worker state, but does not prove which import caused a stall.

Validation

  • pnpm check passed (one existing React Hook warning).
  • Real source restart regression passed on macOS ARM64 / Node 24.22.1: initial 4,350 ms; replacement 2,101 ms.
  • Real compiled restart regression passed in the same checkout: initial 1,373 ms; replacement 1,651 ms.
  • Diagnostic regression passed: ordinary boots cancel reports, a deliberately pending import phase saves an actual Node report, an existing worker is retained, and secret-canary environment values are absent from every report depth.
  • Regression timeout-policy guard, changed-file Prettier checks, JavaScript syntax checks and git diff --check passed. The diagnostics regression also reads both workflow upload gates and verifies success/failure/cancelled truth cases without cancelling Actions runs.
  • Local CodeRabbit: initial full review had zero findings; final full review identified one minor report-delay issue. The timer now fires at 15 seconds, before the replacement deadline; a real default-delay probe saved its pending-phase report at 15,003 ms. The narrow follow-up review of that one-line repair completed with zero findings. A further local review of the two cancellation gates and their workflow-condition proof was requested but is currently rate-limited; no completed review of that final delta is claimed. It has independent source review, passing pnpm check and passing focused regression proof; final GitHub review remains a merge gate.

A separate fresh Windows control also passed the unchanged source regression on image 20261007.264.1 / Node 24.21.0: job 120170064099, initial 9,398 ms and replacement 4,717 ms. These match the original failing observation's image/Node versions; source revision and cache state differ, so this is another passing observation, not a root-cause reproduction.

  • Manually inspect retained artifacts from a future native Windows stall.
  • Compare source and compiled startup on the same failing runner, preserving exact image, Node and cache conditions.

Manual verification notes

No physical Windows reproduction or successful capture of the original intermittent stall is claimed. Native CI on this PR remains required before merge.

Docs and release impact

No user-facing docs, release metadata, dependencies, package-manager migration or production runtime changes.


🔄 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/8132 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `ci/restart-import-diagnostics` --- ### 📝 Commits (4) - [`0faa65e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0faa65efc75e26ebc6e7d8debf6557825fd2c0c9) chore: track Windows restart-import diagnostics work - [`c4cb7ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c4cb7ac1187af07c5c8b3ee53a46a69bd291d289) ci: retain slow restart evidence and compare compiled startup - [`a08bb94`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a08bb945842f07696bec7cc0020d5dca447c059a) fix(ci): capture restart report before replacement deadline - [`dc409e1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dc409e1bfcf9cac5f008952f7cc8618e9a2e901b) fix(ci): retain restart diagnostics on cancellation ### 📊 Changes **7 files changed** (+229 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/platform-artifacts.yml` (+17 -0) 📝 `.github/workflows/pull-request-checks.yml` (+10 -0) ➕ `scripts/regressions/fixtures/restart-diagnostics.mjs` (+89 -0) ➕ `scripts/regressions/fixtures/restart-server.mjs` (+21 -0) ➖ `scripts/regressions/fixtures/restart-server.ts` (+0 -12) ➕ `scripts/regressions/restart-diagnostics.regression.mjs` (+87 -0) 📝 `scripts/regressions/restart-supervisor.regression.ts` (+5 -3) </details> ### 📄 Description ## Linked issue Refs #8081. Owner: @SpicyMarinara. The intermittent cold Windows import remains under investigation; this PR does not close it as fixed. ## Why this change When the restart regression reaches its existing first-boot deadline, its output identifies the server-import phase but retains no process report. A passing rerun cannot distinguish the TypeScript source loader from compiled-server startup on the runner that stalled. ## What changed - Keep per-process source/compiled phase snapshots with Node, runner image, architecture, active resources and memory. A boot still pending after 15 seconds also saves a native Node diagnostic report. Reports omit environment variables in the main thread and nested worker reports, and disable network discovery. - Retain that evidence from failed or cancelled native and Windows launcher jobs. Normal boots cancel the slow-start report. - Run the same restart regression against the compiled server after the source run in the native platform matrix, including when the source run fails. The compiled fixture runs without the `tsx` loader; running it second preserves the source cold-start order. - Preserve the existing 60-second first-boot, 20-second replacement and 90-second whole-file deadlines, restart-route validation, launcher ownership, old-process exit and wiring assertions. Production startup and launchers are unchanged. The fixture is now plain JavaScript so both paths share the same assertions. A diagnostic timer cannot run if the JavaScript thread itself is blocked; in that case the last phase snapshot is the remaining evidence. The report can expose native/loader-worker state, but does not prove which import caused a stall. ## Validation - `pnpm check` passed (one existing React Hook warning). - Real source restart regression passed on macOS ARM64 / Node 24.22.1: initial 4,350 ms; replacement 2,101 ms. - Real compiled restart regression passed in the same checkout: initial 1,373 ms; replacement 1,651 ms. - Diagnostic regression passed: ordinary boots cancel reports, a deliberately pending import phase saves an actual Node report, an existing worker is retained, and secret-canary environment values are absent from every report depth. - Regression timeout-policy guard, changed-file Prettier checks, JavaScript syntax checks and `git diff --check` passed. The diagnostics regression also reads both workflow upload gates and verifies success/failure/cancelled truth cases without cancelling Actions runs. - Local CodeRabbit: initial full review had zero findings; final full review identified one minor report-delay issue. The timer now fires at 15 seconds, before the replacement deadline; a real default-delay probe saved its pending-phase report at 15,003 ms. The narrow follow-up review of that one-line repair completed with zero findings. A further local review of the two cancellation gates and their workflow-condition proof was requested but is currently rate-limited; no completed review of that final delta is claimed. It has independent source review, passing `pnpm check` and passing focused regression proof; final GitHub review remains a merge gate. A separate fresh Windows control also passed the unchanged source regression on image `20261007.264.1` / Node 24.21.0: [job 120170064099](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39878550187/job/120170064099), initial 9,398 ms and replacement 4,717 ms. These match the original failing observation's image/Node versions; source revision and cache state differ, so this is another passing observation, not a root-cause reproduction. - [ ] Manually inspect retained artifacts from a future native Windows stall. - [ ] Compare source and compiled startup on the same failing runner, preserving exact image, Node and cache conditions. ### Manual verification notes No physical Windows reproduction or successful capture of the original intermittent stall is claimed. Native CI on this PR remains required before merge. ## Docs and release impact No user-facing docs, release metadata, dependencies, package-manager migration or production runtime changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:33 +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#8119
No description provided.