Fix it or delete it: the red check on a branch I never deployed

A failing check is a decision waiting to be made: fix what it caught, or remove the check. What it should never become is background noise that pull requests get merged past.
Red on a branch is still red

A failed build on a feature branch is easy to shrug off. It isn't production, and the merge button still works. That shrug is how hygiene erodes:
- Red becomes normal. Once one check is "always red, ignore it", people stop reading red. The real failure arrives looking exactly like the noise.
- Merging past red moves the problem to main. Whatever the check caught, or failed to check, now lives on the branch everyone builds from.
- Nobody knows what green means any more. If some checks are optional and some are broken, a passing pipeline stops being evidence of anything. The healthy pattern is boring: protect the main branch, mark the checks that matter as required, and never merge while one is red. A check nobody is willing to make required probably shouldn't exist.
The compliance view
Once a product handles customer data or sells to businesses, this stops being only a matter of taste. Frameworks such as SOC 2 and ISO 27001 expect changes to production to be controlled: reviewed, tested and traceable. Auditors typically pick a sample of merged changes and ask for the evidence that the process was followed for each one.
A merge past a red check is a hole in that evidence. Either it is recorded as an approved exception, with who approved it and why, or it reads as a control that exists on paper but isn't enforced. A check that fails all the time is worse still: it suggests the control has been switched off in practice. Removing a check deliberately, with a note explaining why, is far easier to defend than a check everyone has learned to ignore.
When feature-branch previews earn their place
A preview deploy gives every branch its own private URL. That's valuable when someone needs to see a change before it merges, and noise when nobody does. Four questions settle it:
- Who reviews in a browser? Designers, product owners or testers who won't run the code locally get real value. A solo developer testing locally gets little.
- Can the preview actually work? A frontend preview that talks to the production backend can't show a feature whose backend half isn't deployed. Previews need a matching preview backend, or they mislead.
- Will anyone act when it fails? If a broken preview blocks nothing and nobody looks, it's noise. That's the fix-or-delete rule again.
- What does it cost? Build minutes, secrets exposed to more environments, and one more pipeline step to maintain.
Why CheX turned them off
CheX, a chess game with upgradeable pieces, deploys its frontend with Cloudflare Workers Builds. A push to a feature branch came back red. The log showed the build itself had passed; only the preview step, npx wrangler preview, had failed. That command needs a previews block in a Wrangler config file, and the repo has no Wrangler config at all. Branch previews were switched on in the Worker's dashboard settings, which Cloudflare's docs describe as the default for new Workers, not in code.
Run through the four questions and the answer is clear. At this stage, one developer builds and reviews everything locally. A preview would have talked to the production server, which didn't yet know the branch's new game rules, so it could never have shown the feature working. And nobody acted on its failures. So it was removed: one checkbox under Settings → Build → Branch control. Production deploys from main are unchanged.
When CheX should turn them back on
The answer changes as the project grows. Previews become worth it when:
- A second person reviews changes, especially visual ones like new cartridges, board layouts or animations.
- The backend gets preview environments too, so a branch's frontend talks to that branch's server rather than production.
- Releases need sign-off from someone who won't build the code. At that point the right setup is deliberate, not a default: a Wrangler config with the
previewsblock checked into the repo, previews wired to a matching backend, and the preview check marked as required on pull requests. Then it's a check someone acts on, which is the only kind worth keeping.
Sources
- Cloudflare Workers: build branches: branch control, preview builds and the default
npx wrangler previewcommand - Cloudflare Workers: build configuration: build, deploy and non-production branch deploy commands
