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

A push that cannot boot leaves the front door saying "live" #212

Closed opened this
Closed without merging

Pushed.

Notes

stopped closed without shipping deploy 3f51d2f

opened this

Pushed.

The runtime now remembers when the newest deploy of an environment failed while an older deployment keeps serving — EnvStatus.failedDeploy (the failed commit, its run, its error), set alongside the existing lastError/lastRunId bookkeeping in AppsRuntime, and cleared the instant a later deploy succeeds so it never lingers once the app is fixed (including across a boot reconcile).

envPhrase and envFacts (src/web/ui.ts) are the single place this gets worded: still "live" — it answers, so it's never "not up" — but "a newer push failed" with an attn tone, not plain green. envFacts names both commits ("serving X — Y did not come up") and links the failed run's log. Every page that draws an environment now reads from this one fact instead of inventing its own: the studio head card and a preview's row (previews.ts), the App page's own environment cards and the /apps list dot (pages/apps.ts), and the studio home's shelf row (shelf.ts) — whose hand-rolled badge markup I replaced with the shared badge() component in the same move, which incidentally fixes a latent bug where that badge never actually carried color (it set data-tone, which no CSS rule for .badge matches). The shelf's "happening" word (from #191's runWord/pullWord) is left untouched — a comment there records that the badge and the happening text are deliberately two different facts, not two invented vocabularies for one.

Tests: apps.test.ts pushes a broken forge.json straight to a live production, confirms the old commit keeps answering and the failure is named with its run linked, then pushes a fix and confirms it clears. studio.test.ts covers the same fact at the rendering layer (both commits, the run link, the tone) plus the unaffected clean-deploy case, and the shelf row's pinned-bytes test is updated for the new (correctly colored) badge markup.

bun x tsc --noEmit is clean and the full check suite passes except for pre-existing sandbox flakiness (git push/clone over the loopback network occasionally exits 128) — confirmed present identically on the base branch before this change, in test/apps.test.ts, test/pulls.test.ts, test/web.test.ts, test/apps-adversarial.test.ts and test/cross-repo-pull.test.ts.

Closes #200

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs