perf: cap CI test workers at 4 to protect shared production host
CI / check (push) Successful in 59s
CI / deploy (push) Successful in 1m16s

This commit is contained in:
openhands committed 2026-09-08 18:34:08 +02:00
1 parent 5a79090942
commit 8a911f2cf6
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -53,9 +53,9 @@ jobs:
BCRYPT_ROUNDS: 4 BCRYPT_ROUNDS: 4
run: | run: |
if [ -x /usr/bin/time ]; then if [ -x /usr/bin/time ]; then
/usr/bin/time -f 'Tests: %e seconds; peak process RSS: %M KiB' pnpm test:coverage --maxWorkers=6 /usr/bin/time -f 'Tests: %e seconds; peak process RSS: %M KiB' pnpm test:coverage --maxWorkers=4
else else
time pnpm test:coverage --maxWorkers=6 time pnpm test:coverage --maxWorkers=4
fi fi
# ───────────────────────────────────────────── # ─────────────────────────────────────────────
+1 -1
View File
@@ -4,7 +4,7 @@ import { expect, it } from "vitest";
const workflow = readFileSync(".gitea/workflows/ci.yaml", "utf8"); const workflow = readFileSync(".gitea/workflows/ci.yaml", "utf8");
const deploy = readFileSync("scripts/ci-deploy.sh", "utf8"); const deploy = readFileSync("scripts/ci-deploy.sh", "utf8");
it("uses two test workers and runs smoke checks in the deployment transaction", () => { it("uses two test workers and runs smoke checks in the deployment transaction", () => {
expect(workflow).toContain("pnpm test:coverage --maxWorkers=6"); expect(workflow).toContain("pnpm test:coverage --maxWorkers=4");
expect(workflow).not.toContain("\n e2e:"); expect(workflow).not.toContain("\n e2e:");
expect(workflow).toContain("bash scripts/ci-deploy.sh"); expect(workflow).toContain("bash scripts/ci-deploy.sh");
expect(deploy).toContain( expect(deploy).toContain(