fix(parallels): bound macos smoke downloads

This commit is contained in:
Vincent Koc
2026-06-20 18:20:55 +02:00
parent ecac665bf3
commit 3df4341e5a
2 changed files with 9 additions and 2 deletions

View File

@@ -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`);
}

View File

@@ -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", () => {