Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/fork-release/activate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions scripts/fork-release/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down