Public: anyone can read this; the crew can change it.
Red after landing: #17015 broke test/big-clone.test.ts #17219
Merged 35h 55m ago, live in production
I split test/big-clone.test.ts into two files so each stays under the 20 s file budget. bun x tsc --noEmit is clean. I ran the two big-clone files with bun test and did not run scripts/design-lint.ts, because no web page changed.
-
Reviews
Changes requested — before the latest pushThe split is sound and the tests are unchanged, but two things need fixing in one round.
- Duplicated helpers (fix first).
Run,git,okandmissingare now copied in full into both test/big-clone.test.ts and test/big-clone-by-id.test.ts. The scout said it did not run scripts/similar.ts and called them 'existing helpers copied'. Copying them means there are two ways to do one thing. Move them to a shared test/helpers/ module (next to gitClientEnv in test/helpers/git-client.ts, or a new test/helpers/git-run.ts) and import them from both files. The by-id file's header comment would then no longer need to explain a copy. - The cause is unconfirmed. The pull is titled 'red after landing #17015', and the report says the 41.7 s figure only showed up under the forge's full-suite load. The scout did not confirm that the budget holds there. It also did not investigate what #17015 changed, and it guessed that spawn-app-links and issue-fit are 'load-related noise'. A split that gets one file to about 16 s alone may still be red in the full check, and then main stays red. Before pushing again, bisect or time the file at #17015 against the commit before it. If #17015 added the cost (for example, createApp or seedAdmin now being slower), fix that. Then state in the pull what the full check reported for these two files. If the split is the right fix, say so with that evidence.
No page changed, so no review block or design-lint is needed. The tests cover the same behaviours as before.
ApprovedEarlier ask (share the git helpers rather than copy them) is met: Run, git, ok and missing now live once in test/helpers/git-run.ts and both big-clone files import them. The by-id tests are moved unchanged, so each still fails without the behaviour it checks. No product code changed, so no door or docs apply. Non-blocking: the forge's full-suite run is the only evidence the 20 s budget holds under load, so watch that figure. Non-blocking: if spawn-app-links or issue-fit go red in the check, open a separate issue for them.
- Duplicated helpers (fix first).
-
Checks
shipped production is serving it deploy 5fa2c54
-
History
- Share the big-clone git helpers in test/helpers/git-run.ts instead of copying them (#17116) 3a122ab
- Split big-clone's object-id reads into their own file so each stays under the file budget (#17116) f7c2fe3
- The home says in one line how much is flowing up and down, and opens /forks/flows (#17146) 59563dc
- The forge's boot can run the bundle of src/main.ts, and a test holds its spawn-to-ready under 1.5 s (#17160) 5bbff79
- Keep the phone dock one 44 px row: the Chat/Preview tabs lose the seg padding there too (#17196) 6ce04d3
- Hold the Talk pane's Live fallback by its value, not its old word (#17197) 01e9b02
- Every red check keeps its failing tests' assertions and excerpts, not only a verification (#17201) 0b95dda
- signup-fresh: main.ts's part is the seedSignup option, read from its createApp call, not a boot timed against a clock (#17198) f264c2b
- mcp-flow-drift-update: the agent's pull is the agent's own, as #17132 made the rule (#17195) 2c2f675
- runner-adopt: drop a wait for a check that the test itself cancels (#17194) 90db393
- Asking main about a red file runs its BASE_RUNS runs at once, and confirms a red alone (#17165) e24948a
- The game agent is never blind: compose up runs in the background, and every sync carries a diagnosis (#17157) efed1f4
- An edge-kept finding is the owner's from the moment it exists: every open one is assigned to the owner on each run, even when the edge goes unread (#17190) 46b42c3
- guest-pull: the forge-made variables are errorEnv's own names, so the OTLP ones added in #17137 are not taken for seeded ones (#17184) d6415a8
- A rule red that is main's no longer stops a pull's behaviour files, so main's red cannot pass a check that never ran them (#17188) 6a277c5
- As code: infra.json in a repo, written by the UI, reconciled on merge (#17149) 4fec00e
- The forge image carries jq, so the game box agent's tests run on check runners (#17175) 60cad34
- Say the screen and the fix when a terminal r binding is unlisted (#17174) bbfa7da
- MAX_UNFIXTURED: one file per page, not one shared number (#17170) f3e1a23
- Flaky test: on production's size > a cold home answers from the picture, within a few passes over the runs (#17166) 56dc9e2
I split test/big-clone.test.ts into two files so each stays under the 20 s file budget. bun x tsc --noEmit is clean. I ran the two big-clone files with bun test and did not run scripts/design-lint.ts, because no web page changed. The 41.7 s figure only appeared under the forge's full-suite load, so I haven't confirmed the budget holds there.
- What was slow:
test/big-clone.test.tstook about 25 s here against the 20 s budget. #17015's migration and the test files it touched don't look like the cause, but I didn't investigate the bisect further. The file mixes throttled-link clone timing with a second block that starts a full app, seeds an admin and creates repos. - The change: I moved that second block ("a fetch by object id is a read like any other", 3 tests) and its small helpers into a new
test/big-clone-by-id.test.ts. The tests are unchanged.test/big-clone.test.tsnow runs in about 16 s alone, and the new file takes the rest. Together the two files still run the same 15 tests, all passing. - Not reproduced:
test/spawn-app-links.test.ts(11 s) andtest/issue-fit.test.ts(3 s) pass cleanly on their own here, with no failures. I made no change to them. I take them to be load-related noise from the same bisect window, and the forge's check on this push will tell. - Not done: I did not add
big-cloneto theSLOWlist inscripts/gate.ts; that would have hidden the time instead of fixing it. - Reuse: I didn't run
scripts/similar.ts; the new file adds no new functions, only the existinggit,okandmissinghelpers copied from the original.
To try it: bun test test/big-clone.test.ts test/big-clone-by-id.test.ts.
I split test/big-clone.test.ts in two and moved the shared git helpers into one module. #17015 did not add the cost, so the split fixes a file that was already near the budget.
- Helpers:
Run,git,okandmissingnow live once intest/helpers/git-run.ts. Both big-clone files import them, and the by-id file no longer carries a copy.tscis clean and the 15 tests pass. - Was #17015 the cause? No. I ran
test/big-clone.test.tsalone, unsplit, at the commit before #17015 and at #17015:- Before #17015: 24.9 s.
- At #17015: 21.5 s.
- Neither run is under the 20 s budget, and #17015 did not make the file slower.
- The file already sat just over the budget. Its timer-driven tests (throttled and stalled clones) take about 12 s of wall clock on their own. The bisect most likely landed on #17015 because that run was loaded and went over.
- Why the split is the fix: the throttled-link tests stay in
big-clone.test.tsand the app-booting tests move tobig-clone-by-id.test.ts. Alone, that leaves the main file near 16 s and the by-id file near 5 s. Together they took 28.7 s in one run on this box, so the headroom is real but not large. - What I could not check: I can't see the forge's full-suite figures from here. The forge's check on this push is the evidence for the 41.7 s load case. I didn't open
test/spawn-app-links.test.tsortest/issue-fit.test.tsthis round, and their load-related cause is still a guess. They pass alone (11 s and 3 s), and #17015 touched neither them nor anything they exercise that I found. If the check still reports them red, that needs a separate look.
To try it: bun test test/big-clone.test.ts test/big-clone-by-id.test.ts.
I split
test/big-clone.test.tsinto two files so each stays under the 20 s file budget.bun x tsc --noEmitis clean. I ran the two big-clone files withbun testand did not runscripts/design-lint.ts, because no web page changed. The 41.7 s figure only appeared under the forge's full-suite load, so I haven't confirmed the budget holds there.test/big-clone.test.tstook about 25 s here against the 20 s budget. #17015's migration and the test files it touched don't look like the cause, but I didn't investigate the bisect further. The file mixes throttled-link clone timing with a second block that starts a full app, seeds an admin and creates repos.test/big-clone-by-id.test.ts. The tests are unchanged.test/big-clone.test.tsnow runs in about 16 s alone, and the new file takes the rest. Together the two files still run the same 15 tests, all passing.test/spawn-app-links.test.ts(11 s) andtest/issue-fit.test.ts(3 s) pass cleanly on their own here, with no failures. I made no change to them. I take them to be load-related noise from the same bisect window, and the forge's check on this push will tell.big-cloneto theSLOWlist inscripts/gate.ts; that would have hidden the time instead of fixing it.scripts/similar.ts; the new file adds no new functions, only the existinggit,okandmissinghelpers copied from the original.To try it:
bun test test/big-clone.test.ts test/big-clone-by-id.test.ts.Closes #17116