From 8a911f2cf64e9d0a807476fa6ed04ca9cc790040 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 8 Sep 2026 18:34:08 +0200 Subject: [PATCH] perf: cap CI test workers at 4 to protect shared production host --- .gitea/workflows/ci.yaml | 4 ++-- src/lib/deploy-workflow-contract.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 534221c917..0b443dcfc8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -53,9 +53,9 @@ jobs: BCRYPT_ROUNDS: 4 run: | 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 - time pnpm test:coverage --maxWorkers=6 + time pnpm test:coverage --maxWorkers=4 fi # ───────────────────────────────────────────── diff --git a/src/lib/deploy-workflow-contract.test.ts b/src/lib/deploy-workflow-contract.test.ts index 97ab5f7e74..7772744a22 100644 --- a/src/lib/deploy-workflow-contract.test.ts +++ b/src/lib/deploy-workflow-contract.test.ts @@ -4,7 +4,7 @@ import { expect, it } from "vitest"; const workflow = readFileSync(".gitea/workflows/ci.yaml", "utf8"); const deploy = readFileSync("scripts/ci-deploy.sh", "utf8"); 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).toContain("bash scripts/ci-deploy.sh"); expect(deploy).toContain(