mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 06:11:38 +00:00
fix(release): force isolated gateway shutdown (#110698)
This commit is contained in:
committed by
GitHub
parent
0acece4591
commit
a026380614
@@ -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"),
|
||||
|
||||
@@ -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`,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user