test(webworker-runtime): keep the corpus gate as a Node import sweep

This commit is contained in:
imccyu
2026-08-26 12:35:05 +08:00
parent 6d9cc6ab96
commit 8793cd477b
3 changed files with 175 additions and 10 deletions
+4 -10
View File
@@ -36,7 +36,10 @@ export const coverageExemptHeavySuites: readonly CoverageExemptSuite[] = [
},
// The webworker-runtime package is outside the coverage requirement by
// decision: vitest.config.ts threshold-excludes its src, so every suite
// runs uninstrumented.
// runs uninstrumented. This tree includes the full-corpus import gate, a
// single 900s-budget case that spawns a child sweep over every built
// bundle; inside an instrumented partition it exceeds the Windows
// partition budget under load.
{
filter: 'packages/experimental/webworker-runtime/tests/',
exclude: 'packages/experimental/webworker-runtime/tests/**',
@@ -46,15 +49,6 @@ export const coverageExemptHeavySuites: readonly CoverageExemptSuite[] = [
{ filter: 'scripts/oxlint-contract.spec.ts', exclude: 'scripts/oxlint-contract.spec.ts' },
{ filter: 'scripts/change-scope.spec.ts', exclude: 'scripts/change-scope.spec.ts' },
{ filter: 'scripts/translation-pairing-merge.spec.ts', exclude: 'scripts/translation-pairing-merge.spec.ts' },
// Spawns the full-corpus transform gate in a child process (Node's ESM
// loader is its oracle), so no measured file executes in-process; the
// package src is threshold-excluded in vitest.config.ts. A single
// 900s-budget case; running it inside an instrumented partition exceeds
// the Windows partition budget under load.
{
filter: 'packages/experimental/webworker-runtime/tests/compile/transform-corpus.spec.ts',
exclude: 'packages/experimental/webworker-runtime/tests/compile/transform-corpus.spec.ts',
},
// Built-artifact proof. Packer/runtime src is threshold-excluded, and the
// native Windows aggregate makes this uninstrumented gate wait for build so
// the suite never observes a partially emitted workspace closure.