fix: tighten release tooling checks

This commit is contained in:
Peter Steinberger
2026-05-15 21:20:58 +01:00
parent 0b7ff665f6
commit 333f65fc8a
11 changed files with 232 additions and 27 deletions

View File

@@ -124,6 +124,13 @@ describe("resolveBuildAllStep", () => {
},
});
});
it("keeps plugin-sdk dts cache metadata aligned with declaration inputs", () => {
const step = getBuildAllStep("build:plugin-sdk:dts");
expect(step.cache?.inputs).toEqual(expect.arrayContaining(["packages/memory-host-sdk/src"]));
expect(step.cache?.outputs).toEqual(expect.arrayContaining(["dist/plugin-sdk/packages"]));
});
});
describe("resolveBuildAllSteps", () => {

View File

@@ -34,6 +34,20 @@ describe("run-oxlint", () => {
expect(shardedLintRunner).toContain('OPENCLAW_OXLINT_SKIP_PREPARE: "1"');
});
it("holds one parent heavy-check lock for sharded lint runs", () => {
const shardedLintRunner = readFileSync("scripts/run-oxlint-shards.mjs", "utf8");
const skipLockIndex = shardedLintRunner.indexOf('env.OPENCLAW_OXLINT_SKIP_LOCK === "1"');
const lockIndex = shardedLintRunner.indexOf("acquireLocalHeavyCheckLockSync({");
const childSkipIndex = shardedLintRunner.indexOf('OPENCLAW_OXLINT_SKIP_LOCK: "1"');
expect(shardedLintRunner).toContain("resolveLocalHeavyCheckEnv");
expect(shardedLintRunner).toContain("shouldAcquireLocalHeavyCheckLockForOxlint");
expect(skipLockIndex).toBeGreaterThan(-1);
expect(lockIndex).toBeGreaterThan(-1);
expect(lockIndex).toBeGreaterThan(skipLockIndex);
expect(childSkipIndex).toBeGreaterThan(lockIndex);
});
it("lets dev update preflight run oxlint shards serially", () => {
const shardedLintRunner = readFileSync("scripts/run-oxlint-shards.mjs", "utf8");