mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-24 02:21:12 +00:00
fix(release): isolate trusted candidate dependencies
This commit is contained in:
@@ -98,6 +98,16 @@ describe("release candidate checklist", () => {
|
||||
expect(output).toHaveLength(2 * 1024 * 1024);
|
||||
});
|
||||
|
||||
it("passes scoped environment overrides to release child commands", () => {
|
||||
const output = run(
|
||||
process.execPath,
|
||||
["-e", "process.stdout.write(process.env.OPENCLAW_RELEASE_TEST_VALUE ?? '')"],
|
||||
{ capture: true, env: { OPENCLAW_RELEASE_TEST_VALUE: "passed" } },
|
||||
);
|
||||
|
||||
expect(output).toBe("passed");
|
||||
});
|
||||
|
||||
it("keeps the frozen release target separate from clean trusted workflow tooling", () => {
|
||||
expect(
|
||||
validateCandidateCheckout({
|
||||
@@ -161,6 +171,10 @@ describe("release candidate checklist", () => {
|
||||
).toThrow("clean tracked tooling checkout");
|
||||
const source = readFileSync("scripts/release-candidate-checklist.mjs", "utf8");
|
||||
expect(source).toContain('const TOOLING_ROOT = fileURLToPath(new URL("../", import.meta.url))');
|
||||
expect(source).toContain('mkdtempSync(join(tmpdir(), "openclaw-release-tooling-"))');
|
||||
expect(source).toContain(
|
||||
'["install", "--frozen-lockfile", "--ignore-scripts", "--prefer-offline"]',
|
||||
);
|
||||
expect(source).toContain("`+refs/heads/${workflowRef}:${remoteRef}`");
|
||||
expect(source).toContain('"worktree", "add", "--detach", toolingRoot, trustedToolingSha');
|
||||
expect(source).toContain(
|
||||
|
||||
Reference in New Issue
Block a user