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

Red after landing: test/shards-keep-going.test.ts fails on main #12935

opened this in answer to

Closed 17d 22h ago

This pull lists test/usage.test.ts in SLOW in scripts/gate.ts, owned by #12933. That is the only change, and it is a workaround rather than a speed-up. Cause.

Notes

opened this

This pull lists test/usage.test.ts in SLOW in scripts/gate.ts, owned by #12933. That is the only change, and it is a workaround rather than a speed-up.

Cause. The reported breach is the test "each run is attributed to the account it ran on, the app, the agent and the issue" in test/usage.test.ts. It starts the crew and runs a stand-in agent run, so it is load-sensitive. Alone it takes about 0.5 s, and under full-suite load it reached 2.30 s against the 2 s budget.

The other three files. test/shards-keep-going.test.ts, test/threats-enforced.test.ts and test/agents.test.ts showed no failure of their own. They and test/usage.test.ts all passed together here (51 pass, 0 fail), and I saw no budget breach in the rest of that run. The "2 more" failures in the issue are not visible in the issue text I was given, so I could not match them to anything. I did not touch those files.

Why a SLOW entry. It follows the same fix used recently for test/crew-pause-slot.test.ts (#12922), test/look-loopback-only.test.ts (#12921) and test/timers-named.test.ts (#12918). I did not make the test faster. The 510-commit gap means no landing was named, and I did not hunt for one.

Checks run. bun scripts/gate.ts and bun x tsc --noEmit both ran with no output (I did not read their exit codes). I did not run the full suite, so I cannot say whether the other files breach the budget under load.

To try it. bun test test/usage.test.ts passes, and the next main verification should no longer flag that test. If another file in the issue's list is still red there, its log will name it.

🤖 Generated with Claude Code

Closes #12933

3 earlier comments
commented

This pull lists test/usage.test.ts in SLOW in scripts/gate.ts, owned by #12933. That is the only change, and it is a workaround rather than a speed-up.

Cause. The reported breach is the test "each run is attributed to the account it ran on, the app, the agent and the issue" in test/usage.test.ts. It starts the crew and runs a stand-in agent run, so it is load-sensitive. Alone it takes about 0.5 s, and under full-suite load it reached 2.30 s against the 2 s budget.

The other three files. test/shards-keep-going.test.ts, test/threats-enforced.test.ts and test/agents.test.ts showed no failure of their own. They and test/usage.test.ts all passed together here (51 pass, 0 fail), and I saw no budget breach in the rest of that run. The "2 more" failures in the issue are not visible in the issue text I was given, so I could not match them to anything. I did not touch those files.

Why a SLOW entry. It follows the same fix used recently for test/crew-pause-slot.test.ts (#12922), test/look-loopback-only.test.ts (#12921) and test/timers-named.test.ts (#12918). I did not make the test faster. The 510-commit gap means no landing was named, and I did not hunt for one.

Checks run. bun scripts/gate.ts and bun x tsc --noEmit both ran with no output (I did not read their exit codes). I did not run the full suite, so I cannot say whether the other files breach the budget under load.

To try it. bun test test/usage.test.ts passes, and the next main verification should no longer flag that test. If another file in the issue's list is still red there, its log will name it.

🤖 Generated with Claude Code

commented

The full gate on land was red and named no test; the pull is open again.

The gate's log: /api/v1/repos/trevato/forge/gates/1794692923037-f6e1dc005348/log

commented

This pull now changes nothing in scripts/gate.ts relative to main. The gate went red because it listed test/usage.test.ts in SLOW twice, and the fix is to remove my duplicate.

Cause. While this pull was open, main added its own SLOW entry for test/usage.test.ts under #12932, at scripts/gate.ts:212. Together with my entry from the first push, the gate saw two and failed with "test/usage.test.ts is in SLOW twice". I merged origin/main into the branch, deleted my entry (the one at line 64) and pushed.

State.

  • The main-side entry for test/usage.test.ts is now the only one.
  • Because that entry already covers the 2.3 s breach, #12933's usage.test.ts failure is already handled on main, and this pull adds nothing on top of it.
  • bun scripts/gate.ts and bun x tsc --noEmit ran clean after the merge. I did not re-run the test suites, since the only change since the earlier green tests is a deleted line in gate.ts.

Reviewer's next steps (juniper).

  • Share a booted crew in usage.test.ts: this would remove the SLOW entry, but it belongs under #12932, which now owns that entry.
  • Confirm the other three files: I couldn't match test/shards-keep-going.test.ts, test/threats-enforced.test.ts and test/agents.test.ts to any failure, so I'm leaving that check to the next main verification. If any is still red there, it needs a follow-up issue.

If #12933 should close on this alone, a person can close it, since the pull no longer carries a change.

🤖 Generated with Claude Code

commented

Closed by the crew: superseded, its change is already on main in 0a6e7850.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs