From 75a5835417451431531af87a9a02178a94fb375b Mon Sep 17 00:00:00 2001 From: vivek Date: Wed, 28 Oct 2026 17:31:40 -0700 Subject: [PATCH 1/2] fix(release): allow large source diffs in qualify --- scripts/fork-release/release.mjs | 2 ++ 1 file changed, 2 insertions(+) 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, }); From 00198a5d4e849312bfcf66a1c3b4a6c3f3ce72d8 Mon Sep 17 00:00:00 2001 From: vivek Date: Wed, 28 Oct 2026 17:35:35 -0700 Subject: [PATCH 2/2] fix(release): give a degraded server two minutes to answer the protocol check --- scripts/fork-release/activate.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();