fix: materialize node CICD cache

This commit is contained in:
Codex
2026-07-01 12:02:06 +00:00
parent da8f990319
commit c03b6b7ca9
2 changed files with 41 additions and 4 deletions
+25
View File
@@ -0,0 +1,25 @@
import assert from "node:assert/strict";
import { test } from "bun:test";
import { runtimeLaneCicdRepoEnsureScript } from "./cleanup";
test("CI/CD repo cache is materialized for local shared render clones", () => {
const script = runtimeLaneCicdRepoEnsureScript({
cicdRepo: "/tmp/hwlab-v03-cicd.git",
cicdRepoLock: "/tmp/hwlab-v03-cicd-repo.lock",
gitUrl: "https://github.com/pikasTech/HWLAB.git",
sourceBranch: "v0.3",
downloadProfile: {
git: {
retries: 2,
timeoutSeconds: 60,
},
},
} as never);
assert.doesNotMatch(script, /--filter=blob:none/u);
assert.match(script, /reason=partial-clone-cache/u);
assert.match(script, /remote\.origin\.promisor/u);
assert.match(script, /remote\.origin\.partialclonefilter/u);
assert.match(script, /clone --bare --depth=1 --single-branch/u);
});