Repository navigation
fix(fleet-stubs): a placeholder it cannot create is not the fleet's failure - #119
Merged
Merged
Conversation
…ailure Main went red on the merge of #118. policy-worker's pre-deploy exited 1 on fleet-stubs: creating lumen-billing-worker-stage: HTTP 403 code 10037, "You have exceeded the limit of 500 Workers on your account." and because every binding holder waits on policy-worker with `mode: enforced`, ten lanes went red on a step belonging to a component that was itself fine. The placeholder was never needed by most of them. A create that fails is now reported and skipped, not fatal. Each real deploy then speaks for itself: a target genuinely still missing fails ITS OWN lane with Cloudflare 10143, naming the worker that needs it, and an account with no room fails the deploy that needs the room, with 10037. Both land on the component an operator must act on, which is never policy-worker. The existence check stays fatal when it answers neither 200 nor 404 — that one is a safety property: a placeholder must never overwrite a real Worker the check failed to see. This does not make the convergence green. The account is at its 500-Worker limit, so the deploys that need a new script cannot succeed either; that needs Workers deleted on the account, which no change here can do. What it fixes is one unmakeable placeholder taking the whole fleet down with it, and the error landing on the wrong component. Also, two failure modes made legible: - 05-edge and 06-console said "the failing step says why" when the failing step was the URL probe and the convergence was green. They now distinguish the two, and name the usual cause: a `subdomain` that is not the Cloudflare account's workers.dev subdomain. A deploy lane smokes the URL wrangler actually returned, so a wrong `subdomain` passes every lane and first surfaces in a phase's verify, ~35 minutes in. Seen on a build carrying `test-lum`, which is not a claimed subdomain. - BOOTSTRAP.md gains a troubleshooting row for each. testing/fleet-stubs.test.sh drives the new path against a fake API that answers every create as an account at its limit: the step exits 0, names each placeholder it could not create, says a still-missing target will fail its own deploy by error code, and records nothing as created. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BfmHkwWeA1oPJGBNF3QSQH
ruehowl
marked this pull request as ready for review
October 25, 2026 14:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main went red on the merge of #118. This fixes the regression that caused it, and makes two failure modes legible.
What broke
policy-worker's pre-deploy exited 1 on:Every binding holder waits on
policy-workerwithmode: enforced, so ten lanes went red on a step belonging to a component that was itself fine — and most of them never needed that placeholder.The fix
A create that fails is now reported and skipped, not fatal. Each real deploy then speaks for itself:
10143, naming the worker that needs it;10037.Both land on the component an operator must act on, which is never
policy-worker.The existence check stays fatal when it answers neither 200 nor 404. That one is a safety property, not a convenience: a placeholder must never overwrite a real Worker the check failed to see.
This does not make the convergence green
The account is at its 500-Worker limit, so the deploys that need a new script cannot succeed either. That needs Workers deleted on the account — no change in this repo can work around an account limit. What this fixes is one unmakeable placeholder taking the whole fleet down with it, and the error landing on the wrong component.
(cirrus hit this same limit on this account before and cleared it by deleting 344 Workers.)
Two failure modes made legible
A green convergence with a failing URL probe.
05-edgeand06-consolesaid "the failing step says why" when the failing step was the probe and the deploy had worked. A deploy lane smokes the URL wrangler actually returned, so a wrongsubdomainpasses every lane and first surfaces in a phase'sverify, ~35 minutes in. Both lines now distinguish the two cases and name the usual cause. Seen on a build carryingtest-lum, which is not a claimed workers.dev subdomain —multi-tenant-saas-api-edge-stage.test-lum.workers.devis NXDOMAIN, while a host under the account's real subdomain resolves.BOOTSTRAP.md gains a troubleshooting row for each, with the one-line
curlthat tells a wrong subdomain from a failed deploy.Verification
testing/fleet-stubs.test.shdrives the new path against a fake API that answers every create as an account at its limit: the step exits 0, names each placeholder it could not create, says a still-missing target will fail its own deploy by error code, recognises the limit answer, and records nothing as created. The old code exited 1, so this case is a real guard.Full suite green, 11/11, plus
orun new --statusunder v2.88.0.Still open, not fixed here
Validating
subdomainagainst the Cloudflare connection before anything deploys. No bootstrap hook hasCLOUDFLARE_*credentials (only component deploy steps do), and<subdomain>.workers.devdoes not resolve at the apex even for a valid subdomain — so neither a DNS check nor a direct API call is available where the gate belongs. Doing it properly needs either the account subdomain surfaced through the orun CLI/platform, or the input validated at the door that fills it fromconnection.cloudflare.workersSubdomain.Generated by Claude Code