fix(parallels): bound update tarball probe · openclaw/openclaw@2166652
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -825,10 +825,16 @@ export class NpmUpdateSmoke {
|
825 | 825 | } |
826 | 826 | const output = run( |
827 | 827 | "bash", |
828 | | -["-lc", `curl -fsSL ${shellQuote(tarball)} | tar -xzOf - package/dist/build-info.json`], |
| 828 | +[ |
| 829 | +"-lc", |
| 830 | +`curl -fsSL --connect-timeout 10 --max-time 120 --retry 2 --retry-delay 2 ${shellQuote( |
| 831 | + tarball, |
| 832 | + )} | tar -xzOf - package/dist/build-info.json`, |
| 833 | +], |
829 | 834 | { |
830 | 835 | check: false, |
831 | 836 | quiet: true, |
| 837 | +timeoutMs: 150_000, |
832 | 838 | }, |
833 | 839 | ).stdout.trim(); |
834 | 840 | if (!output) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -247,6 +247,11 @@ exit 1
|
247 | 247 | }); |
248 | 248 | |
249 | 249 | it("accepts keyed and nested npm metadata for published update targets", () => { |
| 250 | +const script = readFileSync(SCRIPT_PATH, "utf8"); |
| 251 | + |
| 252 | +expect(script).toContain("curl -fsSL --connect-timeout 10 --max-time 120 --retry 2"); |
| 253 | +expect(script).toContain("timeoutMs: 150_000"); |
| 254 | + |
250 | 255 | expect( |
251 | 256 | parseRegistryPackageMetadata( |
252 | 257 | JSON.stringify({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。