From 6f41f504c97d628c543c1fb082977e5b7c9654a1 Mon Sep 17 00:00:00 2001 From: pikastech Date: Mon, 20 Jul 2026 17:09:03 +0200 Subject: [PATCH] fix(cicd): preserve public edge reconcile budget --- .../cicd/deliver-platform-infra-public-edge.mjs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/native/cicd/deliver-platform-infra-public-edge.mjs b/scripts/native/cicd/deliver-platform-infra-public-edge.mjs index f398dc38..516ec346 100644 --- a/scripts/native/cicd/deliver-platform-infra-public-edge.mjs +++ b/scripts/native/cicd/deliver-platform-infra-public-edge.mjs @@ -40,7 +40,7 @@ try { entrypoint: plan.entrypoint, sourceCommit: options.sourceCommit, targetId: plan.targetId, - })); + }), 150_000); const runtime = parseOutput(remote.stdout); if (runtime.ok !== true) fail("host-local public-edge reconcile 未返回 ok=true"); output({ @@ -172,9 +172,12 @@ bun ${shellQuote(input.entrypoint)} --source-root "$tmp/source" --source-commit `; } -function runTrans(path, args, env, input) { - const result = spawnSync(path, args, { encoding: "utf8", env, input, timeout: 60_000, maxBuffer: 16 * 1024 * 1024 }); - if (result.status !== 0) fail(`trans ${args.slice(1, 3).join(" ")} 失败:${result.stderr || result.stdout}`); +function runTrans(path, args, env, input, timeout = 60_000) { + const result = spawnSync(path, args, { encoding: "utf8", env, input, timeout, maxBuffer: 16 * 1024 * 1024 }); + if (result.status !== 0) { + const detail = result.stderr || result.stdout || result.error?.message || `status=${result.status ?? "null"} signal=${result.signal ?? "none"}`; + fail(`trans ${args.slice(1, 3).join(" ")} 失败:${detail}`); + } return result; }