mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
ci(release): recover Windows packaged update no-restart timeout
This commit is contained in:
@@ -1397,7 +1397,7 @@ export function isRecoverableWindowsPackagedUpgradeTimeoutError(
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
return (
|
||||
/\bCommand timed out:/u.test(message) &&
|
||||
/[/\\]openclaw\.mjs update --tag http:\/\/127\.0\.0\.1:\d+\/openclaw[^/\s]*\.tgz --yes --json --timeout \d+/u.test(
|
||||
/[/\\]openclaw\.mjs update --tag http:\/\/127\.0\.0\.1:\d+\/openclaw[^/\s]*\.tgz --yes --json(?: --no-restart)? --timeout \d+/u.test(
|
||||
message,
|
||||
)
|
||||
);
|
||||
|
||||
@@ -747,7 +747,7 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
|
||||
|
||||
it("recognizes the shipped Windows updater packaged-upgrade timeout", () => {
|
||||
const error = new Error(
|
||||
"Command timed out: C:\\hostedtoolcache\\windows\\node\\24.15.0\\x64\\node.exe C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\openclaw-upgrade-q9DsA7\\prefix\\node_modules\\openclaw\\openclaw.mjs update --tag http://127.0.0.1:49951/openclaw-2026.5.4-beta.1.tgz --yes --json --timeout 1500",
|
||||
"Command timed out: C:\\hostedtoolcache\\windows\\node\\24.15.0\\x64\\node.exe C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\openclaw-upgrade-q9DsA7\\prefix\\node_modules\\openclaw\\openclaw.mjs update --tag http://127.0.0.1:49951/openclaw-2026.5.4-beta.1.tgz --yes --json --no-restart --timeout 1500",
|
||||
);
|
||||
|
||||
expect(isRecoverableWindowsPackagedUpgradeTimeoutError(error, "win32")).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user