Files
PerishFire 891981d460 [codex] Optimize CI runtime topology (#4450)
* Optimize e2e tools-dev runtime parallelism

* Remove visual networkidle wait

* Optimize e2e vitest parallelism

* Optimize Nix flake caching

* Test CI on Blacksmith runners

* Allow parallel manual CI runs

* Tier CI runner sizes

* Temporarily narrow CI debug scope

* Instrument watcher CI timeouts

* Instrument watcher event diagnostics

* Avoid default polling in watcher tests

* Skip runtime trace during watcher debug

* Probe ARM runner tiers for CI

* Focus CI runner probe on x64 browser

* Probe browser workers by runner size

* Probe Playwright file parallelism

* Probe Playwright worker scaling on 8v

* Reshape CI topology

* Fix split E2E Vitest CI lane

* Simplify daemon CI topology

* Optimize Windows payload CI setup

* Revert "Optimize Windows payload CI setup"

This reverts commit 5cbc48c0af.

* Cache better-sqlite3 Nix binding separately

* Revert "Cache better-sqlite3 Nix binding separately"

This reverts commit 0384e3787e.

* Remove unused Nix cache setup from CI

* Use Blacksmith ARM for lightweight CI jobs
2026-06-17 12:53:06 +08:00

19 lines
511 B
TypeScript

import { defineConfig } from 'vitest/config';
const configuredMaxWorkers = Number.parseInt(process.env.OD_CI_DAEMON_MAX_WORKERS ?? '4', 10);
const maxWorkers = Number.isFinite(configuredMaxWorkers) && configuredMaxWorkers > 0
? configuredMaxWorkers
: 4;
export default defineConfig({
test: {
environment: 'node',
fileParallelism: true,
include: ['tests/**/*.test.{ts,tsx,js,mjs,cjs}'],
maxWorkers,
pool: 'forks',
setupFiles: ['tests/setup.ts'],
testTimeout: 20_000,
},
});