diff --git a/hub/scripts/run-tests.mjs b/hub/scripts/run-tests.mjs index 8c16ba8..5d9d6e7 100644 --- a/hub/scripts/run-tests.mjs +++ b/hub/scripts/run-tests.mjs @@ -121,10 +121,12 @@ try { // pushed the core files' wall-clock perf budgets (e.g. SEC-AUDIT-5 M4) over on 4-vCPU CI runners. const isAdapterSuite = (outName) => outName.startsWith('wave2') || outName.startsWith('wave3') || outName === 'mcp-part2-wave2e.test.mjs'; - // security-audit holds unscaled wall-clock budgets (SEC-AUDIT-5 M4: 350ms for 40k unclosed tags). Even beside the - // other core files, the test-file parallelism on a 4-vCPU runner moved M4's best-of-5 between ~300ms and ~460ms - // for the same commit, so it runs in its own pass with no other test file competing for CPU. Budgets are unchanged. - const isPerfIsolated = (outName) => outName === 'security-audit.test.mjs'; + // security-audit and sanitizer-extraction hold unscaled wall-clock budgets and O(N) scaling ratios (SEC-AUDIT-5 M4: + // 350ms for 40k unclosed tags; R7-PI: 2 MiB within 16x of 256 KiB). Beside the other core files, test-file + // parallelism on a 4-vCPU runner moved M4's best-of-5 between ~300ms and ~460ms for the same commit and pushed R7-PI + // to 16.06x on an unchanged scanner, so they run one file at a time in their own pass. Budgets are unchanged. + const perfIsolatedOutNames = new Set(['security-audit.test.mjs', 'sanitizer-extraction.test.mjs']); + const isPerfIsolated = (outName) => perfIsolatedOutNames.has(outName); const nodeTestFiles = wave2Only ? [] : suiteSpecs.filter(([, o]) => !isAdapterSuite(o) && !isPerfIsolated(o)).map(([, o]) => join(dir, o));