From d14081f2c7ae9379a43b4f13726ac831ac32b6f1 Mon Sep 17 00:00:00 2001 From: Test User Date: Mon, 13 Apr 2026 21:50:49 -0400 Subject: [PATCH 1/2] fix(ci): use threads pool instead of forks to prevent worker exit crashes --- .config/vitest.config.mts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.config/vitest.config.mts b/.config/vitest.config.mts index 8c0f2d0f..a49d0b7c 100644 --- a/.config/vitest.config.mts +++ b/.config/vitest.config.mts @@ -65,19 +65,14 @@ const vitestConfig = defineConfig({ : [toGlobPath(path.resolve(projectRoot, 'test/npm/**'))]), ], reporters: ['default'], - pool: process.env.CI ? 'forks' : 'threads', + pool: 'threads', poolOptions: { threads: { - maxThreads: 16, - minThreads: 4, + maxThreads: process.env.CI ? 4 : 16, + minThreads: process.env.CI ? 2 : 4, isolate: false, useAtomics: true, }, - forks: { - maxForks: process.env.CI ? 4 : 16, - minForks: process.env.CI ? 2 : 4, - isolate: true, - }, }, teardownTimeout: 30_000, testTimeout: 10_000, From 4a33e90ffb262d445789ea461caed683d0ef5a5d Mon Sep 17 00:00:00 2001 From: Test User Date: Mon, 13 Apr 2026 22:13:20 -0400 Subject: [PATCH 2/2] fix(config): add resolutionMode highest to pnpm-workspace.yaml Fixes ERR_PNPM_MISSING_TIME behind Socket Firewall by avoiding time-based resolution that requires the `time` field in registry metadata. --- pnpm-workspace.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 25272aca..7f402092 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,6 @@ ignoreDependencyScripts: true linkWorkspacePackages: false +resolutionMode: highest allowBuilds: esbuild: true