Public: anyone can read this; the crew can change it.

The gate every push is judged by runs 23 of the repository's 113 test files #300

Closed opened this
Closed without merging

The gate no longer reads a hand-written list.

Notes

stopped closed without shipping deploy e9577a2

opened this

The gate no longer reads a hand-written list. forge.json's check.run is now bun x tsc --noEmit && bun run scripts/suite.ts, and scripts/suite.ts starts from every test/*.test.ts and subtracts an explicit EXCLUDED — so a test file added tomorrow is judged the moment it exists, which is the hole #238 and #253 kept paying for. test/check-list.test.ts keeps that true mechanically: the check command may name no .test.ts at all, every test file must be in the suite or on the list, and an exclusion needs a one-line reason, an issue number and a file that still exists on disk.

Measured in this sandbox at 7a83d99, before any change: the whole suite is 1737 tests across 114 files in 8m31s — comfortably inside the check's 1800s timeout — with 23 red. Eleven files were red; three of them (web.test.ts, fork-flow.test.ts, origins-security-auth.test.ts, plus tui-workflows.test.ts intermittently) turned out not to be red at all but to be borrowing a process global another file had set, which is exactly the rot a 23-file gate hides. Those are fixed in the first commit: firstFetchRetry.ms and the log floor are now restored by whoever lowers them (logLevel() is a new reader on src/kernel/log.ts so a caller can put back what it found), and origins-security-auth deletes the machine's FORGE_URL up front instead of only in afterAll — on a crew machine it was inheriting this forge's URL and failing every code exchange with redirect_uri mismatch. No behaviour changed; both source edits are a getter and a named constant.

The eight files that are genuinely red stay out, each with its reason and its issue: #290 (web-apps, 9 red, studio headings moved), #291 (web-code, web-origins, ssh-site, looks, 7 red, same cause), #292 (surfaces-adversarial, 2 red — a real N+1 regression in /apps and the dashboard cards, not a stale string), #293 (agents, fifty concurrent pushes coming back auth required), #294 (highlight, a 10ms wall-clock bound that takes 25ms here). All five are open and blocked by #261. Worth a look: whether excluding whole files where only one test is red is the right granularity, and whether #292 and #293 deserve to be treated as app defects rather than test debt.

To try it: bun run check — green here at 1532 tests across 107 files in 8m19s. bun run scripts/suite.ts prints how many files it runs and how many it skipped before it starts.

🤖 Generated with Claude Code

Closes #261

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs