Skip to content

ci(bundle-size): raise budgets for the urgent pending cue (#1899) - #1905

Closed
trueadm wants to merge 1 commit into
mainfrom
ci/budgets-transition-cue-ancestor
Closed

trueadm wants to merge 1 commit into
mainfrom
ci/budgets-transition-cue-ancestor

Conversation

@trueadm

@trueadm trueadm commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Budget-only raise for #1899. That PR is a #1864 follow-up: a pending cue renders at urgent priority, so a cue in an ancestor commits before the transition it announces. Per CONTRIBUTING.md ("Size budgets"), the raise lands on its own and merges immediately before #1899.

The values come from run-minimal.mjs --write-budgets and run.mjs --write-budgets octane-tsrx octane-jsx, measured on #1899 merged with main 87d9f95b4c. They are raise-only against main e14fbdf9ac's caps: each budget is the larger of the cap and measured + headroom, so nothing is lowered. e14fbdf9ac changed only budgets, so the measurement still matches the current runtime. node benchmarks/bundle-size/budget-raises.mjs --base origin/main reports 11 raises in a budget-only change.

Budget Old New Growth
suspense-transition raw 141,605 141,705 +100
binding-base-ui-vite raw / gzip 199,804 / 62,819 199,904 / 62,854 +100 / +35
binding-base-ui-esbuild raw / gzip 215,335 / 69,786 215,435 / 69,823 +100 / +37
binding-radix-vite raw 201,839 201,939 +100
binding-radix-esbuild raw 217,159 217,259 +100
binding-apollo-client-vite raw 342,256 342,356 +100
binding-apollo-client-esbuild raw 365,478 365,578 +100
bindings framework raw 341,255 341,355 +100
bindings total raw 688,893 688,993 +100

Measured growth on those rows: +100 raw, +15 to +37 gzip, −40 to +88 brotli. The rows not listed fit within their current 32-byte (gzip) or 256-byte (brotli) headroom. Applications that never start a transition are unchanged, including those that only read native signals. The new code lives in the optional transition root driver and in the three hooks that raise a cue.

Why the growth is worth it

#1899 closes the last same-class gap that #1888 left. When isPending lives in an ancestor of the component that holds the transition's state, the cue rendered that component's new state in the click's microtask flush. The browser could not paint the cue until the whole transition render had finished. Chromium Event Timing, Sort pattern with the cue in the ancestor, memoized 40 ms list, 5 clicks:

The cost is about 100 raw bytes, only in applications that start transitions.

Validation

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
JSON-only budget ceiling updates with no application or library code changes.

Overview
Raises bundle-size budget caps only in app-budgets.json and minimal-budgets.json so CI can pass after the pending-cue / urgent-transition work in #1899 lands. No runtime or benchmark harness code changes—just updated raw (and a few gzip) limits.

11 raise-only adjustments, mostly +100 raw on framework-related rows: bindings framework/total, suspense-transition, several UI binding fixtures (base-ui, radix, apollo vite/esbuild), plus small gzip bumps on base-ui vite/esbuild. Values were regenerated with the repo’s --write-budgets flow and are intended to merge immediately before #1899 per the size-budget workflow.

Reviewed by Cursor Bugbot for commit 12a659a. Bugbot is set up for automated code reviews on this repo. Configure here.

Budget-only raise for #1899 (#1864 follow-up: a pending cue renders at
urgent priority, so a cue in an ancestor commits before the transition it
announces). Measured with run-minimal.mjs and run.mjs --write-budgets on
#1899 merged with main 87d9f95, raise-only against main e14fbdf's
caps (the larger of the cap and measured + headroom), so nothing is lowered.

11 raises, all in applications that start transitions: +100 raw on
suspense-transition, binding-base-ui-*, binding-radix-*,
binding-apollo-client-* and the bindings app's framework and total, plus
binding-base-ui-vite/esbuild gzip +35/+37. Every other row fits within
its current headroom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline labels Oct 8, 2026
@trueadm
trueadm marked this pull request as ready for review October 8, 2026 15:03
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No budget breaches, no added work, and no timing changes beyond ±3%.

Compares e14fbdf9a, the merge commit's first parent with 23eb00e2d on the same runner. A byte value over its committed budget or any increase in a js-framework work counter fails this check. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 3.133 2.850 −3.3% −4.9% … +0.0% ⚪ within noise
octane-tsrx replace 6.608 6.350 −0.2% −8.9% … +3.3% ⚪ within noise
octane-tsrx add 2.850 2.958 ±0.0% −3.6% … +0.0% ⚪ within noise
octane-tsrx update 0.132 0.133 +3.4% +2.2% … +6.1% ⚪ within noise
octane-tsrx select 0.006 0.006 −2.3% −3.7% … +1.2% ⚪ within noise
octane-tsrx swap 0.036 0.035 +1.5% −0.6% … +5.1% ⚪ within noise
octane-tsrx remove 0.019 0.018 −1.3% −2.5% … +2.5% ⚪ within noise
octane-tsrx runlots 28.233 28.233 −0.6% −3.2% … +2.9% ⚪ within noise
octane-tsrx select_lots 0.007 0.008 +1.3% −1.5% … +2.6% ⚪ within noise
octane-tsrx clear 57.925 58.492 −0.6% −3.9% … +5.7% ⚪ within noise
octane-jsx run 4.683 5.117 +7.7% +2.1% … +19.8% ⚪ within noise
octane-jsx replace 9.458 8.692 −4.2% −12.4% … +11.6% ⚪ within noise
octane-jsx add 4.133 3.908 −0.0% −5.9% … +2.7% ⚪ within noise
octane-jsx update 0.280 0.277 −0.3% −2.6% … +2.2% ⚪ within noise
octane-jsx select 0.150 0.147 −2.8% −6.9% … +3.7% ⚪ within noise
octane-jsx swap 0.255 0.252 +0.0% −1.2% … +1.5% ⚪ within noise
octane-jsx remove 0.208 0.200 +0.5% −1.5% … +2.7% ⚪ within noise
octane-jsx runlots 36.192 36.350 −2.1% −6.2% … +3.0% ⚪ within noise
octane-jsx select_lots 1.863 1.933 +4.9% −3.7% … +9.2% ⚪ within noise
octane-jsx clear 62.292 60.383 −1.4% −8.1% … +5.4% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

No changes across 60 measured values.

Public-import reachability bundles (bytes)

No changes across 111 measured values.

@trueadm trueadm closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant