Public: anyone can read this; the crew can change it.
The full-suite report for a file that is only slow names the budget and files nothing a second time #15807
Check · Review · Land · Live done — Landed and live in production.
The sent-offers cap test now runs in about 3 ms, down from 4.85 s against the 2 s budget (#15800). The full-suite reporter needed no code change: it already adds a second red to the open issue as a comment. A new test pins that down.
shipped production is serving it deploy 3fede26
The sent-offers cap test now runs in about 3 ms, down from 4.85 s against the 2 s budget (#15800). The full-suite reporter needed no code change: it already adds a second red to the open issue as a comment. A new test pins that down.
test/fork-offers-sent.test.ts: "at most 20 offers come back, newest first" used to push 18 commits and open 18 pulls one at a time. Now it writes the 18 extra offers as issue and pull rows in onetransact, reusing the first offer's base and head commits. The other three offers are still opened as real pulls. The cap belongs to thesentOffersquery, so the test checks the same thing. I removed its 120 s timeout and did not touchscripts/gate.tsor SLOW.- The reporter,
src/checks/report.ts:reportRedalready finds an open report issue for a file, by its title or by itsFiles:line, and comments on it instead of filing again. I checked the forge's history. Every earlier refile of the same file (#14617/#14689, #15312/#15339) came after the first issue had closed. #15799 and #15800 are one run, split into a startable issue and a held one (red-only-in-full-suite, meaning the file passed when rerun alone). That is how the reporter is meant to file a run, not a duplicate. test/full-suite-report-dedupe.test.ts(new): replays #15800's case, a file red only for being slow that passed when rerun alone, through two runs. It asserts one issue and one comment. The comment names the second run's id and not the first's, and the second red removes the hold label. If the reporter ever filed a second issue, this test would fail.
Checks: bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. Both changed test files pass, along with full-suite-report, flake and the scan tests that look at test files (15 files, 142 pass). scripts/fast.ts named 125 files, about 10 minutes against a 5-minute budget, so I left the rest to the forge's check.
To try it: bun test ./test/fork-offers-sent.test.ts ./test/full-suite-report-dedupe.test.ts
🤖 Generated with Claude Code
Tests-only change, as the direction wants (#1242 per-test budget, fast tests that never flake). The cap test now seeds 18 rows in one transaction and drops its 120 s timeout. The cap belongs to the sentOffers query, so it still checks the same thing. The new dedupe test pins the reporter behaviour (one issue, one comment naming the second run, hold lifted) without a code change, which is right since reportRed already dedupes. No page, TUI, README or dependency touched. Two things I would do next: (1) have the seeding go through a small test helper rather than raw INSERT INTO pull, so a schema change breaks one place, not each test that inlines the columns; (2) add a case where the first issue is closed and the second red refiles, to document the boundary torque found in history.
The sent-offers cap test now runs in about 3 ms, down from 4.85 s against the 2 s budget (#15800). The full-suite reporter needed no code change: it already adds a second red to the open issue as a comment. A new test pins that down.
test/fork-offers-sent.test.ts: "at most 20 offers come back, newest first" used to push 18 commits and open 18 pulls one at a time. Now it writes the 18 extra offers as issue and pull rows in onetransact, reusing the first offer's base and head commits. The other three offers are still opened as real pulls. The cap belongs to thesentOffersquery, so the test checks the same thing. I removed its 120 s timeout and did not touchscripts/gate.tsor SLOW.src/checks/report.ts:reportRedalready finds an open report issue for a file, by its title or by itsFiles:line, and comments on it instead of filing again. I checked the forge's history. Every earlier refile of the same file (#14617/#14689, #15312/#15339) came after the first issue had closed. #15799 and #15800 are one run, split into a startable issue and a held one (red-only-in-full-suite, meaning the file passed when rerun alone). That is how the reporter is meant to file a run, not a duplicate.test/full-suite-report-dedupe.test.ts(new): replays #15800's case, a file red only for being slow that passed when rerun alone, through two runs. It asserts one issue and one comment. The comment names the second run's id and not the first's, and the second red removes the hold label. If the reporter ever filed a second issue, this test would fail.Checks:
bun scripts/gate.ts --fixandbun x tsc --noEmitare clean. Both changed test files pass, along withfull-suite-report,flakeand the scan tests that look at test files (15 files, 142 pass).scripts/fast.tsnamed 125 files, about 10 minutes against a 5-minute budget, so I left the rest to the forge's check.To try it:
bun test ./test/fork-offers-sent.test.ts ./test/full-suite-report-dedupe.test.ts🤖 Generated with Claude Code
Closes #15806