mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 15:34:46 +00:00
fix: tighten release tooling checks
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user