From 76c8f9ac3f119d8ac5a6ace71945c6a1fed32625 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 15:59:24 +0100 Subject: [PATCH] test(parallels): budget Windows agent retry --- scripts/e2e/parallels/windows-smoke.ts | 6 +++--- test/scripts/parallels-smoke-model.test.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/e2e/parallels/windows-smoke.ts b/scripts/e2e/parallels/windows-smoke.ts index 28dcffe186d..ed68edc6b14 100755 --- a/scripts/e2e/parallels/windows-smoke.ts +++ b/scripts/e2e/parallels/windows-smoke.ts @@ -397,7 +397,7 @@ class WindowsSmoke { this.status.freshGateway = "pass"; await this.phase( "fresh.first-agent-turn", - Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 900), + Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500), () => this.verifyTurn(), ); this.status.freshAgent = "pass"; @@ -453,7 +453,7 @@ class WindowsSmoke { this.status.upgradeGateway = "pass"; await this.phase( "upgrade.first-agent-turn", - Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 900), + Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500), () => this.verifyTurn(), ); this.status.upgradeAgent = "pass"; @@ -936,7 +936,7 @@ for ($attempt = 1; $attempt -le 2; $attempt++) { } } if (-not $agentOk) { throw 'openclaw agent finished without OK response' }`, - Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 900) * 1000, + Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500) * 1000, ); } diff --git a/test/scripts/parallels-smoke-model.test.ts b/test/scripts/parallels-smoke-model.test.ts index a34343efff9..0535924de3c 100644 --- a/test/scripts/parallels-smoke-model.test.ts +++ b/test/scripts/parallels-smoke-model.test.ts @@ -459,6 +459,7 @@ console.log(JSON.stringify(result)); expect(script).toContain('guestPowerShellBackground(\n "agent-turn"'); expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S"); + expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 1500"); expect(script).toContain("windowsModelProviderTimeoutScript(this.auth.modelId)"); expect(script).toContain("finalAssistant(Raw|Visible)Text"); expect(script).toContain("parallels-windows-smoke-retry-$attempt");