Repository navigation
test(tui): give the explorer frame budget room for a slow runner - #417
Merged
Merged
Conversation
`holding_arrows_in_a_large_tree_stays_on_a_frame_budget` blocked the beta.6 release twice, at 539.0ms and 522.3ms against a 500ms budget. Not a regression. The same tree costs ~83ms here and ~81ms at v0.1.0-beta.4, so the work since that release added ~3%. The budget simply had no headroom on the machine that gates releases: `release.yml` verifies on a 4-vCPU runner well below CI's, where the measurement lands near 520-540ms, and CI's own runner passes the identical tree. A budget that fails on 3% is not measuring what this test is for. The failure it exists to catch is a blowup — a redraw that starts rescanning the whole tree, an accidental O(n^2) — and that costs multiples, not percent. 1500ms still catches that and leaves the slow runner ~3x. The sibling `move_ms` assertion is left alone: 0.3ms against 50ms is 160x of headroom and never came close. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 21, 2026
#417 landed at 1500ms, which is far looser than this test needs. The worst run that blocked the beta.6 cut was 539.0ms, so 600ms clears it by ~11% and keeps the assertion a real ceiling on redraw cost. Tight on purpose: it will trip again if the 4-vCPU release runner has a bad day, and that is the trade being made. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
`holding_arrows_in_a_large_tree_stays_on_a_frame_budget` blocked the beta.6 release twice, at 539.0ms and 522.3ms against a 500ms budget. Not a regression. The same tree costs ~83ms here and ~81ms at v0.1.0-beta.4, so the work since that release added ~3%. The budget simply had no headroom on the machine that gates releases: `release.yml` verifies on a 4-vCPU runner well below CI's, where the measurement lands near 520-540ms, and CI's own runner passes the identical tree. A budget that fails on 3% is not measuring what this test is for. The failure it exists to catch is a blowup — a redraw that starts rescanning the whole tree, an accidental O(n^2) — and that costs multiples, not percent. 1500ms still catches that and leaves the slow runner ~3x. The sibling `move_ms` assertion is left alone: 0.3ms against 50ms is 160x of headroom and never came close. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
#417 landed at 1500ms, which is far looser than this test needs. The worst run that blocked the beta.6 cut was 539.0ms, so 600ms clears it by ~11% and keeps the assertion a real ceiling on redraw cost. Tight on purpose: it will trip again if the 4-vCPU release runner has a bad day, and that is the trade being made. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
Auto-merge squashed #417 while a correction to that same PR was in flight, so the version that landed on main was not the one intended and needed a follow-up PR (#418) to undo. Arming automatically on every `opened`/`synchronize` means a PR can merge in the gap between a review comment and the push that answers it. Removing the workflow, not disabling it in place: a dormant workflow file reads as active. Branch protection is unchanged and still decides what is mergeable; this only stops the merge being requested unattended. `gh pr merge --auto` remains available per-PR for anyone who wants it. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
`holding_arrows_in_a_large_tree_stays_on_a_frame_budget` blocked the beta.6 release twice, at 539.0ms and 522.3ms against a 500ms budget. Not a regression. The same tree costs ~83ms here and ~81ms at v0.1.0-beta.4, so the work since that release added ~3%. The budget simply had no headroom on the machine that gates releases: `release.yml` verifies on a 4-vCPU runner well below CI's, where the measurement lands near 520-540ms, and CI's own runner passes the identical tree. A budget that fails on 3% is not measuring what this test is for. The failure it exists to catch is a blowup — a redraw that starts rescanning the whole tree, an accidental O(n^2) — and that costs multiples, not percent. 1500ms still catches that and leaves the slow runner ~3x. The sibling `move_ms` assertion is left alone: 0.3ms against 50ms is 160x of headroom and never came close. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
#417 landed at 1500ms, which is far looser than this test needs. The worst run that blocked the beta.6 cut was 539.0ms, so 600ms clears it by ~11% and keeps the assertion a real ceiling on redraw cost. Tight on purpose: it will trip again if the 4-vCPU release runner has a bad day, and that is the trade being made. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Auto-merge squashed #417 while a correction to that same PR was in flight, so the version that landed on main was not the one intended and needed a follow-up PR (#418) to undo. Arming automatically on every `opened`/`synchronize` means a PR can merge in the gap between a review comment and the push that answers it. Removing the workflow, not disabling it in place: a dormant workflow file reads as active. Branch protection is unchanged and still decides what is mergeable; this only stops the merge being requested unattended. `gh pr merge --auto` remains available per-PR for anyone who wants it. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
`holding_arrows_in_a_large_tree_stays_on_a_frame_budget` blocked the beta.6 release twice, at 539.0ms and 522.3ms against a 500ms budget. Not a regression. The same tree costs ~83ms here and ~81ms at v0.1.0-beta.4, so the work since that release added ~3%. The budget simply had no headroom on the machine that gates releases: `release.yml` verifies on a 4-vCPU runner well below CI's, where the measurement lands near 520-540ms, and CI's own runner passes the identical tree. A budget that fails on 3% is not measuring what this test is for. The failure it exists to catch is a blowup — a redraw that starts rescanning the whole tree, an accidental O(n^2) — and that costs multiples, not percent. 1500ms still catches that and leaves the slow runner ~3x. The sibling `move_ms` assertion is left alone: 0.3ms against 50ms is 160x of headroom and never came close. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
#417 landed at 1500ms, which is far looser than this test needs. The worst run that blocked the beta.6 cut was 539.0ms, so 600ms clears it by ~11% and keeps the assertion a real ceiling on redraw cost. Tight on purpose: it will trip again if the 4-vCPU release runner has a bad day, and that is the trade being made. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Auto-merge squashed #417 while a correction to that same PR was in flight, so the version that landed on main was not the one intended and needed a follow-up PR (#418) to undo. Arming automatically on every `opened`/`synchronize` means a PR can merge in the gap between a review comment and the push that answers it. Removing the workflow, not disabling it in place: a dormant workflow file reads as active. Branch protection is unchanged and still decides what is mergeable; this only stops the merge being requested unattended. `gh pr merge --auto` remains available per-PR for anyone who wants it. Claude-Session: https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
holding_arrows_in_a_large_tree_stays_on_a_frame_budgetblocked the beta.6 release twice — 539.0ms and 522.3ms against a 500ms budget — soBuildandPublish GitHub prereleasewere skipped and no artifacts shipped.This is not a regression
Measured the same test on both trees, three runs each, same machine:
v0.1.0-beta.4(last successful release)main@ e0bd99e~3% growth across five weeks of work. Nowhere near 500 → 540.
What actually happened
The budget had no headroom on the machine that gates releases.
release.ymlverifies onblacksmith-4vcpu-ubuntu-2404, well below CI's runner — and CI's ownTest and formatpassed the identical tree on #416 in 1m50s. At ~6.5x this machine's time, an 83ms measurement lands at ~540ms, so 500ms was already marginal at beta.4 and 3% tipped it.The change
A budget that fails on 3% is not measuring what this test is for. The failure it exists to catch is a blowup — a redraw that starts rescanning the whole tree, an accidental O(n^2) — which costs multiples, not percent. 1500ms still catches that and leaves the slow runner ~3x of room.
The sibling
move_msassertion is deliberately left alone: 0.3ms against 50ms is 160x of headroom and it has never come close.After this merges
The
v0.1.0-beta.6tag points at e0bd99e, which does not contain this fix, and it published nothing — no release, no artifacts, no consumers. It needs to be moved to the post-merge commit for the cut to go out.https://claude.ai/code/session_01XBsriDsqoNQsMD1dgacF5p