Skip to content

ci(bench): raise weather for #1818 and ratchet deferred-hydration on main - #1819

Merged
trueadm merged 1 commit into
mainfrom
ci/budgets-method-dep-receiver
Oct 6, 2026
Merged

trueadm merged 1 commit into
mainfrom
ci/budgets-method-dep-receiver

Conversation

@trueadm

@trueadm trueadm commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A budget-only change for #1818 that also unblocks main.

Budget Old New Measured Reason
app-budgets.json weather framework raw 132,546 132,761 132,729 #1818
app-budgets.json weather framework gzip 42,262 42,381 42,349 #1818
app-budgets.json weather total raw 154,697 154,915 154,883 #1818
app-budgets.json weather total gzip 50,131 50,253 50,221 #1818
minimal-budgets.json deferred-hydration raw 230,898 230,880 230,848 ratchet on main
minimal-budgets.json deferred-hydration gzip 72,349 72,342 72,310 ratchet on main

New 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.

__methodDep now tracks an own arrow function by identity, because an arrow cannot see this, and any other method by its receiver, as React Compiler does. Telling an arrow from a method needs the function's source text: one Function.prototype.toString call 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

main at f6c20384d0 measures deferred-hydration at 230,848 raw / 72,310 gzip. #1771's downward ratchet therefore fails test shard 1/4 on main and on every pull request based on it:

REACHABILITY FAIL: deferred-hydration: ratchet raw budget 230898 to 230880

Lowering is allowed anywhere; it rides here so one merge clears both.

Merge order

Merge this first, then #1818 right after (I'll merge main into it). Until #1818 lands, the raised weather caps sit above main's measured + 32, so another feature PR that merges main in between would fail the weather ratchet.

Validation

  • pnpm format:check — JSON-only change
  • pnpm typecheck — not applicable
  • pnpm test — not run locally; CI shard 1/4 runs the budget gates
  • targeted: node benchmarks/bundle-size/run.mjs --budgets octane-tsrx on 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 on 92735cc045 the values in the note. run-minimal.mjs --write-budgets deferred-hydration gave 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/main reports 4 raise(s) in a budget-only change

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 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.json so 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.json to match current main measurements 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.

…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
trueadm marked this pull request as ready for review October 6, 2026 13:48
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
octane-website Skipped Skipped Oct 6, 2026 1:49pm UTC
octane-website-mcp Skipped Skipped Oct 6, 2026 1:49pm UTC

Request Review

@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 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Benchmark report

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

Compares f6c20384d, the merge commit's first parent with f33b870fd 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 3.258 3.167 ±0.0% −9.3% … +3.6% ⚪ within noise
octane-tsrx replace 9.125 9.125 ±0.0% −9.8% … +9.3% ⚪ within noise
octane-tsrx add 3.192 3.050 −3.5% −7.0% … +0.0% ⚪ within noise
octane-tsrx update 0.164 0.150 −1.5% −4.5% … +1.1% ⚪ within noise
octane-tsrx select 0.007 0.007 −0.8% −8.3% … +1.7% ⚪ within noise
octane-tsrx swap 0.044 0.042 −0.7% −2.7% … +0.7% ⚪ within noise
octane-tsrx remove 0.023 0.024 +1.5% −3.9% … +7.4% ⚪ within noise
octane-tsrx runlots 30.608 31.150 −0.9% −4.4% … +5.3% ⚪ within noise
octane-tsrx select_lots 0.007 0.007 −0.5% −1.2% … +0.0% ⚪ within noise
octane-tsrx clear 54.925 54.725 +1.9% −3.6% … +5.4% ⚪ within noise
octane-jsx run 4.750 4.933 +0.8% −6.8% … +12.4% ⚪ within noise
octane-jsx replace 9.433 8.992 +1.4% −4.8% … +5.5% ⚪ within noise
octane-jsx add 3.633 3.667 ±0.0% −0.0% … +2.9% ⚪ within noise
octane-jsx update 0.268 0.269 ±0.0% −0.8% … +1.7% ⚪ within noise
octane-jsx select 0.147 0.148 +0.3% −0.5% … +1.6% ⚪ within noise
octane-jsx swap 0.250 0.246 −0.6% −2.6% … +0.6% ⚪ within noise
octane-jsx remove 0.193 0.201 +0.3% −0.3% … +1.6% ⚪ within noise
octane-jsx runlots 32.383 33.900 +0.6% −2.0% … +2.9% ⚪ within noise
octane-jsx select_lots 1.639 1.664 −0.0% −1.2% … +2.2% ⚪ within noise
octane-jsx clear 51.667 53.842 +2.5% −0.3% … +5.1% ⚪ 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 105 measured values.

@trueadm
trueadm merged commit 014d87b into main Oct 6, 2026
38 of 57 checks passed
@trueadm
trueadm deleted the ci/budgets-method-dep-receiver branch October 6, 2026 14:12

This branch was previously deployed

2 inactive deployments
Preview – octane-website — 862eece9 Deployed Oct 6, 2026 by vercel[bot]
Preview – octane-website-mcp — 862eece9 Deployed Oct 6, 2026 by vercel[bot]
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.

Inferred hook dependencies miss changes to a shared own-method receiver

1 participant