perf(test): isolate core test hotspots

This commit is contained in:
Peter Steinberger
2026-04-25 03:41:05 +01:00
parent c150110e02
commit 28de3e1e5c
4 changed files with 70 additions and 31 deletions

View File

@@ -8,7 +8,6 @@ const CHECK_EXTENSION_PACKAGE_BOUNDARY_BIN = resolve(
"scripts/check-extension-package-tsc-boundary.mjs",
);
const SHOULD_RUN_BOUNDARY_SCRIPT_WRAPPER =
process.env.GITHUB_ACTIONS !== "true" ||
process.env.OPENCLAW_RUN_EXTENSION_PACKAGE_BOUNDARY_TEST === "1";
function runNode(args: string[], timeout: number) {
@@ -20,8 +19,8 @@ function runNode(args: string[], timeout: number) {
});
}
// The CI check-additional job runs this script directly. Avoid duplicating the cold
// 97-extension compile inside the full node test shard.
// The CI check-additional job and package scripts run this script directly. Keep this
// wrapper opt-in so full Vitest runs do not duplicate the cold extension compile.
describe.skipIf(!SHOULD_RUN_BOUNDARY_SCRIPT_WRAPPER)(
"opt-in extension package TypeScript boundaries",
() => {