Repository navigation
ci(bench): raise hydrate byte budgets for #1753 - #1754
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
2 of 5 tasks
trueadm
marked this pull request as ready for review
October 5, 2026 10:59
This branch was previously deployed
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
This PR only raises byte budgets. It makes room for #1753, which fixes a hydration crash when server HTML loses a range's closing
<!--]-->. Some HTML minifiers and proxies strip comments, and the crash throwsCannot read properties of null (reading 'nodeType')and empties the root.Merge this PR first, then merge main into #1753. CONTRIBUTING "Size budgets" keeps a raise out of the change that needs it, and
budget-raises.mjsenforces that.Why
Why the bytes are worth it. On main, one missing closing comment fails the whole root with an uncaught error and an empty container. A Suspense arm that finishes hydrating after the root commits fails with nothing left to recover it. #1753 makes the nearest Suspense or
<Hydrate>boundary around the damaged range, or else the root, render on the client and report one recoverable error (#338).Why it cannot be smaller.
cli-spa-starter,root-staticandsuspense-transitionare byte-identical to main.isAdoptionControland cost every client bundle 74 raw bytes.NativeAdoptionMiss, which every boundary and hydration owner already handles.Changes
Measured with
node benchmarks/bundle-size/run-minimal.mjs, Node 24, on #1753 merged with main bda419a:hydrate-rootraw / gzip / brotlideferred-hydrationraw / gzip / brotliEach new budget is #1753's measured bytes plus the usual 32 raw and gzip. Only breached metrics are raised; both brotli budgets still hold, so they are unchanged.
minimal-budgets.jsonhydrate-root.rawminimal-budgets.jsonhydrate-root.gzipminimal-budgets.jsondeferred-hydration.rawminimal-budgets.jsondeferred-hydration.gzipNo app or JSX budget changes: none of those apps hydrate, and #1753 adds nothing to client-only bundles.
Validation
pnpm format:check: budget JSON only.pnpm typecheck: not applicable.pnpm test: not applicable.run-minimal.mjson main and on fix(octane): recover when server HTML loses a hydration range's closing marker #1753 merged with main, as above.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Only updates benchmark budget thresholds in JSON; no runtime or library code changes.
Overview
Raises minimal bundle-size budgets in
minimal-budgets.jsonso CI can pass after the hydration recovery work in #1753 lands.hydrate-root:raw173,820 → 174,157,gzip55,190 → 55,276 (brotli unchanged).deferred-hydration:raw237,328 → 237,666,gzip75,032 → 75,159 (brotli unchanged). No other scenarios or metrics in this diff.Reviewed by Cursor Bugbot for commit 0c46e3e. Bugbot is set up for automated code reviews on this repo. Configure here.