[GH-ISSUE #7970] [Issue]: Node regression lane runs every file serially and takes ~35 of its 45 CI minutes #4375

Closed
opened 2026-10-22 04:06:08 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @Promansis on GitHub.

Summary

The complete-node-regressions job in the "Regression Checks" workflow (.github/workflows/playwright.yml) now takes about 35 minutes of its 45-minute timeout-minutes, because scripts/run-regressions.mjs runs every Node regression file one after another.

Expected behavior

The Node regression lane finishes well under 10 minutes on a hosted ubuntu-latest runner (4 vCPU) and leaves comfortable headroom under the job timeout as the suite keeps growing.

Actual behavior

  • main() in scripts/run-regressions.mjs runs the selected files in a plain sequential for loop (await runRegression(file) per file), so only one regression process runs at a time on a 4-vCPU runner.
  • The suite grew from 537 files taking 15.3 min (Oct 7) to 952 files taking 34.8 min (Oct 21). The sum of per-file durations equals the job's wall time, so there is no parallelism today.
  • The Oct 13-14 game-ruleset merges (PRs #7563, #7584, #7587, #7588, #7589, #7613, #7629) added 230 regression files. The per-file median rose from 1.0 s to 1.6 s, and ruleset-combat-director.regression.ts went from about 20 s to about 130 s.
  • With timeout-minutes: 45, the job has roughly 8 minutes of headroom left.

Steps to reproduce

  1. Open any recent Regression Checks run on a PR into staging.
  2. Look at the complete-node-regressions job duration (about 35 min).
  3. Compare the per-file [file] PASSED (Nms) lines: their sum matches the job's wall time.

Environment

  • Marinara Engine version: 2.5.1 (staging at 128c453ff)
  • Install type: source (GitHub Actions hosted runner)
  • OS + version: ubuntu-latest, 4 vCPU
  • Browser or app shell: n/a (Node regression lane)

Logs, screenshots, or video

See the complete-node-regressions job logs on recent PR runs of the Regression Checks workflow.

Additional context

Minimal fix:

  • scripts/run-regressions.mjs: run runRegression(file) through a bounded worker pool. Default concurrency is os.availableParallelism(), overridable with --concurrency N or REGRESSION_CONCURRENCY; --concurrency 1 keeps today's serial behaviour. Keep --filter, --list, the per-file timeouts, the per-file result line, the summary line and the exit code. Keep each file's output grouped with its result line, and stop every running child on SIGINT/SIGTERM.
  • Any regression file that cannot share the machine with others (fixed ports, fixed temp paths, repository writes) runs after the pool on an explicit serial list.
  • Out of scope: path-based selection of which regressions run.

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 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7970 Originally assigned to: @Promansis on GitHub. ## Summary The `complete-node-regressions` job in the "Regression Checks" workflow (`.github/workflows/playwright.yml`) now takes about 35 minutes of its 45-minute `timeout-minutes`, because `scripts/run-regressions.mjs` runs every Node regression file one after another. ## Expected behavior The Node regression lane finishes well under 10 minutes on a hosted `ubuntu-latest` runner (4 vCPU) and leaves comfortable headroom under the job timeout as the suite keeps growing. ## Actual behavior - `main()` in `scripts/run-regressions.mjs` runs the selected files in a plain sequential `for` loop (`await runRegression(file)` per file), so only one regression process runs at a time on a 4-vCPU runner. - The suite grew from 537 files taking 15.3 min (Oct 7) to 952 files taking 34.8 min (Oct 21). The sum of per-file durations equals the job's wall time, so there is no parallelism today. - The Oct 13-14 game-ruleset merges (PRs #7563, #7584, #7587, #7588, #7589, #7613, #7629) added 230 regression files. The per-file median rose from 1.0 s to 1.6 s, and `ruleset-combat-director.regression.ts` went from about 20 s to about 130 s. - With `timeout-minutes: 45`, the job has roughly 8 minutes of headroom left. ## Steps to reproduce 1. Open any recent Regression Checks run on a PR into `staging`. 2. Look at the `complete-node-regressions` job duration (about 35 min). 3. Compare the per-file `[file] PASSED (Nms)` lines: their sum matches the job's wall time. ## Environment - Marinara Engine version: 2.5.1 (`staging` at 128c453ff) - Install type: source (GitHub Actions hosted runner) - OS + version: ubuntu-latest, 4 vCPU - Browser or app shell: n/a (Node regression lane) ## Logs, screenshots, or video See the `complete-node-regressions` job logs on recent PR runs of the Regression Checks workflow. ## Additional context Minimal fix: - `scripts/run-regressions.mjs`: run `runRegression(file)` through a bounded worker pool. Default concurrency is `os.availableParallelism()`, overridable with `--concurrency N` or `REGRESSION_CONCURRENCY`; `--concurrency 1` keeps today's serial behaviour. Keep `--filter`, `--list`, the per-file timeouts, the per-file result line, the summary line and the exit code. Keep each file's output grouped with its result line, and stop every running child on SIGINT/SIGTERM. - Any regression file that cannot share the machine with others (fixed ports, fixed temp paths, repository writes) runs after the pool on an explicit serial list. - Out of scope: path-based selection of which regressions run. ## 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.
Author
Owner

@Promansis commented on GitHub (Oct 21, 2026):

Taking this: @Promansis (AI agent session) is working on it in draft PR #7971, branch chore/7970-concurrent-regressions.

<!-- gh-comment-id:6318322514 --> @Promansis commented on GitHub (Oct 21, 2026): Taking this: @Promansis (AI agent session) is working on it in draft PR #7971, branch `chore/7970-concurrent-regressions`.
bsakaguchi 2026-10-24 04:03:37 +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#4375
No description provided.