From 64d59c919d8cf3d498b009a519092b78ecb088d6 Mon Sep 17 00:00:00 2001 From: Roomote Date: Tue, 3 Nov 2026 02:19:53 +0000 Subject: [PATCH] perf(ci): run webview tests with four workers --- webview-ui/vitest.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webview-ui/vitest.config.ts b/webview-ui/vitest.config.ts index 0c17ab6203..420a3e164a 100644 --- a/webview-ui/vitest.config.ts +++ b/webview-ui/vitest.config.ts @@ -17,7 +17,9 @@ export default defineConfig({ environment: "jsdom", include: ["src/**/*.spec.{ts,tsx}", "src/**/*.test.{ts,tsx}"], onConsoleLog, - maxWorkers: isCI ? 1 : undefined, + // Four workers match the four vCPUs of the hosted CI runners; the + // benchmark in #2288 ran the same inventory roughly 3x faster than one. + maxWorkers: isCI ? 4 : undefined, testTimeout: isCI ? 15000 : 5000, server: { deps: {