From 0a67c37ac35b4a0f67a7063e803b69a5a84c3d8c Mon Sep 17 00:00:00 2001 From: Lily Shen <115414357+lilyshen0722@users.noreply.github.com> Date: Sun, 1 Nov 2026 08:13:43 -0800 Subject: [PATCH] test(seats): cap node --test concurrency to 4 on local runs only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit packages/seats ran `node --test` with no concurrency cap, so a local `npm test` fanned out one process per test file across all cores (process isolation) and pegged the shared 24 GB dev host — the same host-stability failure the backend jest.config.js already guards against with maxWorkers:2-on-local. Mirror that: cap to --test-concurrency=4 when CI is unset, keep the runner default on CI (GitHub sets CI=true, so the flag is omitted there — no runner throttle). Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_015AKgpNr8tFMMj8aFvFPUdA --- packages/seats/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/seats/package.json b/packages/seats/package.json index ca4b81f327..238170f2b3 100644 --- a/packages/seats/package.json +++ b/packages/seats/package.json @@ -17,6 +17,6 @@ "node": ">=20.0.0" }, "scripts": { - "test": "node --test \"test/**/*.test.js\"" + "test": "node --test $([ -z \"$CI\" ] && echo --test-concurrency=4) \"test/**/*.test.js\"" } }