Skip to content

ci(bundle-size): re-land budgets for in-place Block signal owners - #1865

Closed
trueadm wants to merge 2 commits into
mainfrom
ci/hydration-block-entry-budget-reland
Closed

trueadm wants to merge 2 commits into
mainfrom
ci/hydration-block-entry-budget-reland

Conversation

@trueadm

@trueadm trueadm commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This re-lands the budgets for #1857 (in-place Block signal owners). #1858 raised them ahead of that PR. They were ratcheted back to main in 96c4096, because the unfilled raises failed main's own downward ratchet while #1857 stayed open. Merge this immediately before #1857. Between the two merges, main pushes enforce the ratchet against these values again.

It changes only the three budget files. Every value is what run.mjs --write-budgets and run-minimal.mjs --write-budgets measure on #1857 merged with main 96c4096: measured + 32 for raw and gzip, measured + 256 for brotli. With these files, #1857's budget step passes exactly, so it needs no budget change of its own.

  • 61 raises:

    bundles raw gzip
    signal-free apps (rows, todo, chat, weather) and most minimal roots +151 to +168 +37 to +58
    bundles that can reach the signal capability (bindings, rows-jsx, root-static, hydrate-frame, Base UI, Radix and Apollo bindings) +255 to +312 +70 to +115
  • 5 brotli lowerings the change shrinks: todo framework (−3) and total (−2), root-chained-jsx (−18), root-callback-local (−34) and binding-base-ui-esbuild (−9).

Why the growth is worth it

Measured in #1857 on app-frame-hydration, which hydrates about 1,650 signal-enabled Blocks. Samples are paired with main in the same Chromium, 50 pairs, at 4× CPU throttle:

scenario cold hydration, head/base [95% CI] warm hydration, head/base [95% CI]
frame (leaf signal reads) 0.982 [0.969–0.996] 0.961 [0.951–0.975]
frame-live-sections (section-level reads) 0.965 [0.962–0.978] 0.971 [0.966–0.979]

renderBlock entries fall from two to one per render, and runWithSignalOwner calls from 1,798 to 95 per hydration. Hydration allocates 161 KB less. Bundles that never enable signals gain no speed, and pay about +155 raw / +37 gzip. #1858 gives the byte breakdown.

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 CI threshold updates with no product code; main risk is merge ordering relative to #1857.

Overview
Re-lands bundle size budget ceilings in app-budgets.json, jsx-budgets.json, and minimal-budgets.json so CI can accept the framework growth from the upcoming in-place Block signal-owner work (#1857). Intended to merge immediately before that PR so main’s downward ratchet does not fail while #1857 stays open.

61 budget increases (mostly raw +151–312 and gzip +37–115 on framework/total rows across sample apps, JSX, minimal roots, and signal-capable binding bundles). Five brotli values drop slightly where measured size shrank (todo, root-chained-jsx, root-callback-local, etc.). Values match run.mjs / run-minimal.mjs --write-budgets on #1857 merged with current main, with the repo’s usual headroom (+32 raw/gzip, +256 brotli).

No runtime or framework source changes—only committed budget JSON.

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

#1858's raises were ratcheted back to main in 96c4096 until #1857 is
ready. Re-land them, measured on #1857 merged with that main: 61 raises
(signal-free apps about +155 raw / +37 gzip, signal-capable bundles up to
+312 raw / +115 gzip) and 5 brotli lowerings the change shrinks. Merge
immediately before #1857.

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 7, 2026
@github-actions
github-actions Bot marked this pull request as draft October 7, 2026 21:02
…ration-block-entry-budget-reland

# Conflicts:
#	benchmarks/bundle-size/minimal-budgets.json
@trueadm

trueadm commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by 31724a3 on main, which re-landed the same budgets (61 raises and 4 brotli lowerings measured on b6c040c). This branch's budget files are identical to main's, so there is nothing left to merge. I checked that main's code passes run-minimal.mjs --budgets --ratchet and run.mjs --budgets --ratchet octane-tsrx octane-jsx with these values.

@trueadm trueadm closed this Oct 7, 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