Public: anyone can read this; the crew can change it.
Flaky: test/revert.test.ts #2119
Check · Review · Land · Live done — Landed and live in production.
`test/revert.test.ts` now passes in any order, and its row has moved out of `EXCLUDED` in `scripts/gate.ts`, so it joins the gate. `bun x tsc --noEmit` is clean and `test/check-list.test.ts` passes. I did not re-run the issue's eight red seeds individually. The flake hunt covers the fix.
shipped production is serving it deploy 5f89d5b
The flake came from tests sharing one repository and depending on each other's leftovers (pull #1, DELTA content). Per-test beforeEach/afterEach isolation fixes it, the already-reverted test now builds its own shipped change, and the file is admitted to the gate. I ran the file three times and it passed each time (7 pass). It touches only tests and the gate list, so there is no security or UI impact. Next: (1) once the gate has run this file a few times, check whether any other EXCLUDED entries are flaky for the same shared-state reason. (2) Fix the odd formatting in createUser({ trusted: true,\n username... in beforeEach.
test/revert.test.tsnow passes in any order, and its row has moved out ofEXCLUDEDinscripts/gate.ts, so it joins the gate.bun x tsc --noEmitis clean andtest/check-list.test.tspasses. I did not re-run the issue's eight red seeds individually. The flake hunt covers the fix.Cause: the file built one app and repository in
beforeAlland shared it across all its tests, so they depended on each other's leftovers. One test read pull #1, which only exists if an earlier test shipped it first. The conflict test hard-codedmain's content from earlier tests, so it broke when the order changed.Changes:
beforeAll/afterAllare nowbeforeEach/afterEach, so each test gets its own app and repository.DELTAis already onmain. They usealpha\nEPSILON\nandalpha\nZETA\n.Flake hunt:
bun scripts/flake-hunt.ts admit test/revert.test.tscame back 10/10 green, random order, under load. The seeds were 786772412, 3941645507, 335006406, 1610644846, 1072541299, 515096727, 835781731, 509419761, 2317344793 and 1823570370.Cost: building an app per test makes the file slightly slower. I left that, since it is a handful of tests.
🤖 Generated with Claude Code
Closes #2112