fix: install hwlab render deps in temp clone

This commit is contained in:
Codex
2026-06-08 04:55:09 +00:00
parent 6d890c317f
commit 3877c97146
2 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -266,8 +266,10 @@ const sourceText = await Bun.file(new URL("./src/hwlab-g14.ts", import.meta.url)
assertCondition(
renderScript.includes("git clone --shared --no-checkout \"$cicd_repo\" \"$worktree_dir\"")
&& renderScript.includes("git -C \"$worktree_dir\" checkout --detach \"$source_commit\"")
&& renderScript.includes("npm ci --ignore-scripts --no-audit --prefer-offline")
&& renderScript.includes("bun install --frozen-lockfile --ignore-scripts")
&& renderScript.includes("/tmp/hwlab-v02-control-plane-source-aaaaaaaaaaaa-"),
"v0.2 control-plane render must use an isolated temp clone from the CI/CD repo so same-commit concurrent triggers do not share worktree metadata",
"v0.2 control-plane render must use an isolated temp clone with lockfile-based dependencies so same-commit concurrent triggers do not share worktree metadata",
renderScript,
);
assertCondition(