diff --git a/scripts/fork-release/activate.mjs b/scripts/fork-release/activate.mjs index 5e232a5dbdceb..0a58c9f0cc62b 100644 --- a/scripts/fork-release/activate.mjs +++ b/scripts/fork-release/activate.mjs @@ -208,11 +208,12 @@ async function officeCheck(version, expectedRelease) { `const p = await import(${JSON.stringify(pin)}); p.assertApprovedT3ServerVersion(${JSON.stringify(version)});`, ]); run("systemctl", ["is-active", "office-t3-worker.service"]); - // The shell snapshot of a busy server can take several seconds; retry before failing. + // The shell snapshot of a busy server can take several seconds (13-24 s on a + // degraded 29 GB database before fork.83); retry before failing. await withRetries(3, async () => { const response = await fetch("http://127.0.0.1:3779/api/orchestration/shell", { headers: { "x-t3-orchestration-protocol": "2" }, - signal: AbortSignal.timeout(30_000), + signal: AbortSignal.timeout(120_000), }); if (!response.ok) throw Error("Ubuntu orchestration protocol health failed"); await response.arrayBuffer(); diff --git a/scripts/fork-release/release.mjs b/scripts/fork-release/release.mjs index 51f392cbf9f2c..5a01f9920ff3d 100644 --- a/scripts/fork-release/release.mjs +++ b/scripts/fork-release/release.mjs @@ -91,6 +91,8 @@ export function run(command, args, options = {}) { cwd: sourceRoot, encoding: "utf8", timeout: options.timeout ?? 30_000, + // Upstream syncs produce multi-megabyte source diffs; the 1 MB default fails with ENOBUFS. + maxBuffer: 256 * 1024 * 1024, stdio: ["ignore", "pipe", "pipe"], ...options, });