fix(test): reuse heavy-check lock in boundary prep

This commit is contained in:
Vincent Koc
2026-04-25 02:45:29 -07:00
parent 678d2c327c
commit c1f359c276
4 changed files with 73 additions and 13 deletions

View File

@@ -21,7 +21,9 @@ if (tsBuildInfoFile) {
}
const sparseGuardError = getSparseTsgoGuardError(finalArgs, { cwd: process.cwd() });
const releaseLock =
sparseGuardError || !shouldAcquireLocalHeavyCheckLockForTsgo(finalArgs, env)
sparseGuardError ||
env.OPENCLAW_TSGO_HEAVY_CHECK_LOCK_HELD === "1" ||
!shouldAcquireLocalHeavyCheckLockForTsgo(finalArgs, env)
? () => {}
: acquireLocalHeavyCheckLockSync({
cwd: process.cwd(),