Files
deepseek-harness/vitest.web.perf.config.ts
T
imccyu 0ee562045e ci: build once and fan web snapshots out across weighted shards (#8861)
* ci: build once and fan web snapshots out across weighted shards

* ci: stamp restored build output with the extraction time

Build-time mtimes shifted past the clock made HMR treat freshly loaded
lib/ modules as changed and reload a plugin context while it was still
loading (plugin-manager-mcp headless snapshot).

* ci(web): run the longest web snapshot files as round-robin test slices

* ci: address review on the build-once fan-out
2026-11-20 12:09:36 +08:00

26 lines
934 B
TypeScript

import { defineConfig } from 'vitest/config'
import webConfig from './vitest.web.config.ts'
import { vitestExecArgv } from './vitest.shared.ts'
// The browser lane's `projects` and `sequence` would replace this root
// `include`, so the perf inventory keeps only the shared test options.
const { projects: _projects, sequence: _sequence, ...webTest } = webConfig.test ?? {}
// Manual high-cardinality diagnostics stay outside every default Vitest
// inventory and therefore outside CI's executed test lanes.
export default defineConfig({
...webConfig,
test: {
...webTest,
// Memory diagnostics use forced-GC baselines only in this manual inventory.
execArgv: [...vitestExecArgv, '--expose-gc'],
include: [
'apps/web/tests/**/*.perf.ts',
'packages/client/ui-conversation/tests/**/*.perf.client.ts',
],
disableConsoleIntercept: true,
hookTimeout: 180_000,
testTimeout: 600_000,
},
})