mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7971] [MERGED] chore(regressions): run Node regression files concurrently #8031
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8031
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7971
Author: @Promansis
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Promansis
Base:
staging← Head:chore/7970-concurrent-regressions📝 Commits (6)
d550995chore: start concurrent Node regression runner for #7970ff557dfchore(regressions): run Node regression files in a bounded parallel pool (#7970)6d80c64fix(regressions): keep one-file runs serial and tidy pool edge cases (#7970)4be3f26fix(regressions): stop running children on a runner error; dev-mcp reads latest attempts (#7970)dade4b1Merge branch 'staging' into chore/7970-concurrent-regressions3a7a2c9Merge branch 'staging' into chore/7970-concurrent-regressions📊 Changes
4 files changed (+112 additions, -39 deletions)
View changed files
📝
CONTRIBUTING.md(+1 -1)📝
scripts/regressions/regression-timeout-policy.regression.mjs(+8 -0)📝
scripts/run-regressions.mjs(+81 -36)📝
tools/dev-mcp/lib/engine.mjs(+22 -2)📄 Description
Linked issue
Closes #7970
Why this change
scripts/run-regressions.mjsran every Node regression file one after another. On the hosted runner (4 vCPU) thecomplete-node-regressionsjob took 34.8 min for 952 files, against a 45 mintimeout-minutes, and the suite keeps growing. This PR runs the files side by side.Summary
What changed
pnpm regressionruns the Node regression files in parallel, one per CPU core by default. Set the count with--concurrency <n>orREGRESSION_CONCURRENCY.--concurrency 1, and any run that selects only one file, keep the old serial behaviour with live output.run_regressionsnow reads the runner's final "Regression not passed" lines. If the run stops before its summary, it lists each file whose latest attempt missed.listen(0)), no shared fixed temp paths and noprocess.chdir, and full parallel runs left the repository unchanged.Evidence
Local runs on a shared 12-core development machine (other sessions were running at the same time):
--concurrency 1(serial path,6d80c64a5)--concurrency 4(ubuntu-latest width,ff557df62)pnpm regression, default 12 workers (ff557df62)build:sharedcomplete-node-regressions: 34.8 min, serial (Oct 21 staging run).After: hosted
complete-node-regressionson this PR (merge of4be3f266bwith staging,dade4b1b1, 4 workers): 956/956 passed, no misses or retries. The test step took 10 min 38 s and the job 11 min 12 s, about 3.3 times faster, but not yet under 10 min.--concurrency 1output matches the old runner line for line on--filter scripts/regressions/prompt(881 lines; only timestamps, process ids and durations differ).mkdtempSyncfailing) stops a hanging child at once (exit 1 after 0.6 s).pnpm checkpassed atff557df62. The later commits only touchscripts/run-regressions.mjsandtools/dev-mcp/lib/engine.mjs, which are outside its lint and format scope.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm regressionprints each file's output as one block and ends with the summary line.node scripts/run-regressions.mjs --concurrency 1 --filter promptstreams output live, as before.pnpm regressionleaves notsxregression processes running.Merge Danger
Door: two-way. This only changes the test runner and dev tooling. Reverting the commits restores the serial runner.
Blast Radius: CI time. A test that only passes when run alone is retried alone, so it still passes, but its first attempt shows as FAILED or TIMEOUT in the log.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CONTRIBUTING.md's regression-runner paragraph is updated. Nothing under
docs/changed.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.