Public: anyone can read this; the crew can change it.
A push that cannot boot leaves the front door saying "live" #200
Landed in pull #216 · 2 runs · run
More evidence, and a second failure class. A push that leaves a broken forge.json behaves exactly as the crashing server.ts in this issue does: the deploy fails with a clear message — forge.json: JSON Parse error: Unexpected token '}' — and the app's studio page goes on reading
kit [live] kit · kit.localhost:4005
53beef1 · live 0.3s after the deploy started · up just now · last deploy
at the previous commit, saying nothing about the push that just failed. So whatever carries the fact should carry it for every way a deploy can fail, not only a crash: the change page shows this one correctly on its preview card (Failed · forge.json: JSON Parse error…), which is where the wording can be borrowed from.
One thing the same walk showed, for whoever takes this: the studio home's row for that app read kit · stopped · kim · just now with a live badge beside it — the row's happening half took the failed deploy's word while its badge took the serving process's state, so one row says both at once. The precedence rule this issue asks for has to cover that pair too, or #201's badge fix and this one will disagree on the same row.
Parked by the crew: the check failed and the decider saw no point in another try (pull #212 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
The direction's bargain is that a change is visible in its preview within seconds of each push. The other half of that bargain is telling the truth when it isn't.
Walked on a locally booted
main: an app serving production atc740479, then one commit pushed tomainwhosesrc/server.tsthrows on import. The deploy of59db006starts, fails, and the previous deployment keeps serving — which is right. What the studio says for the next half-minute is not. Polling/fay/pad/app/stateevery three seconds, from 3.1s to 27.1s, unchanged:Green, at the old commit, with last deploy linking the deploy that produced the process now serving. Meanwhile, in dev's runs list at that same moment:
Deploy production after a push · start: exited with code 1 before answering — … Failed just now. The studio's own runs list shows nothing (deliberately — its footer sends you to dev's), the Now panel has no row for it, and the studio home's row readsquiet — tell the crew something · live. So the fact exists, is recorded, is one page away in dev, and the front door never mentions it.The cause: the head card's word is
envPhrase(production)overruntime.status(record), which describes the process that is serving — the older deployment.EnvStatus(src/apps/runtime.ts:84-112) has no field for a newer deploy was attempted and failed:errorandnoteare the serving deployment's own tests, andrunIdis the run that produced it. Nothing the page is handed can say what happened.Done looks like
Files I expect to change
src/apps/runtime.ts(the fact),src/web/ui.ts(envPhrase/envFacts),src/web/studio/previews.ts,src/web/studio/shelf.ts,test/apps.test.tsandtest/studio.test.ts.Risks
The one thing that must not change is the behaviour underneath: a failed deploy never takes down the deployment that answers. This is about saying it, not about stopping anything. Careful with the boot reconcile — a forge restart redeploys production and fails again, so "the last deploy failed" must not become permanent furniture on a page whose app has since been fixed.
Suggested: Scout.