mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:00:42 +00:00
perf(test): isolate core test hotspots
This commit is contained in:
@@ -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",
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user