Skip to content

ci(bench): raise the suspense-transition raw budget for the signal update-depth fix - #1756

Merged
trueadm merged 1 commit into
mainfrom
ci/signal-update-depth-budget
Oct 5, 2026
Merged

trueadm merged 1 commit into
mainfrom
ci/signal-update-depth-budget

Conversation

@trueadm

@trueadm trueadm commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This raises one byte budget for #1755, fix(octane): bound render loops driven by a component's own signals, and changes nothing else. Merge this first, then merge main into #1755. CONTRIBUTING "Size budgets" keeps a raise out of the change that needs it, and budget-raises.mjs enforces that.

Why the bytes are worth it. On main, a component-local derived$ or query$ that captures a value created on every render, and whose result never compares equal, re-renders its readers on every accepted render. Those renders were never counted by the nested-update guard, so outside act() the page froze with no error (the residual hazard behind #1735, #1736 and #1737). #1755 counts a signal notification delivered during a flush against the flush's nested-update budget, so the cycle fails with "Maximum update depth exceeded" in production too.

Why it cannot be smaller. The production cost is one argument at the single scheduleRender call in scheduleNativeRead, one optional parameter, and one n|| in the existing nested-update condition. The development hint is stripped from production. #1755 also rewrites holdsNativeRead(...) === true as !!holdsNativeRead(...) in the same function, which is equivalent because the method returns a boolean, and saves 3 bytes. That brings the net cost to +4 raw.

Bytes. These are production bytes from run-minimal.mjs, on Node 24.18. The main column is main e3da909. The head column is #1755 rebased on that main. The new budget is the head measurement plus the usual 32 raw. Only the breached metric is raised.

file budget old main measured head measured new Δ budget
minimal-budgets.json suspense-transition.raw 165,472 165,469 165,473 165,505 +33
  • suspense-transition grows +4 raw. Main had 3 raw bytes of headroom left. Its gzip (53,133) and brotli (46,563) stay within budget.

  • Other scenarios that reach scheduleNativeRead:

    scenario raw gzip budget
    hooks-state 89,456 → 89,460 29,715 → 29,727 holds
    hydrate-root 174,125 → 174,129 55,244 → 55,254 holds
    deferred-hydration 237,634 → 237,639 n/a holds
  • App and JSX sets: run.mjs --budgets octane-tsrx octane-jsx on fix(octane): bound render loops driven by a component's own signals #1755's head breaches nothing.

Validation

  • pnpm format:check: not run. The diff changes one numeric value in a JSON file, and its formatting is unchanged.
  • pnpm typecheck: not applicable, budget data only.
  • pnpm test: not applicable, budget data only.
  • targeted:

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
Only updates a numeric CI bundle budget in JSON; no runtime or application code changes.

Overview
Raises the suspense-transition raw bundle size budget in minimal-budgets.json from 165,472 to 165,505 (+33). Gzip and brotli limits for that scenario are unchanged.

This is a budget-only change so the follow-up fix in #1755 (bounding render loops from component-local signals) can land without mixing a size raise into the runtime diff, per the repo’s size-budget workflow (budget-raises.mjs).

Reviewed by Cursor Bugbot for commit d3329f1. Bugbot is set up for automated code reviews on this repo. Configure here.

… depth

The signal update-depth fix adds 4 raw bytes to suspense-transition, which
had 3 raw bytes of headroom on main. Raise raw to the fix's measured bytes
plus the usual 32; gzip and brotli hold.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 5, 2026 11:08 Inactive
@vercel

vercel Bot commented Oct 5, 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 5, 2026 11:08am UTC
octane-website-mcp Skipped Skipped Oct 5, 2026 11:08am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website October 5, 2026 11:08 Inactive
@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 5, 2026
@trueadm
trueadm marked this pull request as ready for review October 5, 2026 11:08
@trueadm
trueadm merged commit 71d4070 into main Oct 5, 2026
42 of 52 checks passed
@trueadm
trueadm deleted the ci/signal-update-depth-budget branch October 5, 2026 11:15

This branch was previously deployed

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

1 participant