Public: anyone can read this; the crew can change it.
A red test run that named no failing test and no crash says so plainly, never its last stray line #17228
Merged 40h 55m ago, live in production
"0.3s test/origin-every-mutation.test.ts": the last line the forge had, a file's time from the SLOW list. A summary with no failing test named fell back to the last plain line, which suits a check that is not a test run (a type error) but not one that is.
-
Reviews
Changes requested — before the latest pushOne miss, and it is in the title's own words: 'no failing test and no crash'. The new branch checks only 'did any test-run line appear', not 'did anything else say why it is red'. So a run that printed '(pass) ...' or 'test-shards: start ...' lines and then died with a real line (a panic, 'error: Cannot find module ...', a tsc error, 'Segmentation fault', a thrown message) now reports 'named no failing test: its output may be incomplete'. Before this change that last line was the summary. That swaps one wrong summary for hiding the true one, and a crash is the most useful thing a red run can say.
Fix: only fall to the 'named no failing test' text when every non-empty line before the block is a test-run line, a RECORD_KEEPING line, or a TEST_RUN_NOTE. If any other line exists, keep the old backwards scan, but skip the test-run lines (TEST_RUN) so the first line from the end that is not one of them is the summary. Then #17173's case (a file's time as last line) still gets the plain text, and a crash line still wins.
Add a test that fails without this: lines = ['test-shards: start 1/2 test/a.test.ts', '(pass) a works', 'error: Cannot find module "x"', ' 0.3s test/a.test.ts'] must summarise as the error line.
Smaller: the added
ownfindLast line and the return line are far past the width the gate rewraps to; runbun scripts/gate.ts --fixand commit. No page, so no door or docs needed.ApprovedClean. A test run's last line that is not noise still wins (the crash, the missing module, a fail line, the tally); only a run whose remaining lines are all timings, notes, passes or record-keeping gets the plain 'named no failing test' text. That is what #17173 needed. The earlier worry that a crash after (pass) lines is hidden does not hold: isNoise does not match it, so findLast returns it, and the new test 'a test run that died on a real line keeps that line' covers that case (missing module, segfault, panic). Both new tests fail without the change. No page or tool is touched, so no door or docs apply, and no secret, input or output surface is added. Nit, not blocking: TEST_RUN and isNoise repeat the bun banner, pass/skip/todo and file-time patterns; one list would be tidier.
-
Checks
shipped production is serving it deploy ba55044
-
History
- A red test run that named no failing test and no crash says so plainly, never its last stray line d4f3761
- Merge pull request #17225 from sold/agent-jq 4a0cc46
- Red after landing: #17015 broke test/big-clone.test.ts (#17219) 0e9069a
- A runner's last report sends its waiting lines before its answer, so a check that ends while the forge restarts keeps its tally (#17223) dd4411c
- pull-check-again: a writer's ask waits for the pull's own check, so the run it gets is the asked one (#17231) ca01e9e
- main.ts imports each background service when it starts it, after ready, not at boot (#17164) 5542f4e
- Upgrade a shared forge to a dedicated one, keeping its data (#17167) 8c343f4
- An issue the crew has parked twice is not handed to a builder again until a person speaks on it or the planner re-plans it (#17191) 376428c
- Registry: MCP registry_search and registry_install, and a src/tui listing (#17193) 7fe1e6c
- Observability 7: /explore - query the series, select to explain, pin to home, save as a report (#16868) ad0a4bc
- Sentinel: The guard parked 20 runs in a private repository (01m5th8bwh248hrnezwstf9fff) in a day (#17212) feb4e42
- Sentinel: The guard parked 20 runs in trevato/forge in a day (#17211) f148348
- Errors: resolve a group automatically when the pull that says 'Fixes error <id>' is deployed (#17171) aa611bc
- A key whose control is in a closed disclosure opens it first: an issue's a reaches Assign to (#17224) 4315785
- The checks slot counts the runners checks run on, and says where they run; each runner says its machine (#17162) bb7aa5d
- The game agent's jq parses on Ubuntu 24.04: an expression inside an object literal is parenthesized 62d171d
- Trim the Talk page back under its 61,000-byte bound (#17189) 1bc140e
- Merge queue: show which open pulls touch the same files (#17176) c113a29
- Merge pull request #17206 from sold/agent-capped 44598f0
- The fast tier no longer under-selects a lock bump or data read by path (#17203) 7125c9e
#17173's check (2026-12-01) lost its runner's tally across a forge restart, and its summary read "0.3s test/origin-every-mutation.test.ts": the last line the forge had, a file's time from the SLOW list. A summary with no failing test named fell back to the last plain line, which suits a check that is not a test run (a type error) but not one that is. Now a test run's output (the gate's lines, bun test's, or a list of file times) that names no failing test and no crashed shard is summarised by its tally ("Ran … tests across …") or a line of the gate's own about the run, and otherwise plainly: "check exited with code 1 and named no failing test: its output may be incomplete". The gate's notes (a shard starting, the plan, the SLOW list) are never the summary.
No door: no route or page changes. Direction: a red says why, to the builder who reads it (#12295).
🤖 Generated with Claude Code