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

Main's full check keeps failing at its ~40-minute edge, and each failure reve… #16613

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Run 01m8hg0dwh7sqmadqv3jpm5qky was not a timeout. It failed on two real tests, at 42 minutes, so the 40-minute edge was a coincidence. I pushed the fix for one of them; the other already passes.

Notes

shipped production is serving it deploy 3256dd5

opened this

Run 01m8hg0dwh7sqmadqv3jpm5qky was not a timeout. It failed on two real tests, at 42 minutes, so the 40-minute edge was a coincidence. I pushed the fix for one of them; the other already passes. I did not do items 2 and 4, and nothing here proves item 2's three passing runs.

What the run was. It was the scheduled verify run on cc9fdd3aa (#16571). That run executes the whole suite, so it is not the one that decides a landing. Its budget is 150 minutes, so the 40-minute edge is not a limit. Failing steps, as the run recorded them:

  • test/vendor-words.test.ts ("pages and the terminal name no AI vendor outside the picker"): #16571's new src/web/own_token.ts and src/tui/screens/runlog.ts name Claude and Anthropic in page text. #16571's own 12-minute check only ran the fast tier, which did not pick this file.
  • test/openapi-covers-routes.test.ts: it listed GET /forges/name/{} as a route that is not served. It passes on this branch's base, so I assume main already fixed it. I did not find which pull did.

What changed.

  • vendor-words (item 1): I reworded the "Your token or API key" label and the "Testing it…" status line, and the file comment. Two lines stay: the sk-ant-… placeholder, which shows the shape of the token, and "what claude setup-token printed", which names the command to run. Both are now allow-listed in test/vendor-words.test.ts with a stated reason. The user-facing heading "Start now with your own Claude account" is untouched; it lives in src/actions, which the test does not scan.
  • Reverts on non-test failures (item 3): src/checks/red_main.ts already skipped the revert for budget kills and cell stops. I added checks that stalled and checks cut off by the forge stopping, since neither is a pull's fault. test/revert-red.test.ts now covers a budget kill, a cell stop and a stall; the stall case would fail without the change.

What I chose not to do.

  • Item 2: there is no slowness to fix. The real full-check passes took 38–42 minutes, but nothing here fails by time, and I did not split or speed up the suite.
  • Item 4: I did not close the four reverts (#16590, #16597, #16608, #16611), because I cannot close pulls. By the run's evidence, the failing steps point only at #16571, so #16611 may stand and the other three look closable. That is for a person to decide.
  • Why the reverts were wrong: the revert logic only reads default-branch checks of env = main, and the failing run here was env = verify. I did not find which main check run opened them.

Checks run. bun scripts/gate.ts --fix and bun x tsc --noEmit were clean. I ran test/vendor-words.test.ts, test/own-token.test.ts, test/revert-red.test.ts, test/red-main.test.ts, test/crew-red-main.test.ts and test/red-main-line.test.ts, and all passed. The push hook required a commit message with a "Try:" line, so the branch has one empty commit for that.

To try it. Run bun test test/vendor-words.test.ts test/revert-red.test.ts.

🤖 Generated with Claude Code

Closes #16612

5 earlier comments · 1 event
commented

Run 01m8hg0dwh7sqmadqv3jpm5qky was not a timeout. It failed on two real tests, at 42 minutes, so the 40-minute edge was a coincidence. I pushed the fix for one of them; the other already passes. I did not do items 2 and 4, and nothing here proves item 2's three passing runs.

What the run was. It was the scheduled verify run on cc9fdd3aa (#16571). That run executes the whole suite, so it is not the one that decides a landing. Its budget is 150 minutes, so the 40-minute edge is not a limit. Failing steps, as the run recorded them:

  • test/vendor-words.test.ts ("pages and the terminal name no AI vendor outside the picker"): #16571's new src/web/own_token.ts and src/tui/screens/runlog.ts name Claude and Anthropic in page text. #16571's own 12-minute check only ran the fast tier, which did not pick this file.
  • test/openapi-covers-routes.test.ts: it listed GET /forges/name/{} as a route that is not served. It passes on this branch's base, so I assume main already fixed it. I did not find which pull did.

What changed.

  • vendor-words (item 1): I reworded the "Your token or API key" label and the "Testing it…" status line, and the file comment. Two lines stay: the sk-ant-… placeholder, which shows the shape of the token, and "what claude setup-token printed", which names the command to run. Both are now allow-listed in test/vendor-words.test.ts with a stated reason. The user-facing heading "Start now with your own Claude account" is untouched; it lives in src/actions, which the test does not scan.
  • Reverts on non-test failures (item 3): src/checks/red_main.ts already skipped the revert for budget kills and cell stops. I added checks that stalled and checks cut off by the forge stopping, since neither is a pull's fault. test/revert-red.test.ts now covers a budget kill, a cell stop and a stall; the stall case would fail without the change.

What I chose not to do.

  • Item 2: there is no slowness to fix. The real full-check passes took 38–42 minutes, but nothing here fails by time, and I did not split or speed up the suite.
  • Item 4: I did not close the four reverts (#16590, #16597, #16608, #16611), because I cannot close pulls. By the run's evidence, the failing steps point only at #16571, so #16611 may stand and the other three look closable. That is for a person to decide.
  • Why the reverts were wrong: the revert logic only reads default-branch checks of env = main, and the failing run here was env = verify. I did not find which main check run opened them.

Checks run. bun scripts/gate.ts --fix and bun x tsc --noEmit were clean. I ran test/vendor-words.test.ts, test/own-token.test.ts, test/revert-red.test.ts, test/red-main.test.ts, test/crew-red-main.test.ts and test/red-main-line.test.ts, and all passed. The push hook required a commit message with a "Try:" line, so the branch has one empty commit for that.

To try it. Run bun test test/vendor-words.test.ts test/revert-red.test.ts.

🤖 Generated with Claude Code

commented

<!-- look-pages 87992fae4b32 --> Look pages for 87992fa, from the gate:

  • look pages (inferred): this pull changes src/web/own_token.ts; the forge pictures /board (src/web/own_token.ts), /talk (src/web/own_token.ts), /settings/crew (src/web/own_token.ts) and 6 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

This feedback is the gate's automatic note on which pages the forge will picture. It asks for no code change, so I changed nothing and pushed nothing. The branch is clean and matches origin.

What changed: Main's red was two real test failures, not a timeout.

  • The token box wording in src/web/own_token.ts is reworded.
  • A check that stalled or that the forge stopped no longer opens a revert.

What to look at: The look pages (/board, /talk, /settings/crew and six more) are inferred only because they import own_token.ts. The change there is wording only, so I expect no layout difference. I'm leaving the inference as it is. I did not add a Looks: or No look: line to a commit message.

How to try it: Run bun test test/vendor-words.test.ts test/revert-red.test.ts. Both are expected to pass.

Not done: I did not change the check's ~40-minute limit.

🤖 Generated with Claude Code

Changes requested — before the latest push

No security finding; the change is small and sound. One change needed: the new the forge was stopped under this check branch of LIMIT has no test, and the repo rule is that every behaviour a change adds has a test that would fail without it. Remove that alternative from the regex and test/revert-red.test.ts stays green. Add a case with the real summary, the forge was stopped under this check 3 times; not trying again, built from the CHECK_RELEASE_LIMIT in src/checks/execute.ts or matching src/core/runs.ts:698. The test title says 'a timeout, a stop or a stall'; name the forge-stop case in it too.

commented

I added the forge-stop case to the revert test, and test/revert-red.test.ts now fails if that alternative is dropped from LIMIT.

  • Test: the case uses the summary the forge was stopped under this check 3 times; not trying again. I typed it in by hand; I did not build it from CHECK_RELEASE_LIMIT in src/checks/execute.ts.
  • Title: it now reads "a timeout, a stop, a forge stop or a stall".
  • Check: with the alternative in src/checks/red_main.ts the file passes 4 of 4. With it removed that case fails (3 of 4 pass). I restored the source afterwards, so the only file changed is the test. bun x tsc --noEmit is clean.

Nothing else changed. Try it with bun test test/revert-red.test.ts.

🤖 Generated with Claude Code

commented

<!-- look-pages 0de80a3aff8e --> Look pages for 0de80a3, from the gate:

  • look pages (inferred): this pull changes src/web/own_token.ts; the forge pictures /board (src/web/own_token.ts), /talk (src/web/own_token.ts), /settings/crew (src/web/own_token.ts) and 6 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

Nothing to change here. This is the gate's automatic look-pages note again, now for 0de80a3, and it asks for no code change. I made no commits and pushed nothing.

The nine pages (/board, /talk, /settings/crew and six more) are inferred only because their routes import src/web/own_token.ts. The change to that file is wording only, so I don't expect a visible layout difference. I did not add a Looks: or No look: line to a commit message to override the inference.

🤖 Generated with Claude Code

Approved

Since 87992fa the only change is the forge-stop case in test/revert-red.test.ts. Its summary matches the string in src/checks/execute.ts:158 and the LIMIT alternative in red_main.ts, so the test fails if that alternative is dropped. The earlier ask for a test of the forge-stop red is met. No security, design or direction findings. The look pages are wording only.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs