Repository navigation
ci(bundle-size): raise the deferred-hydration gzip budget for #1861 - #1869
Merged
Merged
Conversation
Budget-only raise, landing ahead of #1861 per CONTRIBUTING "Size budgets". main 43b60d9 measures deferred-hydration at exactly its 69,610 gzip budget (#1857 and #1859 filled the headroom). #1861 stops development hydration reporting an empty style attribute that an early binding left behind, and measures 69,612 gzip there (-14 raw, +2 gzip). 69,642 is main's measured + 32, the highest value the ratchet accepts against main, so no other pull request fails the ratchet while #1861 is open. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 7, 2026 21:55
3 of 6 tasks
Contributor
Benchmark report🟢 No budget breaches, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
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. |
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.
Summary
Budget-only raise for #1861. Per
CONTRIBUTING.md("Size budgets"), it lands on its own. One value changes:minimal-budgets.json:deferred-hydration.gzipMeasured on
main43b60d9 withnode benchmarks/bundle-size/run-minimal.mjs:deferred-hydrationraw / gzip / brotlimain43b60d9mainmainalready sits exactly on this budget, after #1857 and #1859, so #1861's +2 gzip breaches it. 69,642 ismain's measured gzip + 32, the highest value the ratchet still accepts againstmain. No other pull request starts failing the ratchet while #1861 is open, unlike a raise to #1861's measured + 32 (69,644).Why the growth is worth it
#1861 stops development hydration reporting a false mismatch for an empty
style=""that an early binding (adoptBindings) left behind. The binding leaves it when it publishes a single style declaration as unset, for examplestyle={{ opacity: props.opacity }}with no opacity. React's contract warns only on a genuine server/client difference, and an early binding's claimed publication counts as the server's value.The fix is −14 raw / +2 gzip / +5 brotli here. I tried 30 spellings to find a gzip-neutral one; the best reached 69,611, still 1 byte over. The raw budget and the other hydration rows (
hydrate-root,hydrate-frame) fit as they are.Validation
node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports 1 raise in a budget-only change.BUDGET_BASE=origin/main node benchmarks/bundle-size/run-minimal.mjs --budgets --ratchet deferred-hydrationpasses on this branch.pnpm syncleaves the tree clean.pnpm format:check(JSON only;pnpm format:files:checkon the file passes)pnpm typecheck(no source change)pnpm test(left to CI)Risk / follow-ups
deferred-hydration: production gzip bytes 69612 exceed committed budget 69610until it lands.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Single JSON budget value update with no application or security impact.
Overview
CI-only change: raises the committed
deferred-hydrationgzip byte budget inminimal-budgets.jsonfrom 69,610 to 69,642 so the bundle-size ratchet still passes after the hydration fix in #1861.No runtime or library code changes—only the budget threshold moves. The bump matches
main’s measured gzip plus the ratchet slack (#1861 adds ~2 gzip bytes on that scenario); merge order is this PR before #1861 so CI does not fail on the old limit.Reviewed by Cursor Bugbot for commit df38a10. Bugbot is set up for automated code reviews on this repo. Configure here.