Repository navigation
Description
Failure
publish-site on main at d5902aa3 — run 34329393725, attempt 1, "Bound the deploy gate's agent wait by the page's activity, not a fixed clock (#500)". The deploy-site job failed in Verify the bundled release locally in Chrome.
Diagnosis
Transient: the local wrangler dev process exited part-way through the page walk. The browser's own report is the evidence — one 500, then ERR_EMPTY_RESPONSE, ERR_CONNECTION_RESET, and 34 consecutive ERR_CONNECTION_REFUSED. A refused connection on 127.0.0.1:8787 is a server that is no longer listening, not a page that is slow to present.
RuntimeError: http://127.0.0.1:8787/examples/feature-gallery/versions/v1.html never presented,
reaching no startup milestone; browser errors: ['Failed to load resource: the server responded
with a status of 500 (Internal Server Error)', 'Failed to load resource: net::ERR_EMPTY_RESPONSE',
'Failed to load resource: net::ERR_CONNECTION_RESET', 'Failed to load resource:
net::ERR_CONNECTION_REFUSED', ...]
The worker log verify-site-local.sh dumps ends on wrangler's own top-level handler with an empty message — ✘ [ERROR] followed by "If you think this is a bug then please create an issue at cloudflare/workers-sdk" — immediately after the last request it served successfully, examples--feature-gallery/sitenote.js 200 OK. It names no cause, and the container that returned the 500 logged nothing at all.
The commit is not the cause, and the code is not either
d5902aa3 changes verify_agent_turn, two module constants, the job's timeout-minutes, and two tests. The agent pass it rewrites is gated on LEAF_VERIFY_AGENT=1 in main(), which this step does not set, so none of the changed code runs here.
Attempt 2 of the same run settles it directly: Verify the bundled release locally in Chrome passed on the identical commit fifteen minutes later, and the deployment went through — leaf.page serves release a34afab4…. The same step had also passed on 426ae120 nineteen minutes earlier, and on every publish-site run before it apart from the one noted below.
Why no fix was produced
The fault is in wrangler dev's local container runtime, which is where the evidence stops: wrangler reports no message, the container logs nothing, and the sandbox this diagnosis ran in has no Docker socket, so the crash cannot be reproduced or bisected from CI. There is no repository-side defect to point at.
The remedies that suggest themselves are worse than the fault, and #475 already argued the same ones down: a retry around the local gate makes the one step standing between a regression and a public deploy fail twice before it is believed, and a longer presentation budget hides a real stall as readily as this one. Reporting is not the gap either — #467's output is what made this diagnosable in a single read, and 34 refused connections say "the server is gone" plainly enough that a dedicated liveness line would only restate it.
Recurrence record
This is the second stall of this gate inside a day, and #475 is the record it counts against:
- #475 — 09-09 02:47, run 34303405555. A page that never presented, diagnosed before Report the stalled page and its startup milestones when the site gate times out #467 landed, so the run could not say which page or why; contention with the background image build was the hypothesis.
- This run — 09-09 08:30. The same symptom with Report the stalled page and its startup milestones when the site gate times out #467's output behind it, and a different mechanism: the worker process exited rather than stalled.
Not the repeat-occurrence case yet, which asks for two prior occurrences on separate days. A third — particularly another exit rather than a stall — is where wrangler dev itself becomes the thing to change, by pinning or upgrading it (the run was on 4.129.0, and wrangler's own error footer noted 4.130.0). Nothing in worker/package.json has moved since c8119589, so a drifting local dependency is not the explanation for the pair.
Note on the run's other failure
Attempt 2 failed later, in Verify the exact public release in Chrome, on the deploy gate's second invocation re-sampling a release reading its own wait had just satisfied. That is a separate and durable shape, already diagnosed and fixed by the open #487, where this recurrence is recorded.
Activity
leaf-agent commentedon Sep 9, 2026
Transient — closing as diagnosed. Attempt 2 passed the same step on the same commit and deployed; the run's remaining red is the separate shape #487 fixes.
Toggle pane shortcuts and upgrade Wrangler (#530)