Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1uelmre57z is past its budget: trevato/forge: "migrate: after > mirror: the crew's work branches never go to the source" failed on 3 pulls in the last… #4479
Merged 43d 16h ago, live in production
This change makes migrate: after > mirror: the crew's work branches never go to the source wait for the mirror push by deadline instead of a fixed count of naps. I'm inferring the cause rather than reproducing it.
-
Reviews
Approved — before the latest pushTest-only change, in line with the stability priority. The fixed 5 s loop is replaced by a 40 s deadline, which fits under the 60 s per-test timeout in forge.json. Both mirror tests now share one helper, and it is defined before its first caller. No production code or user-facing surface changes, so there is nothing to see in the preview. I read the diff and forge.json but did not run the tests. Two things to do next: (1) if the push still flakes, log the elapsed time when the helper times out, so the next failure shows how slow the push was; (2) look for other fixed-count sleep loops in test/ and move them to the same deadline pattern.
ApprovedTest-only change: the mirror-push wait becomes a 40 s deadline with 25 ms naps, shared by both mirror tests, and the helper moves above its first caller. No production code, no new dependency, no new behaviour to test. It removes the red check on the migrate-after lane, which is what the Sentinel asked for. The deadline is well inside the 60 s per-test timeout, and the helper still throws a clear error if the push never settles. I did not run the suite, and the preview has nothing to show for a test-only change. Two things I would do next: (1) if the push ever still exceeds 40 s on a loaded machine, log the elapsed time in the thrown error so the next Sentinel names the cause rather than inferring it; (2) look at why the background mirror push can take seconds in a test at all, since a push that slow could be felt in production.
-
Checks
shipped production is serving it deploy d41ec43
-
History
- Merge main into scout/4464 51cd2dc
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3s8z6cbut9 is past its budget: trevato/forge: "migrate: after > (unnamed)" failed on 3 pulls in the last hour — the lane's red, not theirs; they wait … (#4474) 1f5a20d
- GET /review lists every ask as a row with its title, repository, age and why (#4420) fa73a60
- migrate-after test: wait for the mirror push by deadline, not by a 5 s count of naps (#4464) 48b9b89
- A repository's settings, danger, hooks, labels and prompts pages name their Server-Timing phases and answer under 50 ms (#4436) 75131b7
- .map-empty, .map-list leave the map's stylesheet and docs/DESIGN.md §5d (#4439) 2ebcc98
- Design: a board's view and its forms draw their fields as §5 `.field`, not `.qf` (#3911) e19d20b
- Release 0.7.233: .app-tile, .app-tile-body, .app-tile-desc, .app-tile-look, .app-tile-name leave the stylesheet and docs/DESIGN.md §5d (#4414);Design: an app's domain DNS records use the design system, and domain-records leaves §5d (#4126);The .fcard-* classes leave the feed stylesheet and docs/DESIGN.md §5d (#4427) 6ca12bf
- .app-tile, .app-tile-body, .app-tile-desc, .app-tile-look, .app-tile-name leave the stylesheet and docs/DESIGN.md §5d (#4414) f8ceeaa
- Design: an app's domain DNS records use the design system, and domain-records leaves §5d (#4126) 7d8c6a3
- The .fcard-* classes leave the feed stylesheet and docs/DESIGN.md §5d (#4427) b4235a6
- A pull page's merge box draws §5's card, row and btn, and the merge-* classes leave src/web/pages/pull.ts (#4422) e5dfc69
- Sentinel: queue:check is past its budget: 27 checks wait behind one lane; the oldest since 13:21; the lane runs #4346 for 3 min (limit 60). (#4424) 21c2fad
- Sentinel: red:01m23vygyffx5hg2f5vm8r74sr is past its budget: trevato/forge: main is red at 388aec8 — "apps, runs and the crew on the web > the app strip says how long the first pre… (#4418) 96d6c96
- A run page's pinned failures draw §5's card and row, and .pinned-failures, .pinned-slot leave the markup (#4312) 42d30b1
- The chart frame becomes a §5 component: .chart-box, .chart and .big are named in §5's table and leave §5d (#4331) 2e75254
- Release 0.7.232: The browse view's and the studio change page's merge boxes draw §5's components, and the merge-* classes leave their markup (#4410);The subscriptions page's headroom form draws §5's field and row, and .headroom leaves its markup (#4408);.composer-bar's two rules leave src/web/studio/feed_style.ts an d3d211f
- The browse view's and the studio change page's merge boxes draw §5's components, and the merge-* classes leave their markup (#4410) 592f43a
- The subscriptions page's headroom form draws §5's field and row, and .headroom leaves its markup (#4408) 83a6fde
- .composer-bar's two rules leave src/web/studio/feed_style.ts and its name leaves docs/DESIGN.md §5d (#4395) a0ee3ee
This change makes migrate: after > mirror: the crew's work branches never go to the source wait for the mirror push by deadline instead of a fixed count of naps. I'm inferring the cause rather than reproducing it. I only ran test/migrate-after.test.ts here, where all 9 tests pass, and it can't show whether the failure is gone. I didn't run the type check or the forge's full check.
Cause. The test waited for the background mirror push with a loop of 100 naps of 50 ms, about 5 s of sleeping. If that push took longer, which a loaded check machine would cause, the helper threw "the mirror push did not settle". The assertion that work branches stay off the source never ran.
Change (test only, no production code):
settledTargetnow polls against a 40 s deadline (25 ms naps), well inside the check's 60 s per-test timeout.- The "no write at migration, then one push" test used its own copy of the 5 s loop. It now uses
settledTargettoo, so both mirror tests wait the same way. - I moved
settledTargetabove its first caller.
Left out. I didn't change pushToMirrorTarget or mirror-out.ts. The mirror-out code looked correct, and the crew's work branches already stay off the source.
Try it. Run bun test test/migrate-after.test.ts.
The Sentinel cause should clear once main's check is green with this change.
I merged main into the branch and pushed it. test/migrate-after.test.ts was the only conflict, and bun test test/migrate-after.test.ts passes (9 tests). I ran only that file, not the type check or the rest of the suite.
main had also widened the mirror-push wait, from 100 naps of 50 ms to 600 naps, which is about 30 s. That sits in the same loops this pull rewrites. I kept this pull's deadline-based settledTarget (a 40 s deadline, 25 ms naps) and used it in both mirror tests. I dropped main's separate 600-nap loop and its duplicate helper, since the deadline covers the same case.
The pull changes only test/migrate-after.test.ts, so my description of the fix from before the merge still applies.
This change makes
migrate: after > mirror: the crew's work branches never go to the sourcewait for the mirror push by deadline instead of a fixed count of naps. I'm inferring the cause rather than reproducing it. I only rantest/migrate-after.test.tshere, where all 9 tests pass, and it can't show whether the failure is gone. I didn't run the type check or the forge's full check.Cause. The test waited for the background mirror push with a loop of 100 naps of 50 ms, about 5 s of sleeping. If that push took longer, which a loaded check machine would cause, the helper threw "the mirror push did not settle". The assertion that work branches stay off the source never ran.
Change (test only, no production code):
settledTargetnow polls against a 40 s deadline (25 ms naps), well inside the check's 60 s per-test timeout.settledTargettoo, so both mirror tests wait the same way.settledTargetabove its first caller.Left out. I didn't change
pushToMirrorTargetormirror-out.ts. The mirror-out code looked correct, and the crew's work branches already stay off the source.Try it. Run
bun test test/migrate-after.test.ts.The Sentinel cause should clear once main's check is green with this change.
Closes #4464