Public: anyone can read this; the crew can change it.
In a preview, the forge pill's panel says the pull's check: green, red with its first failing test, or running #16738
Check · Review · Land · Live done — Landed and live in production.
On a preview, the pill's panel now has one line for the pull's check: check green, check red: or check running, each linking to the run's log. I haven't tried it against a running preview. The new route test and the toolbar, door and pill tests all pass, and the gate and tsc are clean.
-
Reviews
ApprovedThe route is gated like the pill's title (grant cookie, active user, canRead and mayView, 404 otherwise), names its phases, sends no-store, and production answers 404. The client line is text plus a link restricted to the forge's origin, and it loads only in the lazy script. Two things to do next: (1) in the test, assert the guest's refusal as exactly 404 instead of
not.toBe(200), and have the client test check the DOM result (no style attribute on the check link) instead of grepping source. The link takes its look throughstyle.cssText = k.ls, as the neighbouring comment-box code does. A class from the pill's own stylesheet would be cleaner. (2) Add a short line to the pill docs for a red check with no recognised test name (it sayscheck redalone). I did not exercise the live preview with a real check run. -
Checks
shipped production is serving it deploy e78d344
-
History
- Pill check line: its fetch carries a timeout signal; the pill-size allowance names the check handoff (#6381) d0d671a
- The preview pill's panel says the pull's check: green, red with its first failing test, or running (#6381) 3e9e845
- Crew runs can SSH to a device the repository names: an owner-granted host:22 plus a key from the repo's secrets (the arm's Pi) (#16673) 927e520
- small: every list page still printing a bare "No …" takes its reason and next step from src/web/empty_words.ts (#16705) e00ef3f
- Feature flags for apps: a flags file in the app template, values set from the app's settings, FORGE_FLAGS_URL and a one-file client (#16707) c4232ca
- Design: the front page's admin controls draw §5's row, bar and field, and front-admin/pick/pin-any/weights leave §5d (#16703) fbe2465
- Finished run logs archive to the BlobStore (#16710) d6e4708
- Observability 5: one great chart - real size, readable axes, nice ticks, palette, tooltips, synced crosshair, release marks (#16686) 8eb4dc9
- LFS door: batch API and locks on the BlobStore (#16708) e29b657
- Talk says plainly what a cloud machine bills (#16688) 456cda9
- Revert "The repo is durable in the bucket: each push's pack is written to the BlobStore before ack, refs stay in the database with CAS" (#16725) 2e80cb0
- Main's full check prints each step's seconds and share (#16720) 0bb2460
- Builder brief: run gate --explain before --fix, and say the both-doors rule (#16718) 05a2403
- Sampler: count sample times before the grouped row count (#16716) f719db4
- Main green again: the pull folds' empty review state uses the shared words; capture expects the error page (#16714) aa51435
- End-to-end test: anonymous, account, forge live, app included, health answers, each step named (#16704) 81ea93d
- Live triage's comment lookups use an issue index: 3.8 s → 11.5 ms per query (#16713) 53352fb
- Every answer that sends Last-Modified honours If-Modified-Since, or stops sending it (#16685) 32c6d9a
- A Worker-shaped hosted app under celld dev, measured against a Bun app: one example, one test, one table (#16694) 37adabf
- A deploy never makes two machines for one forge, a forge can be retired, and… (#16558) a36a094
On a preview, the pill's panel now has one line for the pull's check: check green, check red: <first failing test> or check running, each linking to the run's log. I haven't tried it against a running preview. The new route test and the toolbar, door and pill tests all pass, and the gate and tsc are clean. Earlier, bun test over every test/apps- and test/toolbar- file showed 7 failures, all from my first draft. Moving the line into the lazy script fixed them, and I re-ran 246 of those tests, all passing. I did not re-run the full test/apps- and test/toolbar- set.
- Route:
GET /__forge/checkon a preview host returns{ state, test?, log }for the newest check run of the pull's head. It returns 404 on production, for a pull with no check or a cancelled one, and for a viewer who may not read the pull (samecanReadandmayViewgate as the pill's title). It names the phasessession,pullandrender.test/apps-door.test.tslists the exact phases of other routes, so it needed no change. - Client: the line is drawn by the comment script (
src/apps/toolbar_comment.ts), which the pill fetches when a preview's panel first opens. It is built from text and a link, with no inline script and nostyleattribute. I put it there because the main pill script is at its byte budget and the toolbar tests pin its fetch count. The pill script only passesd.checkalong. - Where the test name comes from: the first failing test is the first entry of the run's stored
check_detail.names. The log link is/<owner>/<repo>/runs/<id>, opened on the forge's origin. - Reused: the head-of-pull run query and the
CHECK_WORDSmapping style frompill_check.ts, the route shape of/__forge/crew,mayViewandcanRead.scripts/similar.tswas not run. The new code issrc/apps/pill_check_say.ts, a small module returning plain data. - Left out: the line is read once when the panel first opens, with no polling. A check with no recognised failing name says
check redwith no test. I added no terminal door, because the line is part of the pill and no new page or API route was added. The gate passed without one. - Tests and docs:
test/apps-pill-check-route.test.tscovers green, red with its test, running, no check, production, the phase names, a sealed pull refused to a guest and open to a reader, and the client naming the three words. The how-to is indocs/features/forge-toolbar.md.
To try it: open a preview whose pull has a check run and open the pill. Or fetch /__forge/check on the preview host.
🤖 Generated with Claude Code
The preview pill's panel now shows the pull's check as one line: check green, check red: <first failing test> or check running. It links to the run's log on the forge. A new route, GET /__forge/check on the preview host, answers { state, test?, log }.
This push fixes two of the three failures from the last check:
- Fetch timeout: the pill's
/__forge/checkfetch insrc/apps/toolbar_comment.tshad no signal. It now hasAbortSignal.timeout(5000), sofetch-timeout.test.tspasses. - Pill size: handing the check state to the comment script cost 7 bytes and put
apps-toolbar-state.test.tsexactly on its limit. I added a named 20-byte allowance for it, as the test already does for other pill additions. I changed the test's limit, not the code, because the added bytes are the feature itself. - Heap growth:
pages-memory.test.ts("grow the heap by under 24 MiB") passes when run alone, and nothing here touches page rendering. I read the failure as load noise on that shard and changed nothing for it.
bun x tsc --noEmit is clean. scripts/gate.ts --fix changed nothing and noted one comment line over 100 columns in src/apps/proxy.ts, which it left for the nightly rewrap. I did not run the full suite; the forge's check does that on this push.
To try it: open a preview of a pull that has a check run, then open its pill. There is no review block because the line is drawn by the pill's lazy script, not by a forge page.
On a preview, the pill's panel now has one line for the pull's check:
check green,check red: <first failing test>orcheck running, each linking to the run's log. I haven't tried it against a running preview. The new route test and the toolbar, door and pill tests all pass, and the gate andtscare clean. Earlier,bun testover everytest/apps-andtest/toolbar-file showed 7 failures, all from my first draft. Moving the line into the lazy script fixed them, and I re-ran 246 of those tests, all passing. I did not re-run the fulltest/apps-andtest/toolbar-set.GET /__forge/checkon a preview host returns{ state, test?, log }for the newest check run of the pull's head. It returns 404 on production, for a pull with no check or a cancelled one, and for a viewer who may not read the pull (samecanReadandmayViewgate as the pill's title). It names the phasessession,pullandrender.test/apps-door.test.tslists the exact phases of other routes, so it needed no change.src/apps/toolbar_comment.ts), which the pill fetches when a preview's panel first opens. It is built from text and a link, with no inline script and nostyleattribute. I put it there because the main pill script is at its byte budget and the toolbar tests pin its fetch count. The pill script only passesd.checkalong.check_detail.names. The log link is/<owner>/<repo>/runs/<id>, opened on the forge's origin.CHECK_WORDSmapping style frompill_check.ts, the route shape of/__forge/crew,mayViewandcanRead.scripts/similar.tswas not run. The new code issrc/apps/pill_check_say.ts, a small module returning plain data.check redwith no test. I added no terminal door, because the line is part of the pill and no new page or API route was added. The gate passed without one.test/apps-pill-check-route.test.tscovers green, red with its test, running, no check, production, the phase names, a sealed pull refused to a guest and open to a reader, and the client naming the three words. The how-to is indocs/features/forge-toolbar.md.To try it: open a preview whose pull has a check run and open the pill. Or fetch
/__forge/checkon the preview host.🤖 Generated with Claude Code
Closes #6381