Skip to content

test(tui): give the explorer frame budget room for a slow runner - #417

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/explorer-frame-budget-headroom
Aug 21, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/explorer-frame-budget-headroom

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

holding_arrows_in_a_large_tree_stays_on_a_frame_budget blocked the beta.6 release twice — 539.0ms and 522.3ms against a 500ms budget — so Build and Publish GitHub prerelease were skipped and no artifacts shipped.

This is not a regression

Measured the same test on both trees, three runs each, same machine:

tree 30 down+draw steps
v0.1.0-beta.4 (last successful release) 80.8 / 81.2 / 81.1 ms
main @ e0bd99e 83.5 / 83.1 / 84.2 ms

~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.yml verifies on blacksmith-4vcpu-ubuntu-2404, well below CI's runner — and CI's own Test and format passed 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_ms assertion 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.6 tag 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

`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
github-actions Bot enabled auto-merge (squash) August 21, 2026 16:00
@github-actions
github-actions Bot merged commit 40ca854 into main Aug 21, 2026
7 of 8 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant