fix(release): force isolated gateway shutdown (#110698)

This commit is contained in:
Peter Steinberger
2026-07-18 14:49:20 +01:00
committed by GitHub
parent 0acece4591
commit a026380614
3 changed files with 14 additions and 2 deletions

View File

@@ -484,7 +484,7 @@ export async function runInstallerFreshSuite(
logLanePhase(lane, "gateway-stop-managed");
await runInstalledCli({
cliPath: freshShell.cliPath,
args: ["gateway", "stop"],
args: ["gateway", "stop", "--force"],
env,
cwd: lane.homeDir,
logPath: join(params.logsDir, "installer-fresh-gateway-stop-managed.log"),

View File

@@ -109,7 +109,7 @@ export async function exerciseManagedGatewayLifecycle(
logLanePhase(params.lane, "gateway-stop");
await runInstalledCli({
cliPath: params.cliPath,
args: ["gateway", "stop"],
args: ["gateway", "stop", "--force"],
env: params.env,
cwd: params.lane.homeDir,
logPath: `${params.logPrefix}-stop.log`,

View File

@@ -793,6 +793,18 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
expect(args.at(-2)).toBe("--timeout");
});
it("forces shutdown of the isolated managed gateways owned by release checks", () => {
const source = [
"scripts/lib/cross-os-release-checks/lanes.ts",
"scripts/lib/cross-os-release-checks/runtime.ts",
]
.map((filePath) => readFileSync(filePath, "utf8"))
.join("\n");
expect(source.match(/args: \["gateway", "stop", "--force"\]/g)).toHaveLength(2);
expect(source).not.toContain('args: ["gateway", "stop"]');
});
it("keeps cross-OS live smoke agent turns on GPT-5-safe timeouts and minimal context", () => {
const source = [
"scripts/lib/cross-os-release-checks/agent.ts",