From 3df4341e5af909f73b2da644f4cd2ae41ea08340 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 20 Jun 2026 18:20:55 +0200 Subject: [PATCH] fix(parallels): bound macos smoke downloads --- scripts/e2e/parallels/macos-smoke.ts | 8 ++++++-- test/scripts/parallels-smoke-model.test.ts | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/e2e/parallels/macos-smoke.ts b/scripts/e2e/parallels/macos-smoke.ts index 6f21456ddfb1..12e2a4e91166 100755 --- a/scripts/e2e/parallels/macos-smoke.ts +++ b/scripts/e2e/parallels/macos-smoke.ts @@ -809,7 +809,9 @@ rm -f /tmp/openclaw-parallels-macos-gateway.log`); private installLatestRelease(): void { this.guestSh( `export OPENCLAW_NO_ONBOARD=1 -curl -fsSL ${shellQuote(this.options.installUrl)} -o /tmp/openclaw-install.sh +curl -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${shellQuote( + this.options.installUrl, + )} -o /tmp/openclaw-install.sh bash /tmp/openclaw-install.sh --version ${shellQuote(this.installVersion)} ${guestOpenClaw} --version`, ); @@ -837,7 +839,9 @@ ${guestOpenClaw} --version`); } const tgzUrl = this.server.urlFor(this.artifact.path); this.guestSh(`printf 'install-source: host-tgz %s\\n' ${shellQuote(tgzUrl)} -curl -fsSL ${shellQuote(tgzUrl)} -o /tmp/${tempName} +curl -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${shellQuote( + tgzUrl, + )} -o /tmp/${tempName} ${guestNpm} install -g /tmp/${tempName} ${guestOpenClaw} --version`); } diff --git a/test/scripts/parallels-smoke-model.test.ts b/test/scripts/parallels-smoke-model.test.ts index ca216b9e6feb..e81e7de77734 100644 --- a/test/scripts/parallels-smoke-model.test.ts +++ b/test/scripts/parallels-smoke-model.test.ts @@ -1255,6 +1255,9 @@ if (isPrlctl) { expect(macos).toContain('rm -rf "$HOME/.npm/_cacache"'); expect(macos.match(/\.onboard-ref", 420/g)).toHaveLength(2); expect(macos).toContain('echo "npm install attempt $attempt failed; retrying in 5s"'); + expect(macos.match(/curl -fsSL --connect-timeout 10 --max-time 120 --retry 2/g)).toHaveLength( + 2, + ); }); it("provisions portable Git before Windows dev update lanes", () => {