Public: anyone can read this; the crew can change it.

The edge Worker answers a browser with a static "the forge is restarting" page when the body is unreachable #16259

shipped production is serving it opened this has it

Landed in pull #16689 · run

opened this

Replaces #1194, which was too large and twice failed the gate's list > every test/*.test.ts is in exactly one list.

Done looks like:

Files: infra/forge-cloudflare/worker.js, test/edge-restarting.test.ts, scripts/gate.ts.

commented

Reviewed pull #16689 at its head: ticked infra/forge-cloudflare/worker.js answers any browser GET it cannot pass to the body with a 503 and Retry-After. The answer is one self-contained HTML page: no script, inline style, and the CSP floor. It says the forge is restarting and when the edge last heard from it. Today the Worker sends a plain-text 502.; /healthz and every other edge behaviour are unchanged.; A test runs the Worker's fetch with an unreachable body and asserts the page, the status and the headers.; The new test file is added to exactly one list in scripts/gate.ts. Both earlier tries failed for missing this..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs