From 021373a4541e53cc5a29e7cd672e578a96fe3276 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 4 May 2026 21:34:15 +0100 Subject: [PATCH] ci(release): recover Windows packaged update no-restart timeout --- scripts/openclaw-cross-os-release-checks.ts | 2 +- test/scripts/openclaw-cross-os-release-checks.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/openclaw-cross-os-release-checks.ts b/scripts/openclaw-cross-os-release-checks.ts index 668291cdaf9..866b656f890 100644 --- a/scripts/openclaw-cross-os-release-checks.ts +++ b/scripts/openclaw-cross-os-release-checks.ts @@ -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, ) ); diff --git a/test/scripts/openclaw-cross-os-release-checks.test.ts b/test/scripts/openclaw-cross-os-release-checks.test.ts index c469743dfca..a334d09bd06 100644 --- a/test/scripts/openclaw-cross-os-release-checks.test.ts +++ b/test/scripts/openclaw-cross-os-release-checks.test.ts @@ -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);