[PR #8892] [MERGED] test: Windows shutdown fixture's caller covers the whole fixture #8866

Closed
opened 2026-11-07 17:40:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/windows-shutdown-fixture-budget


📝 Commits (1)

  • fc71ca6 test: give the Windows shutdown fixture's caller time for the whole fixture

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 scripts/regressions/server-signal-shutdown.regression.ts (+6 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Refs #8887 (CI failures blocking the v2.5.2 promotion, #8878).

Why this change

windows-launcher-regressions, a required check, failed on #8891 with EPERM removing the regression's temp folder. That error hid the real one:

  • execFileSync's 45 s timeout killed the Windows fixture 2.5 s after it sent the native Ctrl+C, before the server finished closing. Its "Shutdown complete" came 0.4 s later.
  • Cleanup in finally then hit the server's still-open files and replaced the timeout error with EPERM.

The fixture compiles its console bindings first (23 s on that cold runner), then allows 25 s for readiness and 15 s for the exit, so a 45 s caller can't cover it. The POSIX caller got 50 s in e6a8ff94bb; Windows stayed at 45 s. Passing runs take 13–29 s for this step. Any PR can hit this on a cold runner, the promotion included.

What changed

  • The Windows caller in server-signal-shutdown.regression.ts allows 90 s, inside the step's 5-minute limit.
  • The temp-folder cleanup retries for up to 2 s (maxRetries: 10, retryDelay: 200), as restart-supervisor.regression.ts already does. A server still closing can no longer replace the fixture's own error.
  • What the regression checks is unchanged.

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

  • Manually verify that windows-launcher-regressions passes on this PR.

Agent-run checks:

  • From the failing job's log: the step started at 18:48:46.6 and failed at 18:49:32.3. The fixture sent Ctrl+C at 18:49:29.2 and never logged "Supervisor exited after Ctrl+C". The server logged "Shutdown complete" at 18:49:32.05.
  • Six passing runs of this step took 13.1–28.8 s.
  • The regression's POSIX path, run locally: passes. Prettier on the file: passes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🤖 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/8892 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/5/2026 **Status:** ✅ Merged **Merged:** 11/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/windows-shutdown-fixture-budget` --- ### 📝 Commits (1) - [`fc71ca6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fc71ca64ca7e0d1612415d37ec16eaccfb8ee880) test: give the Windows shutdown fixture's caller time for the whole fixture ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/regressions/server-signal-shutdown.regression.ts` (+6 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Refs #8887 (CI failures blocking the v2.5.2 promotion, #8878). ## Why this change `windows-launcher-regressions`, a required check, failed on #8891 with `EPERM` removing the regression's temp folder. That error hid the real one: - `execFileSync`'s 45 s timeout killed the Windows fixture 2.5 s after it sent the native Ctrl+C, before the server finished closing. Its "Shutdown complete" came 0.4 s later. - Cleanup in `finally` then hit the server's still-open files and replaced the timeout error with `EPERM`. The fixture compiles its console bindings first (23 s on that cold runner), then allows 25 s for readiness and 15 s for the exit, so a 45 s caller can't cover it. The POSIX caller got 50 s in `e6a8ff94bb`; Windows stayed at 45 s. Passing runs take 13–29 s for this step. Any PR can hit this on a cold runner, the promotion included. ## What changed - The Windows caller in `server-signal-shutdown.regression.ts` allows 90 s, inside the step's 5-minute limit. - The temp-folder cleanup retries for up to 2 s (`maxRetries: 10, retryDelay: 200`), as `restart-supervisor.regression.ts` already does. A server still closing can no longer replace the fixture's own error. - What the regression checks is unchanged. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 - Manually verify that `windows-launcher-regressions` passes on this PR. Agent-run checks: - From the failing job's log: the step started at 18:48:46.6 and failed at 18:49:32.3. The fixture sent Ctrl+C at 18:49:29.2 and never logged "Supervisor exited after Ctrl+C". The server logged "Shutdown complete" at 18:49:32.05. - Six passing runs of this step took 13.1–28.8 s. - The regression's POSIX path, run locally: passes. Prettier on the file: passes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) 🤖 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 2026-11-07 17:40:20 +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#8866
No description provided.