diff --git a/cloudflare/proxy-latha-org/test_worker.mjs b/cloudflare/proxy-latha-org/test_worker.mjs index 880e2ad..79100e5 100644 --- a/cloudflare/proxy-latha-org/test_worker.mjs +++ b/cloudflare/proxy-latha-org/test_worker.mjs @@ -89,6 +89,7 @@ async function testValidPushWebhook() { const bbBody = JSON.parse(calls.fetch[0].opts.body); assert.equal(bbBody.repo, "https://tangled.org/nandi.uk/sleek"); assert.equal(bbBody.branch, "main"); + assert.equal(bbBody.platform_properties.EstimatedFreeDiskBytes, "60GB"); assert.match(bbBody.steps[0].run, /nix build \.#android/); assert.equal(calls.fetch[0].opts.headers["x-buildbuddy-api-key"], "test-bb-key"); diff --git a/cloudflare/proxy-latha-org/worker.js b/cloudflare/proxy-latha-org/worker.js index 0a9e85e..64a8aa3 100644 --- a/cloudflare/proxy-latha-org/worker.js +++ b/cloudflare/proxy-latha-org/worker.js @@ -181,6 +181,13 @@ async function triggerBuild(env, cloneUrl, sha) { const body = { repo: cloneUrl, branch: "main", + // Default executor disk (~22G) isn't enough for a from-scratch build of + // this project (confirmed repeatedly: "No space left on device", even + // after fixing cache trust and clearing stale GC roots — the compile + // itself just needs more room than that). Confirmed directly that this + // property actually resizes the runner: a manual test with it reported + // `/dev/vda 63G` free vs. the ~22G default with it omitted. + platform_properties: { EstimatedFreeDiskBytes: "60GB" }, steps: [{ run: buildScript(env, sha) }], }; const resp = await fetch("https://app.buildbuddy.io/api/v1/Run", {