Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions to-dos/client-deploy-caught/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: "A broken client deploy is caught before it merges, and seen within minutes when it is not"
number: 480
group: ready
status: written 2026-12-02 (UTC), the night every client deploy failed for two hours and nobody saw it · read in the workflows on main the same night · the one mend of that night is merged · step 1, the measurement, made the same night · nothing else is built
status: written 2026-12-02 (UTC), the night every client deploy failed for two hours and nobody saw it · the one mend of that night is merged · step 1, the measurement, made the same night · the owner answered all four calls the same night, each by the card's pick · steps 2 to 5 are written and none is merged: steps 2 and 4 are in the merge queue, steps 3 and 5 are on pushed branches and wait on step 2 · step 3 is proven on a runner, green and red
summary: >
On 2026-12-02 a merged change put the words of a source file's name in a comment in the page's
shell. The deploy's own check refuses a built page that holds those words. Every client deploy
Expand All @@ -11,9 +11,9 @@ summary: >
after the merge, because only the deploy builds the client. This card moves that check to where
a PR fails on it, makes a failed deploy on main reach a person or a session, and gives a way to
read which commit is live. Step 1 measures what a build would add to the merge queue.
next: Step 2, the deploy's checks as one script. Step 3 waits on call 1, which now has step 1's numbers under it.
next: Step 2's pull request (#10695) merges and its first deploy is read. Steps 3 and 5 then open from their pushed branches, rebased onto it. Step 4 (#10700) stands alone. Step 6 is last.
size: M as a train of six (XS · S · S · S · S · XS); left: steps 2 to 6
blocker: Step 1 is made. Step 2 has none. Step 3 waits on call 1. Step 4 waits on calls 2 and 3. Step 5 waits on call 4.
blocker: None. Every call is answered. Steps 3 and 5 wait on step 2's merge, since both build on its script.
opinion: build — twenty-nine merges went unseen on the live site for two hours, and the same hole is open for any change to the page's shell
mockup: not required — workflows and scripts. No screen changes.
---
Expand Down Expand Up @@ -85,7 +85,7 @@ Times are UTC and were read on GitHub that night.

## The four calls as they were asked, all answered

| # | Question | Your pick | The other way |
| # | Question | The answer | The other way, not taken |
| --- | --- | --- | --- |
| 1 | Where does the build run before a merge? | **On the merge queue's build alone,** if step 1 says it adds little. Every merge is then covered, and a PR's own run stays fast. | On a PR that touches `index.html`, `vite.config.ts` or `public/` alone. Cheaper, and it misses a break from any other file. |
| 2 | Who is told when a deploy on `main` fails? | **One GitHub issue,** opened by the failed run and closed by the next green one. A session reads it with `gh`, and a person gets GitHub's own mail. | A push to the devs' phones from the app. Faster to a person, and it needs a function and a secret in the workflow. |
Expand Down Expand Up @@ -167,5 +167,17 @@ Written on 2026-12-02 (UTC). The comment is reworded and one test holds it.

- **Step 1, the measurement: made** on 2026-12-02 (UTC), from GitHub's record of finished runs.
It is under *Step 1's measurement*. Nothing was built.
- **Steps 2 to 6: not started.** Step 2 needs no call. The four calls went to the owner's sheet
on 2026-12-02 (UTC).
- **The four calls: answered** on 2026-12-02 (UTC), each by the card's pick. They are under *The owner's answers*.
- **Step 2, the deploy's checks as one script: written, in pull request #10695,** in the merge queue since 20:55 UTC, not merged. `scripts/check-built-page.mjs` over `scripts/lib/builtPage.mjs`, a test for each refusal, and `deploy.yml`'s step runs it. Read green on a real built page and red with the source file's name in a comment.
- **Step 3, the build on the merge queue's build: written, on the pushed branch `claude/480-step3-queue-builds`,** with no pull request yet. It opens after step 2 merges, rebased onto `main`. A fourth job in `ci.yml` runs `vite build` and step 2's script in the merge queue alone. It is proven on a runner by a throwaway pull request (#10697, closed and never merged) that ran the job on a pull request. A clean page read green in 2 min 47 s for the whole job (run 46961835437). A page with the source file's name in a comment read red at the check, after a build that passed (run 46968509673).
- **Step 4, one issue from a failed deploy: written, in pull request #10700,** in the merge queue since 20:55 UTC, not merged. It is a workflow of its own, `deploy-issue.yml`, started when a deploy run finishes, so `deploy.yml` is not touched and the deploy never waits on it. Its proof on a runner comes after the merge, since GitHub starts such a workflow from `main`'s copy alone.
- **Step 5, the live commit: written, on the pushed branch `claude/480-step5-live-commit`,** with no pull request yet. It opens after step 2 merges, rebased onto `main`. The deploy writes `build.json` beside the page, and `npm run check:live` reads it and says how many merges are not live.
- **Step 6, the rule in `AGENTS.md`: not started.** It names step 5's check, so it is last.

## Left to do

1. Step 2 merges. The first deploy of `main` after it is read: its **Verify build output** step must print the page and the verified line.
2. Step 3 opens, with its proof's two runs named, merges, and the first queue build after it is read with the new job in it.
3. Step 4 merges. The first run of **Deploy issue** is read. Then the card's own proof, by hand: a failing run opens the issue, and the next green deploy closes it.
4. Step 5 opens and merges. `npm run check:live` must name its merge's commit on the live site within the deploy's budget.
5. Step 6, and this card's lines brought to what is on `main`.
Loading