fix(release): allow large beta smoke run lists · openclaw/openclaw@2ad507c
steipete
·
2026-05-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -84,16 +84,18 @@ function requireValue(argv: string[], index: number, flag: string): string {
|
84 | 84 | return value; |
85 | 85 | } |
86 | 86 | |
| 87 | +const CAPTURE_MAX_BUFFER_BYTES = 32 * 1024 * 1024; |
| 88 | + |
87 | 89 | function run(command: string, args: string[], input?: { capture?: boolean }): string { |
88 | 90 | const result = spawnSync(command, args, { |
89 | 91 | encoding: "utf8", |
| 92 | +maxBuffer: CAPTURE_MAX_BUFFER_BYTES, |
90 | 93 | stdio: input?.capture ? ["ignore", "pipe", "pipe"] : "inherit", |
91 | 94 | }); |
92 | 95 | if (result.status !== 0) { |
| 96 | +const reason = result.status ?? result.signal ?? result.error?.message ?? "unknown"; |
93 | 97 | const stderr = result.stderr ? `\n${result.stderr}` : ""; |
94 | | -throw new Error( |
95 | | -`${command} ${args.join(" ")} failed with ${result.status ?? "signal"}${stderr}`, |
96 | | -); |
| 98 | +throw new Error(`${command} ${args.join(" ")} failed with ${reason}${stderr}`); |
97 | 99 | } |
98 | 100 | return result.stdout ?? ""; |
99 | 101 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。