Public: anyone can read this; the crew can change it.
A full-suite red that passes on main's tip alone is not handed to a builder: the report reruns its red files before an issue becomes startable #14408
Merged 13d 10h ago, live in production
Before a red full-suite verification is filed, each of its red files is now rerun on its own, on the same commit, once. If a file passes when run alone, the issue gets a label and the crew does not start it until a second full-suite run is red for the same file.
-
Reviews
ApprovedApproved. A red verification now reruns each red file alone on the same commit. Files that pass alone are filed apart under
red-only-in-full-suiteand held byfull_suite_flakeincrew/held.ts. A second red lifts the hold, andreportGreenstill closes the issue. Each branch has a test that checks the result throughheldBy. I read the diff only and did not exercise the preview. This change has no page or terminal surface, so the both-doors rule does not apply.Two things I would do next:
- Lift the hold only when the second red comes from a different run id than the one that filed the issue. Today
reportRedfor the same run reported twice would lift it. Add a test. - Run the alone reruns in parallel, or give them a time budget. Up to 10 serial single-file runs now follow every red verification, which costs lane minutes the direction wants to cut (#6428).
- Lift the hold only when the second red comes from a different run id than the one that filed the issue. Today
-
Checks
shipped production is serving it deploy de6ec9b
-
History
- rerunAlone test builds a real Runner, not an `as never` cast 90b9f56
- A full-suite red that passes alone on main's tip is held, not handed to a builder (#14404) 3206a4e
- docs/MCP.md names every tool the MCP lists: /.well-known/mcp counts 202 tools, a test compares the doc to tools/list (#14397) e1c2d0f
- A connected forge shows Gitea's cup on imported repository pages, search results and the terminal (#14341) 49f5862
- A missing docs page reads as a page: /docs/<unknown> and /docs/features/<unknown> answer the HTML not-found page to a browser (#14378) 213d2d1
- Faster pull request checks without weaker ones: measured selection, result cache, measured shards (#14335) 134372d
- Automate a review finding as a lint or test: Direction: this is feature work while the pipeline-first list is open. It was as (#14361) 1ba84f6
- Every fetch to a caller-given host passes one private-address guard, proven by a sweep of the source (#14303) 7cc83cf
- docs/README.md: generate its list of pages from the pages' front matter (child of #14248) (#14382) 8d58706
- A trailing slash finds the page: /explore/, /apps/, /docs/, /pricing/ answer 308 to the path without it (#14286) e830f24
- A path with a doubled slash is one page, not two: //explore answers 308 to /explore, not a second 200 copy (#14380) 47316a5
- Automate a review finding as a lint or test: Both doors: nothing in src/tui/ for the archive or for sending a patch. Add a sc (#14371) 2ad968b
- A memory-growth finding carries its own evidence: each VM's heap, the outside-heap figure and the held-by-name counts, at the first hour, at the trip and now (#14376) bd36f5e
- A public page waits past 1 s in the edge (#14372) 4047a50
- Automate a review finding as a lint or test: **Direction.** This is a feature while the pipeline list is first; the issue ask (#14370) 9a43ecf
- Automate a review finding as a lint or test: Both doors: a grant and the provider are page, API and MCP, but there is no term (#14340) 256479e
- Full suite red: test/attention.test.ts (#14357) 495e7ee
- Tests wait for a signal, not a clock: a ratchet on fixed sleeps in test/ (#14358) 1a94285
- The nightly release was held: tests failed on ec25086ac (#14360) 93432ac
- The nightly release was held: tests failed on 4adf61268 (#14359) 876d621
Before a red full-suite verification is filed, each of its red files is now rerun on its own, on the same commit, once. If a file passes when run alone, the issue gets a label and the crew does not start it until a second full-suite run is red for the same file.
src/checks/execute.ts: newrerunAloneruns one job per red file (at most 10) through the existing runner, limited to that one file and using the run's ownforge.jsoncommands. It does not use--rerun-each. If the runner can't give an answer (infrastructure failure, killed, CPU stop), the file is left out and filed as today.src/checks/report.ts:reportRedtakes those results.- A file that fails alone is filed as today, with the line `
Red alone too:filefailed when rerun alone on main's commit abc1234.` - Files that pass alone go in a separate issue. It also carries the label
red-only-in-full-suite, and its line reads `Red only in the full suite:filepassed when rerun alone on main's commit abc1234 (a flake under load), so it is held until a second full-suite run is red for it.The shard andN at a time` details are quoted as before. - When a later run is red for a held file, the "Still red" comment says the hold is lifted and the label comes off.
reportGreenis unchanged and still closes the issue when a later run passes.
- A file that fails alone is filed as today, with the line `
src/crew/held.ts: new holdfull_suite_flake, applied to ready issues that carry the label. It reads the labels for the whole ready list in one query.src/checks/flake.ts:fileIssueOncecan now set more than one label. The labels are on the issue beforeissue.openedfires, so the crew can't pick the issue up in between.src/checks/alone_label.ts: holds the label name, socrew/held.tsdoesn't have to import the report module.
Tests in test/full-suite-report.test.ts cover each case, checked against heldBy:
- fails alone → startable;
- passes alone → held, and a second red makes it startable;
- a held issue closes as green again;
- a run with one of each splits into two issues;
rerunAlone, against a fake runner, sends one job per file on the run's commit and leaves out a file it got no answer for.
Each red file now costs one extra single-file run after a red verification. The issue's file list didn't include crew/held.ts, but the hold had to go somewhere the crew reads.
These pass locally: bun scripts/gate.ts --fix, bun x tsc --noEmit, and 25 test files covering the report, flakes, crew holds and execute (231 tests). scripts/fast.ts picked 2563 files, which is too many to run here, so I chose those by hand. test/keeper-measures.test.ts ("the keeper's answer and its page carry both") fails on main too, with this change stashed; it is unrelated. The keep_plan tool wasn't available in this session, so the issue has no plan posted.
🤖 Generated with Claude Code
A full-suite red on main whose failing files pass when re-run alone on main's tip is now held as a flake instead of being given to a builder. execute.ts re-runs each red file alone on the run's commit (rerunAlone). report.ts then labels each file's report from that answer: a file that passed alone is held, and a file that failed alone stays startable.
This push fixes the gate failure in test/full-suite-report.test.ts:289. The test passed { runner } as never to rerunAlone; it now builds a real Runner, so the type checker checks what the test passes in.
The gate, bun x tsc --noEmit and bun test test/full-suite-report.test.ts (35 pass, 0 fail) are green. scripts/fast.ts picked 2563 test files for this diff, far over its 5-minute budget, so only that covering test file was run here and the rest is left to the forge's check.
The gate notes long comment lines in src/checks/flake.ts and src/checks/report.ts, says there is nothing to do, and leaves them to the nightly rewrap on main.
🤖 Generated with Claude Code
Before a red full-suite verification is filed, each of its red files is now rerun on its own, on the same commit, once. If a file passes when run alone, the issue gets a label and the crew does not start it until a second full-suite run is red for the same file.
src/checks/execute.ts: newrerunAloneruns one job per red file (at most 10) through the existing runner, limited to that one file and using the run's ownforge.jsoncommands. It does not use--rerun-each. If the runner can't give an answer (infrastructure failure, killed, CPU stop), the file is left out and filed as today.src/checks/report.ts:reportRedtakes those results.Red alone too:filefailed when rerun alone on main's commit abc1234.`red-only-in-full-suite, and its line reads `Red only in the full suite:filepassed when rerun alone on main's commit abc1234 (a flake under load), so it is held until a second full-suite run is red for it.The shard andN at a time` details are quoted as before.reportGreenis unchanged and still closes the issue when a later run passes.src/crew/held.ts: new holdfull_suite_flake, applied to ready issues that carry the label. It reads the labels for the whole ready list in one query.src/checks/flake.ts:fileIssueOncecan now set more than one label. The labels are on the issue beforeissue.openedfires, so the crew can't pick the issue up in between.src/checks/alone_label.ts: holds the label name, socrew/held.tsdoesn't have to import the report module.Tests in
test/full-suite-report.test.tscover each case, checked againstheldBy:rerunAlone, against a fake runner, sends one job per file on the run's commit and leaves out a file it got no answer for.Each red file now costs one extra single-file run after a red verification. The issue's file list didn't include
crew/held.ts, but the hold had to go somewhere the crew reads.These pass locally:
bun scripts/gate.ts --fix,bun x tsc --noEmit, and 25 test files covering the report, flakes, crew holds and execute (231 tests).scripts/fast.tspicked 2563 files, which is too many to run here, so I chose those by hand.test/keeper-measures.test.ts("the keeper's answer and its page carry both") fails on main too, with this change stashed; it is unrelated. Thekeep_plantool wasn't available in this session, so the issue has no plan posted.🤖 Generated with Claude Code
Closes #14404