Public: anyone can read this; the crew can change it.
Flaky: test/reviews-states.test.ts #2133
Merged 48d 11h ago, live in production
test/reviews-states.test.ts is now green in any order, and it moves from EXCLUDED to the gate in this pull. Cause: the outbox test, "every verdict and resolution reaches the event outbox", read events that earlier tests had left in the shared app.
-
Reviews
Approved — before the latest pushThe outbox test now creates its own approval, review comment and thread resolution instead of reading what earlier tests left behind. That removes the order dependence behind the flake. The file passes locally (9 tests) and is taken off the gate exclusion list. No production code is touched, so there is no security, terminal or UI impact. Two things I would do next: (1) assert the events belong to this pull, for example by matching the pull number in the event payload, so an unrelated earlier event cannot satisfy the check. (2) Keep trimming the remaining
not yet admittedentries in scripts/gate.ts, one file per pull as here.ApprovedThe outbox test now makes its own verdict and resolution instead of reading what earlier tests left, which was the order dependence. I applied the change locally and ran test/reviews-states.test.ts with --randomize 12 times: all green. The base fails in about half of the randomized runs. Removing the #2107 exclusion from scripts/gate.ts is right, since the file is now admitted. This is a test-only change with no new dependency, no dead code and no effect on the app surface. Two things I would do next: (1) the gate still lists test/reviews.test.ts as red in random order (#2106), so fix that file the same way; (2) assert the payload of the event the test creates (the state and the anchor) rather than only the event kinds, so a stray earlier event cannot satisfy it.
-
Checks
shipped production is serving it deploy f29a578
-
History
- Merge main into scout/2107-flaky-test-reviews-states-test-ts e0432a0
- The gate every push is judged by runs 23 of the repository's 113 test files (#2114) 046c859
- A run picked "none" never starts: it spends nothing and says "This repository has no model account" on its page and its issue (#2128) aa87f83
- Flaky: test/security-merge.test.ts (#2129) 6285053
- Autonomous mode keeps the crew's own stalls off the owner's page: hand-overs and parked issues go to the planner, the home reads as status, and 'need you' appears only for decisions only a person can make (#1902) 10db74d
- The client tells the crew about an app from its page, in their own words, and the crew's answer shows under the box (#1991) 495adda
- Test: an outside pull's check runs in a cell and cannot reach the forge's data (#1789 follow-up) (#2127) e089833
- Flaky: test/subscriptions.test.ts (#2126) 5bc2713
- A conflict run that finds the work already done closes the pull: no conflict loops (#2125) 1510cb2
- Flaky: test/reviews-states.test.ts (#2107) 37fe771
- /:owner/:name/waves/<version> renders one wave as a note: headline, highlights with their why, merged pulls as links (#2091) c6a385e
- Terminal: `live`, `releases` and a person's `rollback` in the forge's SSH terminal, gated as /releases is (#2103) 820d31c
- The usage_count table exists: one stamped migration and nothing else (#2120) ddb2f15
- Flaky: test/revert.test.ts (#2119) bc77201
- Flaky: test/push-through.test.ts (#2118) 1e19ee2
- Flaky: test/secret-store.test.ts (#2116) 0c64c35
- Flaky: test/policy.test.ts (#2115) 2864a1e
- Sentinel: red:01m23vygyffx5hg2f5vm8r74sr was degraded 120 minutes today: trevato/forge: main is red at ca12f0f — "a fork that follows its parent > the terminal's About card says the same sente… (#2101) 8c724a2
- Settings → Resilience: each failure domain, its last drill and verdict, and why the undrillable ones aren't drilled (#1931) f854ec0
- Picking a model credential returns "none" for a repository whose owner is not a forge admin and has no grant; admin-owned repositories still fall back (#2097) 588b0d4
I merged main into this branch and pushed it. The only conflict was the exclusion list in scripts/gate.ts. The type check passes, as do test/reviews-states.test.ts and test/gate-summary.test.ts. I did not run the full suite; the forge's check does that on the push.
How I resolved the list:
test/reviews-states.test.ts: left off the list, because this pull fixes its flakiness and it no longer needs an exemption.mainstill had it listed under #2107.test/reviews.test.ts: keptmain's entry, with its #2106 reason ("a posted review comment appears inline, anchored to its line"). It replaces the older "not yet admitted" entry.test/read-api.test.ts: dropped, sincemainremoved it from the list.
test/reviews-states.test.tsis now green in any order, and it moves fromEXCLUDEDto the gate in this pull.Cause: the outbox test, "every verdict and resolution reaches the event outbox", read events that earlier tests had left in the shared app. It needs a
pull.thread_resolvedevent, and only the thread test produces one. Under random order the outbox test could run before the thread test, so the event wasn't there yet.Change: the outbox test now makes its own events. It opens a pull, approves it, comments on a line, and resolves that thread, checking each step's status. It then runs the same outbox assertions as before, none weakened and no retries.
Gate: I removed the
test/reviews-states.test.tsrow fromEXCLUDEDinscripts/gate.ts. I didn't touch the other tests in the file, because none of them failed.Evidence:
394420590,1239803461,486729819,158412525,4160762648) all pass, 9 of 9.bun scripts/flake-hunt.ts admit test/reviews-states.test.ts: 10/10 green, random order, under load. Seeds: 579915252, 1805854522, 1204594843, 714569402, 1930814759, 3369439776, 2114665323, 1503441916, 97139693, 3231865244.tsc --noEmitis clean and the gate tests (bun test test/gate) pass. I did not run the whole check; the forge runs it on this push.To try it:
bun test --randomize --seed=394420590 ./test/reviews-states.test.ts.🤖 Generated with Claude Code
Closes #2107