Public: anyone can read this; the crew can change it.
A pull that lands while its check runs keeps the check, and a red it ends with is main's, said on the home's first line #17632
Merged 12h 49m ago, live in production
does not require checks (the owner's setting, kept). The landing cut the check ("pull landed"), so what landed was first tested by the release gate, which held the 17:24 tick on it.
-
Reviews
Changes requested — before the latest pushThe behaviour is sound: a landed pull keeps its check, a red it ends with becomes the home's first wrong line, the terminal dashboard reuses
readFactsso both doors say it, andlandedRedForgates bycanRead. One thing is missing, so this is a change request.- docs/features/first-wrong.md line 7 still lists only behind, stuck and allowance. Add the landed red as the first, most urgent line: who sees it (anyone who can read the repository), what it says, and that it clears when main passes a check after it. The both-doors rule needs this how-to updated, since the page and the dashboard both gained a line.
- test/landed-check-runs-on.test.ts: the closed-pull test imports
setIssueStateandgetIssueByIddynamically inside the test. Put them in the top imports. The restart test also rewrites run rows with raw SQL. IfsweepAbandonedCheckshas a seam to lapse a lease, use that, otherwise this is acceptable but brittle.
Two things to do next: wording on the home line ("See the red" could be "Open the pull"), and have the wrong line name the failing check's summary so a person on a phone need not open the pull to learn what broke.
ApprovedThe clone does not have 4b9708abc1ab, so I read the whole change and judged the latest commit (a landed pull's check cut by a restart is queued again at its head) on its own. I could not tell which of my earlier asks are met; none is visible as open in this diff.
What works: a landing keeps the pull's check and a closing still cancels it. A red that finishes after the landing, at the landed head, with no later passing main check, reaches the home's first line. The line names the pull and links to it, and it is read through
canRead, so a guest never sees a private repository's red. The restart sweep now treats a landed pull's head as live, so a check cut by a restart is queued again instead of cancelled. The tests cover all three cases (keeps and reports, closed still stops, restart requeues), anddocs/features/first-wrong.mdis updated. The terminal home reads the same function, so both doors agree. The page change is one calm line in the existing slot, with an<a>for navigation and nothing added that needs JavaScript.Two things I would do next, both non-blocking:
- Non-blocking: in
test/landed-check-runs-on.test.ts, replace the dynamicimport()ofsetIssueStateandgetIssueByIdwith top-level imports. - Non-blocking: the restart test rewrites run rows directly with SQL. Add a helper to
src/core/runs.tsthat lapses a lease, so the test does not depend on the table layout.
-
Checks
shipped production is serving it deploy 5fa2c54
-
History
- A landed pull's check cut by a forge restart is queued again at that head, so its verdict still reaches main's red line 3b1c5a7
- A pull that lands while its check runs keeps the check, and a red it ends with is main's, said on the home's first line db66820
- Talk: a draft change's Undo stands on its own line, and the words name it Undo, never Restore (#17652) 93367a1
- Merge pull request #17650 from sold/game-proxy bbe14be
- First-time studio owner: a cloud bill, an app's deploy and its undo are hard to find (#17640) 1c6bd9c
- Merge pull request #17644 from sold/services-design fe35fac
- The agent talks to the proxy itself 00825e2
- The revert lane closes its own revert once main is green without it, naming the commits that fixed the red (#17645) 7558fa7
- Show which app a cloud resource is part of, and find by it with app: (#17642) e0d6c73
- The desk sweep takes the write lock first, so another connection's commit is a wait, not "database is locked" (#17639) e052b8d
- Games: hear what players do, say why it failed, heal what is safe, answer commands in seconds (#17612) 0827b83
- Services: one container design, checked against the code (#17625, #17532) 6076d47
- Games: a proxy plugin for /forge and refused joins, standard code first (#17624) d6a1078
- Games: the people list shows no ops after a successful `op` (#17610 item 8) (#17619) fdf4697
- v0.7.713 was released and does not look right (#17631) a0a4ac4
- Infrastructure: run any container image on a machine, from image to a working address (#17630) 7401c73
- Talk: a dev server on its way shows its progress in the pane, and one that stops says why (#17592) d29963e
- Merge pull request #17635 from sold/game-metadata a2f1342
- Containers on a game box have no reach to the cloud's metadata 0d3d9c3
- Merge pull request #17613 from sold/refused-joins b5d7344
#17542 landed at 17:18:26, 35 s after the approval that queued its check, on trevato/forge, which does not require checks (the owner's setting, kept). The landing cut the check ("pull landed"), so what landed was first tested by the release gate, which held the 17:24 tick on it.
Now a landing cancels the pull's queued previews but not its check (cancelRunsForPull keepChecks): the check runs on at the pull's head and answers. A red it ends with after the landing is a red of what landed: checks/landed_red.ts reads it from the runs (a failed, uncut check of a merged pull's head, finished after the merge, with no passing main check since) and the home's first-wrong line says it first, on the web and the terminal: "alice/lib #12 landed and its check then failed: main carries the red until it is fixed. See the red", linked to the pull, to someone who reads the repository. Main passing a check after it clears it. A closed pull's check still stops, and a repository that requires checks keeps its refusal.
Tests: test/landed-check-runs-on.test.ts lands a pull while its check runs on a repository that does not require checks: the check is not cut, fails, the first-wrong line names the pull on the home, and a passing main check clears it; a closed pull's check is still cancelled. checks-queue's lane test now keeps a landed pull's queued check until it answers; the first-wrong priority puts the landed red first.
Direction: a pull never lands with its tests cancelled (#17547) No door: the web home and the terminal home both read the first-wrong facts; no new door Looks: / Try: on a repository that does not require checks, land a pull while its check runs, with a test that fails: the check finishes red, and the home's first line names the pull until main passes a check Replaces: the landing's cut of the pull's check ("pull landed")
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code