[PR #8057] [MERGED] chore(regressions): widen the native-export-memory timeout for the CI worker pool #8079

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8057
Author: @Promansis
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @Promansis

Base: staging ← Head: chore(regressions)/8037-pool-timeouts


📝 Commits (3)

  • 4419171 chore(regressions): widen the native-export-memory timeout for the CI worker pool (#8037)
  • 8cbc40a Merge upstream/staging into chore(regressions)/8037-pool-timeouts
  • 094b902 chore(regressions): keep the native-export-memory timeout comment on one table line (#8037)

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 scripts/regressions/regression-timeout-policy.regression.mjs (+1 -1)
📝 scripts/run-regressions.mjs (+2 -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

Closes #8037

Why this change

  • Since #7971 every Node regression runs in a 4-worker pool, where native-export-memory.regression.ts takes 26 s to over 60 s against 20 s alone. Its 60 s budget was set for a solo run, and it timed out once in the pool (run 39702340469, job 119574309448). A pool timeout is not a lost result, because the file is retried alone afterwards, but each one adds that serial retry to the lane's duration.
  • The issue first proposed raising the combat director's timeout too (300 s to 420 s). That half was dropped after #8036 (PR #8045) landed: the director now runs in about 55 s inside the pool (54.9 s and 56.0 s, once 124.1 s on a slow runner), so 300 s keeps at least 2.4× headroom.

What changed

  • Nothing changes for users; this only affects the regression runner. native-export-memory's per-file timeout goes from 60 s to 90 s, its comment now gives the pool timings, and the timeout-policy regression asserts the new value:

    -  // An out-of-memory control, then a small-heap server exports and re-imports a 64 MB gallery: 16-23 s on CI.
    -  if (relativePath === 'scripts/regressions/native-export-memory.regression.ts') return 60_000;
    +  // An out-of-memory control and a small-heap 64 MB gallery round trip: 20 s alone, 26 s to over 60 s in the CI pool.
    +  if (relativePath === 'scripts/regressions/native-export-memory.regression.ts') return 90_000;
    
  • A longer timeout also marks a file as slow, so 90 s ties restart-supervisor and this file now starts 4th instead of 6th in the pool's slow-first queue. With #8033's shards (now on staging), it is dealt to shard 1 beside the combat director instead of shard 3, and #8033's "each shard takes one of the slowest files" assertion still passes.

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

Agent-run checks on 44191715d (staging 1172159e9), Node v24.15.0:

Command Result
pnpm check exit 0 (one existing react-hooks/exhaustive-deps warning in client code this PR doesn't touch)
node scripts/run-regressions.mjs --filter regression-timeout-policy exit 0, 1/1 passed (0.25 s)
node scripts/run-regressions.mjs --filter native-export-memory exit 0, 1/1 passed (17.1 s alone)

After merging staging 0a82b26b3 (with #8033's shards) and shortening the comment to one table line, on 094b902e7:

Command Result
pnpm check exit 0 (the same existing warning)
node scripts/run-regressions.mjs --filter regression-timeout-policy (includes #8033's shard assertion) exit 0, 1/1 passed
node scripts/run-regressions.mjs --filter native-export-memory exit 0, 1/1 passed (16.9 s alone)
node scripts/run-regressions.mjs --list --shard <i>/3 332 / 332 / 331 files; slow files: shard 1 native-export-memory, ruleset-combat-director; shard 2 restart-supervisor, server-signal-shutdown; shard 3 avatar-variant-composite

Evidence:

  • Before: native-export-memory in the 4-worker CI pool: 43 s median and one 60 s timeout in #8033's shard runs (issue #8037); 26.1 s, 42.6 s and 21.4 s in the three staging-based runs since (jobs 119678441872, 119724308944, 119733394457), so its slowest pool run sits at or over the 60 s budget.
    After: the budget is 90 s, 1.5× the slowest pool run seen.
  • Shards, before (#8033's last run, 38c20210e): 1/3 6m21s (combat director 122.3 s), 2/3 4m22s, 3/3 6m38s (native-export-memory 49.4 s).
    After (this PR's run, 094b902e7): 1/3 6m37s (director 128.5 s and native-export-memory 49.8 s), 2/3 3m51s, 3/3 5m49s. 995/995 passed and no TIMEOUT line in any shard. Shard 1 grew 16 s and the other two shrank, so the lane's slowest shard is unchanged (6m37s against 6m38s); one run each, with the director alone varying 6 s between them.

Manual verification notes

  • Manually check this PR's node-regressions 1/3 log: native-export-memory.regression.ts should report PASSED with no TIMEOUT after line.

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)

Merge danger: two-way door (one number in the regression runner; reverting restores 60 s). Blast radius: CI timing only; a genuinely hung run of this file is reported 30 s later.

UI evidence (if applicable)

Not applicable: no UI change.

🤖 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/8057 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `chore(regressions)/8037-pool-timeouts` --- ### 📝 Commits (3) - [`4419171`](https://github.com/Pasta-Devs/Marinara-Engine/commit/44191715dee88fdba8e33683bfc83abdc7ee50d3) chore(regressions): widen the native-export-memory timeout for the CI worker pool (#8037) - [`8cbc40a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8cbc40a5187b34287846599914b9e0cd66c7441e) Merge upstream/staging into chore(regressions)/8037-pool-timeouts - [`094b902`](https://github.com/Pasta-Devs/Marinara-Engine/commit/094b902e722dcd0345a3a69ec33993890270daee) chore(regressions): keep the native-export-memory timeout comment on one table line (#8037) ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/regressions/regression-timeout-policy.regression.mjs` (+1 -1) 📝 `scripts/run-regressions.mjs` (+2 -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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #8037 ## Why this change - Since #7971 every Node regression runs in a 4-worker pool, where `native-export-memory.regression.ts` takes 26 s to over 60 s against 20 s alone. Its 60 s budget was set for a solo run, and it timed out once in the pool (run 39702340469, job 119574309448). A pool timeout is not a lost result, because the file is retried alone afterwards, but each one adds that serial retry to the lane's duration. - The issue first proposed raising the combat director's timeout too (300 s to 420 s). That half was dropped after #8036 (PR #8045) landed: the director now runs in about 55 s inside the pool (54.9 s and 56.0 s, once 124.1 s on a slow runner), so 300 s keeps at least 2.4× headroom. ## What changed - Nothing changes for users; this only affects the regression runner. `native-export-memory`'s per-file timeout goes from 60 s to 90 s, its comment now gives the pool timings, and the timeout-policy regression asserts the new value: ```diff - // An out-of-memory control, then a small-heap server exports and re-imports a 64 MB gallery: 16-23 s on CI. - if (relativePath === 'scripts/regressions/native-export-memory.regression.ts') return 60_000; + // An out-of-memory control and a small-heap 64 MB gallery round trip: 20 s alone, 26 s to over 60 s in the CI pool. + if (relativePath === 'scripts/regressions/native-export-memory.regression.ts') return 90_000; ``` - A longer timeout also marks a file as slow, so 90 s ties `restart-supervisor` and this file now starts 4th instead of 6th in the pool's slow-first queue. With #8033's shards (now on `staging`), it is dealt to shard 1 beside the combat director instead of shard 3, and #8033's "each shard takes one of the slowest files" assertion still passes. ## 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` Agent-run checks on 44191715d (staging 1172159e9), Node v24.15.0: | Command | Result | | --- | --- | | `pnpm check` | exit 0 (one existing `react-hooks/exhaustive-deps` warning in client code this PR doesn't touch) | | `node scripts/run-regressions.mjs --filter regression-timeout-policy` | exit 0, 1/1 passed (0.25 s) | | `node scripts/run-regressions.mjs --filter native-export-memory` | exit 0, 1/1 passed (17.1 s alone) | After merging `staging` 0a82b26b3 (with #8033's shards) and shortening the comment to one table line, on 094b902e7: | Command | Result | | --- | --- | | `pnpm check` | exit 0 (the same existing warning) | | `node scripts/run-regressions.mjs --filter regression-timeout-policy` (includes #8033's shard assertion) | exit 0, 1/1 passed | | `node scripts/run-regressions.mjs --filter native-export-memory` | exit 0, 1/1 passed (16.9 s alone) | | `node scripts/run-regressions.mjs --list --shard <i>/3` | 332 / 332 / 331 files; slow files: shard 1 `native-export-memory`, `ruleset-combat-director`; shard 2 `restart-supervisor`, `server-signal-shutdown`; shard 3 `avatar-variant-composite` | Evidence: - **Before:** `native-export-memory` in the 4-worker CI pool: 43 s median and one 60 s timeout in #8033's shard runs (issue #8037); 26.1 s, 42.6 s and 21.4 s in the three `staging`-based runs since (jobs 119678441872, 119724308944, 119733394457), so its slowest pool run sits at or over the 60 s budget. **After:** the budget is 90 s, 1.5× the slowest pool run seen. - **Shards, before** (#8033's last run, 38c20210e): 1/3 6m21s (combat director 122.3 s), 2/3 4m22s, 3/3 6m38s (`native-export-memory` 49.4 s). **After** (this PR's run, 094b902e7): 1/3 6m37s (director 128.5 s and `native-export-memory` 49.8 s), 2/3 3m51s, 3/3 5m49s. 995/995 passed and no `TIMEOUT` line in any shard. Shard 1 grew 16 s and the other two shrank, so the lane's slowest shard is unchanged (6m37s against 6m38s); one run each, with the director alone varying 6 s between them. ### Manual verification notes - Manually check this PR's `node-regressions 1/3` log: `native-export-memory.regression.ts` should report PASSED with no `TIMEOUT after` line. ## 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) Merge danger: two-way door (one number in the regression runner; reverting restores 60 s). Blast radius: CI timing only; a genuinely hung run of this file is reported 30 s later. ## UI evidence (if applicable) Not applicable: no UI change. 🤖 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-10-24 04:10:12 +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#8079
No description provided.