The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(config): update vitest config and ci lanes plan
Steven Enamakel602433ca165c
diff --git a/app/test/vitest.config.ts b/app/test/vitest.config.tsindex 101b3a94b5..72220936b0 100644--- a/app/test/vitest.config.ts+++ b/app/test/vitest.config.ts@@ -12,6 +12,10 @@ const projectRoot = path.resolve(configDir, "..");const requestedWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? "", 10);const maxWorkers =Number.isInteger(requestedWorkers) && requestedWorkers > 0 ? requestedWorkers : 1;+// Optional worker pool. CI Fast on the EX63 sets VITEST_POOL=threads: the same+// 8,764 tests pass and the run is ~18% faster than the default `forks` pool.+const requestedPool = process.env.VITEST_POOL;+const pool = requestedPool === "threads" || requestedPool === "forks" ? requestedPool : undefined;export default defineConfig({root: projectRoot,@@ -44,6 +48,7 @@ export default defineConfig({environment: "jsdom",maxWorkers,minWorkers: 1,+ ...(pool ? { pool } : {}),// Clear call history between tests but keep mock implementations from setup.ts// (mockReset/restoreMocks wipe vi.fn implementations and break shared mocks like getBackendUrl).clearMocks: true,diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex 8a379b941f..4e7f0afc9c 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -259,7 +259,11 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {{// Split from `frontend` so the long vitest run overlaps the lint checks.name: "frontend-tests",- env: { NODE_ENV: "test", VITEST_MAX_WORKERS: ex63 ? "8" : "3" },+ env: {+ NODE_ENV: "test",+ VITEST_MAX_WORKERS: ex63 ? "8" : "3",+ ...(ex63 ? { VITEST_POOL: "threads" } : {}),+ },checks: [{name: "vitest-coverage",