[GH-ISSUE #8037] [Feature]: Widen the native-export-memory regression timeout for the CI worker pool #7531

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

Originally created by @Promansis on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8037

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Two per-file regression timeouts in scripts/run-regressions.mjs (regressionTimeoutMs) were set for a file running alone, but since #7971 every file runs in a 4-worker pool on a 4-vCPU runner, where a CPU-bound file takes 1.5–2.3× its solo time. The runner's own ponytail: note (near line 301) records that the timeouts assume one file at a time. Observed on complete-node-regressions runs for #8033 and the single-runner runs before it:

File Timeout Solo In the pool What happened
ruleset-combat-director.regression.ts 300 s 123 s 131, 137, 191, 299, 300 s Timed out once in five pool runs (run 39664968247, job 119474763718); two runs within 1.2 s of the limit
native-export-memory.regression.ts 60 s 20 s 43 s median; 60 s once Timed out in the pool on run 39702340469 (job 119574309448), then passed alone in 20 s

A pool timeout is not a lost result (the file is retried alone after the pool), but each one adds the full retry to the shard, about 2.5 min for the combat director, and it is the difference between a 4.5 min shard and a 7 min one.

Proposed solution

Widen native-export-memory's timeout and comment in regressionTimeoutMs, and its assert in scripts/regressions/regression-timeout-policy.regression.mjs (line 12):

// An out-of-memory control, then a small-heap server exports and re-imports a 64 MB gallery:
// 20 s alone, 26-60 s inside the 4-worker CI pool.
if (relativePath === 'scripts/regressions/native-export-memory.regression.ts') return 90_000;
assert.equal(regressionTimeoutMs("scripts/regressions/native-export-memory.regression.ts"), 90_000);

The combat director keeps 300 s: with #8036 (PR #8045) it ran in 56 s and 124 s inside the CI pool on that PR's two runs (jobs 119678441872 and 119724308944), so 300 s keeps at least 2.4× headroom.

With #8033's shards, 90 s ties restart-supervisor and deals native-export-memory into shard 1 beside the combat director instead of shard 3; every shard still takes one of the three slowest files. Confirm on the PR run that no shard grows.

Results are otherwise the same: the pool and the serial retry behave the same. The only cost is that a genuinely hung run of this file holds its shard 30 s longer before being reported, and only on failure.

Proof: node scripts/run-regressions.mjs --filter regression-timeout-policy and --filter native-export-memory pass locally; on the PR's own run, confirm no TIMEOUT line in the node-regressions logs.

Alternatives considered

  • Making the combat-director file faster (#8036). That removes most of the cause, but the pool still runs CPU-bound files at up to 2.3× solo time, so the budgets should reflect the pool regardless.
  • Scaling every timeout by the pool size at runtime: cleaner in principle, but it hides which files are actually slow and changes 968 budgets to fix two.
  • Lowering --concurrency in CI: makes every shard slower to protect two files.

Additional context

  • Pool timings come from complete-node-regressions jobs on PR #8033 (issue #8032), where the lane is split into three shards; the combat director sits in shard 1 and native-export-memory in shard 3.
  • The serial retry masks these timeouts today, so they show only in shard duration and in the job logs (TIMEOUT after 300s; terminating child.), never as a failed check.

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 @Promansis on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8037 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Two per-file regression timeouts in `scripts/run-regressions.mjs` (`regressionTimeoutMs`) were set for a file running alone, but since #7971 every file runs in a 4-worker pool on a 4-vCPU runner, where a CPU-bound file takes 1.5–2.3× its solo time. The runner's own `ponytail:` note (near line 301) records that the timeouts assume one file at a time. Observed on `complete-node-regressions` runs for #8033 and the single-runner runs before it: | File | Timeout | Solo | In the pool | What happened | | --- | --- | --- | --- | --- | | `ruleset-combat-director.regression.ts` | 300 s | 123 s | 131, 137, 191, 299, 300 s | Timed out once in five pool runs (run 39664968247, job 119474763718); two runs within 1.2 s of the limit | | `native-export-memory.regression.ts` | 60 s | 20 s | 43 s median; 60 s once | Timed out in the pool on run 39702340469 (job 119574309448), then passed alone in 20 s | A pool timeout is not a lost result (the file is retried alone after the pool), but each one adds the full retry to the shard, about 2.5 min for the combat director, and it is the difference between a 4.5 min shard and a 7 min one. ## Proposed solution Widen `native-export-memory`'s timeout and comment in `regressionTimeoutMs`, and its assert in `scripts/regressions/regression-timeout-policy.regression.mjs` (line 12): ```js // An out-of-memory control, then a small-heap server exports and re-imports a 64 MB gallery: // 20 s alone, 26-60 s inside the 4-worker CI pool. if (relativePath === 'scripts/regressions/native-export-memory.regression.ts') return 90_000; ``` ```js assert.equal(regressionTimeoutMs("scripts/regressions/native-export-memory.regression.ts"), 90_000); ``` The combat director keeps 300 s: with #8036 (PR #8045) it ran in 56 s and 124 s inside the CI pool on that PR's two runs (jobs 119678441872 and 119724308944), so 300 s keeps at least 2.4× headroom. With #8033's shards, 90 s ties `restart-supervisor` and deals `native-export-memory` into shard 1 beside the combat director instead of shard 3; every shard still takes one of the three slowest files. Confirm on the PR run that no shard grows. Results are otherwise the same: the pool and the serial retry behave the same. The only cost is that a genuinely hung run of this file holds its shard 30 s longer before being reported, and only on failure. Proof: `node scripts/run-regressions.mjs --filter regression-timeout-policy` and `--filter native-export-memory` pass locally; on the PR's own run, confirm no `TIMEOUT` line in the node-regressions logs. ## Alternatives considered - Making the combat-director file faster (#8036). That removes most of the cause, but the pool still runs CPU-bound files at up to 2.3× solo time, so the budgets should reflect the pool regardless. - Scaling every timeout by the pool size at runtime: cleaner in principle, but it hides which files are actually slow and changes 968 budgets to fix two. - Lowering `--concurrency` in CI: makes every shard slower to protect two files. ## Additional context - Pool timings come from `complete-node-regressions` jobs on PR #8033 (issue #8032), where the lane is split into three shards; the combat director sits in shard 1 and `native-export-memory` in shard 3. - The serial retry masks these timeouts today, so they show only in shard duration and in the job logs (`TIMEOUT after 300s; terminating child.`), never as a failed check. ## 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.
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#7531
No description provided.