mirror of
https://github.com/nexu-io/open-design.git
synced 2026-09-20 06:15:06 +08:00
891981d460
* 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 commit5cbc48c0af. * Cache better-sqlite3 Nix binding separately * Revert "Cache better-sqlite3 Nix binding separately" This reverts commit0384e3787e. * Remove unused Nix cache setup from CI * Use Blacksmith ARM for lightweight CI jobs
19 lines
511 B
TypeScript
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,
|
|
},
|
|
});
|