Skip to content

ci(bundle-size): raise the deferred-hydration gzip budget for #1861 - #1869

Merged
domgan-oai merged 1 commit into
mainfrom
ci/deferred-hydration-gzip-budget
Oct 7, 2026
Merged

domgan-oai merged 1 commit into
mainfrom
ci/deferred-hydration-gzip-budget

Conversation

@trueadm

@trueadm trueadm commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Budget-only raise for #1861. Per CONTRIBUTING.md ("Size budgets"), it lands on its own. One value changes:

budget before after
minimal-budgets.json: deferred-hydration.gzip 69,610 69,642

Measured on main 43b60d9 with node benchmarks/bundle-size/run-minimal.mjs:

deferred-hydration raw / gzip / brotli
main 43b60d9 221,144 / 69,610 / 60,040
#1861 head merged with that main 221,130 / 69,612 / 60,045

main already sits exactly on this budget, after #1857 and #1859, so #1861's +2 gzip breaches it. 69,642 is main's measured gzip + 32, the highest value the ratchet still accepts against main. 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 example style={{ 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/main reports 1 raise in a budget-only change.
  • BUDGET_BASE=origin/main node benchmarks/bundle-size/run-minimal.mjs --budgets --ratchet deferred-hydration passes on this branch.
  • pnpm sync leaves the tree clean.
  • pnpm format:check (JSON only; pnpm format:files:check on the file passes)
  • pnpm typecheck (no source change)
  • pnpm test (left to CI)

Risk / follow-ups

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
Single JSON budget value update with no application or security impact.

Overview
CI-only change: raises the committed deferred-hydration gzip byte budget in minimal-budgets.json from 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.

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]>
@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
@trueadm
trueadm marked this pull request as ready for review October 7, 2026 21:55
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Benchmark report

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

Compares 43b60d94f, the merge commit's first parent with f234caa5c 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 2.950 2.825 ±0.0% −3.0% … ±0.0% ⚪ within noise
octane-tsrx replace 8.092 8.283 −1.2% −6.9% … +5.3% ⚪ within noise
octane-tsrx add 2.517 2.492 ±0.0% −3.6% … ±0.0% ⚪ within noise
octane-tsrx update 0.139 0.146 +0.9% −5.7% … +4.4% ⚪ within noise
octane-tsrx select 0.007 0.007 −3.5% −7.9% … +2.1% ⚪ within noise
octane-tsrx swap 0.039 0.039 +3.3% −7.2% … +5.5% ⚪ within noise
octane-tsrx remove 0.019 0.019 +2.5% −2.9% … +8.2% ⚪ within noise
octane-tsrx runlots 28.883 27.608 −1.4% −9.0% … +7.1% ⚪ within noise
octane-tsrx select_lots 0.007 0.006 −0.5% −2.4% … +0.5% ⚪ within noise
octane-tsrx clear 52.792 51.775 +0.4% −5.6% … +2.9% ⚪ within noise
octane-jsx run 4.242 4.250 ±0.0% −5.0% … +5.6% ⚪ within noise
octane-jsx replace 7.650 7.283 −1.4% −9.1% … +2.8% ⚪ within noise
octane-jsx add 3.350 3.283 ±0.0% −2.9% … +3.1% ⚪ within noise
octane-jsx update 0.262 0.261 +0.7% −1.0% … +3.1% ⚪ within noise
octane-jsx select 0.134 0.132 −0.3% −2.0% … +1.0% ⚪ within noise
octane-jsx swap 0.217 0.217 +0.3% −1.4% … +2.6% ⚪ within noise
octane-jsx remove 0.173 0.168 −0.7% −2.4% … +0.3% ⚪ within noise
octane-jsx runlots 30.842 30.983 −0.4% −3.8% … +4.2% ⚪ within noise
octane-jsx select_lots 1.756 1.732 −4.1% −7.7% … +1.2% ⚪ within noise
octane-jsx clear 59.892 58.975 −1.0% −4.7% … +7.0% ⚪ 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.

@domgan-oai
domgan-oai merged commit 772295e into main Oct 7, 2026
45 of 49 checks passed
@domgan-oai
domgan-oai deleted the ci/deferred-hydration-gzip-budget branch October 7, 2026 22:12
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.

2 participants