fix(parallels): bound macos smoke downloads · openclaw/openclaw@3df4341
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -809,7 +809,9 @@ rm -f /tmp/openclaw-parallels-macos-gateway.log`);
|
809 | 809 | private installLatestRelease(): void { |
810 | 810 | this.guestSh( |
811 | 811 | `export OPENCLAW_NO_ONBOARD=1 |
812 | | -curl -fsSL ${shellQuote(this.options.installUrl)} -o /tmp/openclaw-install.sh |
| 812 | +curl -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${shellQuote( |
| 813 | + this.options.installUrl, |
| 814 | + )} -o /tmp/openclaw-install.sh |
813 | 815 | bash /tmp/openclaw-install.sh --version ${shellQuote(this.installVersion)} |
814 | 816 | ${guestOpenClaw} --version`, |
815 | 817 | ); |
@@ -837,7 +839,9 @@ ${guestOpenClaw} --version`);
|
837 | 839 | } |
838 | 840 | const tgzUrl = this.server.urlFor(this.artifact.path); |
839 | 841 | this.guestSh(`printf 'install-source: host-tgz %s\\n' ${shellQuote(tgzUrl)} |
840 | | -curl -fsSL ${shellQuote(tgzUrl)} -o /tmp/${tempName} |
| 842 | +curl -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${shellQuote( |
| 843 | + tgzUrl, |
| 844 | + )} -o /tmp/${tempName} |
841 | 845 | ${guestNpm} install -g /tmp/${tempName} |
842 | 846 | ${guestOpenClaw} --version`); |
843 | 847 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1255,6 +1255,9 @@ if (isPrlctl) {
|
1255 | 1255 | expect(macos).toContain('rm -rf "$HOME/.npm/_cacache"'); |
1256 | 1256 | expect(macos.match(/\.onboard-ref", 420/g)).toHaveLength(2); |
1257 | 1257 | expect(macos).toContain('echo "npm install attempt $attempt failed; retrying in 5s"'); |
| 1258 | +expect(macos.match(/curl -fsSL --connect-timeout 10 --max-time 120 --retry 2/g)).toHaveLength( |
| 1259 | +2, |
| 1260 | +); |
1258 | 1261 | }); |
1259 | 1262 | |
1260 | 1263 | it("provisions portable Git before Windows dev update lanes", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。