test(release): skip restart in package upgrade lane

This commit is contained in:
Vincent Koc
2026-05-04 11:09:13 -07:00
parent 74ab62c6a2
commit 2511be5244
2 changed files with 28 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ import { LOCAL_BUILD_METADATA_DIST_PATHS } from "../../scripts/lib/local-build-m
import {
agentOutputHasExpectedOkMarker,
buildCrossOsReleaseSmokePluginAllowlist,
buildPackagedUpgradeUpdateArgs,
buildReleaseOnboardArgs,
buildWindowsDevUpdateToolchainCheckScript,
buildWindowsFreshShellVersionCheckScript,
@@ -232,6 +233,19 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
]);
});
it("keeps packaged-upgrade release updates out of service restart flow", () => {
const args = buildPackagedUpgradeUpdateArgs("http://127.0.0.1:49152/openclaw-current.tgz");
expect(args.slice(0, 6)).toEqual([
"update",
"--tag",
"http://127.0.0.1:49152/openclaw-current.tgz",
"--yes",
"--json",
"--no-restart",
]);
expect(args.at(-2)).toBe("--timeout");
});
it("keeps cross-OS live smoke agent turns on GPT-5-safe timeouts and minimal context", () => {
const source = readFileSync("scripts/openclaw-cross-os-release-checks.ts", "utf8");
const providerOverride = "models.providers.${params.providerConfig.extensionId}";