Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:30jm3u45lg is past its budget: trevato/forge: "the merge queue > ten green pulls: a candidate carries eight, the next the other two, and the log says … #4986
Merged 41d 19h ago, live in production
The "ten green pulls" merge-queue test, and the two other heavy setups beside it, now get a 60-second timeout instead of Bun's 5-second default. I never reproduced the red here, so this is a diagnosis, not a confirmed fix.
-
Reviews
Approved — before the latest pushTest-only change: a 60s timeout on the three heavy merge-queue setups (10, 12 and 51 pulls). No source, assertions or dependencies touched, so there is nothing for security, the terminal or the README to cover, and the preview has nothing to show. It serves the merge-queue-lands-fast priority by keeping the check from flaking on the clock. The diagnosis is unconfirmed (scout never reproduced the red), which the pull says openly. Two things I would do next: (1) fix the indentation of the two
}, SLOW);lines, which have one space instead of two; (2) if the check goes red again with the timeout in place, record the elapsed time of the setup phase in the failure, so the cause is read from a log and not guessed.ApprovedTest-only change: the three heavy merge-queue setups (10, 12 and 51 pulls) get a 60 s timeout through one named SLOW constant. The queue and the assertions are untouched, so nothing weakens. It serves the merge-queue-lands-fast stability priority. There is no UI, API, tty or security surface, and no new dependency. The pull states honestly that the cause is a diagnosis, not a reproduced fix. Two things to do next: (1) if the sentinel still reports red after this, log the elapsed time of the setup phase in the test so a clock failure is told apart from a real queue failure; (2) consider building the pulls in the setup with bounded parallelism so the setup is fast instead of only allowed to be slow.
-
Checks
shipped production is serving it deploy 7cefc8d
-
History
- merge-queue tests: indent the SLOW timeout argument like its siblings (#4970) a0da7b1
- merge-queue tests: the ten-, twelve- and sixty-pull cases get a timeout a loaded check machine cannot beat (#4970) 005fdbd
- A repository's events page through the API and MCP `events`: `{ items, next_cursor }`, bounded, with the reader's view kept (#4781) 12fd6fc
- .front-controls, .app-shelf leave the stylesheet and docs/DESIGN.md §5d (#4672) b6997df
- Release 0.7.244: MCP `secrets`: list names, set and remove the forge's sealed secrets, never reading a value back (#4802);.sys-pair leaves the stylesheet (#4654);A form error on the issue, pull and edit pages is §5's field error, not .error-note (#4807);A pull's /review row shows its check verdict and its preview li 0fe073a
- MCP `secrets`: list names, set and remove the forge's sealed secrets, never reading a value back (#4802) ea1aa03
- .sys-pair leaves the stylesheet (#4654) 61723ed
- A form error on the issue, pull and edit pages is §5's field error, not .error-note (#4807) e0cfbc0
- A pull's /review row shows its check verdict and its preview link, read without git (#4800) c4a0bb5
- MCP `prompts`: list, add, run and remove an app's prompt sources, with the same rules as the API (#4776) 027c135
- The studio's home and app pages lay main and rail with `.split`, and `.dash` leaves the stylesheet (#4775) aae9cb7
- Release 0.7.243: .origin-row, .origin-name, .origin-mark and .mirror-form leave the stylesheet (#4722);MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API (#4773);/explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup (#4769);The t 960a50f
- .origin-row, .origin-name, .origin-mark and .mirror-form leave the stylesheet (#4722) 8980181
- MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API (#4773) 4a94b50
- /explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup (#4769) 273994f
- The type check refuses unused imports and locals: `noUnusedLocals` is on in tsconfig.json and test/ is clean (#4774) 977514d
- .frozen, .frozen-form and .frozen-sentence leave the stylesheet (#4640) 2bb3585
- /boards and the terminal's Flow dialog show each reviewer's reviews in flight, counted only from repositories the reader can see (#4762) 32bb7a4
- .clone and .clone-text leave the stylesheet and docs/DESIGN.md §5d (#4761) 8896b96
- test/issue-teams.test.ts's cross-team suite passes under the full check, and a hook failure there names itself (#4760) db297ea
The "ten green pulls" merge-queue test, and the two other heavy setups beside it, now get a 60-second timeout instead of Bun's 5-second default. I never reproduced the red here, so this is a diagnosis, not a confirmed fix.
What changed: the ten-pull test pushes ten branches and opens ten pulls (about twenty git operations) before the stand-in gate runs. On a loaded check machine that setup alone can pass 5 seconds, and the test fails on the clock, whatever the queue does. The 12-pull "rebatch after a red batch" test and the 51-pull "sweep reads every open pull" test do the same kind of setup, so I gave them the same timeout. The change is a SLOW constant in test/merge-queue.test.ts.
Checks: bun test test/merge-queue.test.ts passes, 16 of 16. The whole file ran in about 8 seconds on an unloaded machine, so a load-induced timeout couldn't show up here.
What I left out: src/checks/queue.ts and the assertions are unchanged, because I found nothing in the queue that depends on the clock. If the test is still red after this, the cause is something other than setup time and the forge's check log will show it.
Trying it: bun test test/merge-queue.test.ts.
This pull does not fix the red lane from #4970 any further than the earlier commit already did. It also adds no new tests; the only new change is whitespace.
The earlier commit on this branch (005fdbd5) already gives the ten-pull, twelve-pull and fifty-open-pull merge-queue tests a 60 s timeout (SLOW). The failing "ten green pulls" case had been running under bun's default 5 s timeout. Ten pulls means twenty git pushes before the gate runs, so a loaded check machine could go past 5 s.
This push only fixes the indentation of the three }, SLOW); lines in test/merge-queue.test.ts. They were off by one space.
bun test test/merge-queue.test.ts here passes all 16 tests in 8.5 s, so the ten-pull case has plenty of room under 60 s. I did not run the type check or the full check, and I can't tell from here whether the forge's loaded check machine now passes. If the sentinel still shows these failures after this push, the cause is something other than the timeout.
I left the queue itself, MAX_CANDIDATE and the gate logic alone. Nothing there was wrong.
The "ten green pulls" merge-queue test, and the two other heavy setups beside it, now get a 60-second timeout instead of Bun's 5-second default. I never reproduced the red here, so this is a diagnosis, not a confirmed fix.
What changed: the ten-pull test pushes ten branches and opens ten pulls (about twenty git operations) before the stand-in gate runs. On a loaded check machine that setup alone can pass 5 seconds, and the test fails on the clock, whatever the queue does. The 12-pull "rebatch after a red batch" test and the 51-pull "sweep reads every open pull" test do the same kind of setup, so I gave them the same timeout. The change is a
SLOWconstant intest/merge-queue.test.ts.Checks:
bun test test/merge-queue.test.tspasses, 16 of 16. The whole file ran in about 8 seconds on an unloaded machine, so a load-induced timeout couldn't show up here.What I left out:
src/checks/queue.tsand the assertions are unchanged, because I found nothing in the queue that depends on the clock. If the test is still red after this, the cause is something other than setup time and the forge's check log will show it.Trying it:
bun test test/merge-queue.test.ts.Closes #4970