From 7c18170d6a638654c45edec35d8797cb04cb07b0 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 12 Apr 2026 15:06:10 +0700 Subject: [PATCH] Cap app vitest workers to 2 forks to reduce CPU pressure The app package used the default fork count (= CPU cores), which combined with concurrent agent test runs was starving the machine. --- packages/app/vitest.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/app/vitest.config.ts b/packages/app/vitest.config.ts index 7fa941358..a1986df8c 100644 --- a/packages/app/vitest.config.ts +++ b/packages/app/vitest.config.ts @@ -23,6 +23,11 @@ export default defineConfig({ * keeps `process.send` intact so the app tests can boot before hitting the intentional failures. */ pool: "forks", + poolOptions: { + forks: { + maxForks: 2, + }, + }, server: { deps: { fallbackCJS: true,