Repository navigation
ci(bench): raise weather for #1818 and ratchet deferred-hydration on main - #1819
Merged
Merged
Conversation
…main - weather framework (raw 132,546 -> 132,761, gzip 42,262 -> 42,381) and total (raw 154,697 -> 154,915, gzip 50,131 -> 50,253): #1818 makes inferred method-call dependencies track the receiver of a shared own method (#1788). `__methodDep` now reads an own function's source text to tell an arrow, which cannot see `this`, from a method; the weather app ships that helper. Measured: framework 132,729 raw / 42,349 gzip, total 154,883 raw / 50,221 gzip. Brotli and app budgets still fit. - deferred-hydration (raw 230,898 -> 230,880, gzip 72,349 -> 72,342): main measures 230,848 raw / 72,310 gzip, so #1771's downward ratchet fails test shard 1/4 on main and on every pull request based on it. Values are measured + 32. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 6, 2026 13:48
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
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 105 measured values. |
Merged
5 of 8 tasks
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
A budget-only change for #1818 that also unblocks
main.app-budgets.jsonweather framework rawapp-budgets.jsonweather framework gzipapp-budgets.jsonweather total rawapp-budgets.jsonweather total gzipminimal-budgets.jsondeferred-hydration rawmainminimal-budgets.jsondeferred-hydration gzipmainNew values are measured + 32. Weather brotli and the weather app budgets still fit and are unchanged.
After this PR opened, #1818 added a fallback for a throwing method probe (
92735cc045, review feedback). Its head now measures weather framework 132,749 raw / 42,352 gzip and total 154,903 / 50,224. That is still under every new cap, with 12 or more bytes of headroom, so the values above stand.Why the weather raise is worth it
#1818 fixes #1788. Inferred hook dependencies, and signal and
use()captures, compared an own method by its function identity. When two objects share one own method, swapping the receiver kept that identity, so an inferred effect stayed subscribed to the old object and an inferred memo showed stale data.__methodDepnow tracks an own arrow function by identity, because an arrow cannot seethis, and any other method by its receiver, as React Compiler does. Telling an arrow from a method needs the function's source text: oneFunction.prototype.toStringcall plus an anchored regex. The weather app ships the helper.#1818 cut that growth from +286 to +215 raw bytes by dropping two speed shortcuts. A correct check still exceeds the 32-byte headroom.
Why deferred-hydration goes down
mainatf6c20384d0measuresdeferred-hydrationat 230,848 raw / 72,310 gzip. #1771's downward ratchet therefore fails test shard 1/4 onmainand on every pull request based on it:Lowering is allowed anywhere; it rides here so one merge clears both.
Merge order
Merge this first, then #1818 right after (I'll merge
maininto it). Until #1818 lands, the raised weather caps sit abovemain's measured + 32, so another feature PR that mergesmainin between would fail the weather ratchet.Validation
pnpm format:check— JSON-only changepnpm typecheck— not applicablepnpm test— not run locally; CI shard 1/4 runs the budget gatesnode benchmarks/bundle-size/run.mjs --budgets octane-tsrxon fix(octane): track the receiver of a shared own method in inferred dependencies #1818's merged head (527c9a4dc2, Node 24.18) gave the weather values above, and on92735cc045the values in the note.run-minimal.mjs --write-budgets deferred-hydrationgave 230,848 / 72,310 / 62,273. Its raw ceiling, 230,880, matches CI's ratchet message exactly.node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports4 raise(s) in a budget-only changeProvenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
JSON threshold updates for bundle-size gates only; no production code or security-sensitive paths.
Overview
Bundle-size CI budgets only — no runtime or framework code changes.
Raises the weather framework/total raw and gzip caps in
app-budgets.jsonso CI can pass ahead of #1818’s measured +32-byte headroom (brotli and weather app budgets stay the same).Lowers deferred-hydration raw/gzip ceilings in
minimal-budgets.jsonto match currentmainmeasurements and fix the downward ratchet failure blocking shard 1/4.Reviewed by Cursor Bugbot for commit 862eece. Bugbot is set up for automated code reviews on this repo. Configure here.