Skip to content

ci(bench): raise app byte budgets for the superseded pending arm fix - #1711

Merged
trueadm merged 3 commits into
mainfrom
ci/budget-superseded-arm
Oct 4, 2026
Merged

trueadm merged 3 commits into
mainfrom
ci/budget-superseded-arm

Conversation

@trueadm

@trueadm trueadm commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Budget-only raise for #1702 (fix(octane): keep a replaced sibling when a pending branch arm is superseded), which fixes #1698. Merge this first, then #1702. 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 keyed child inside @try disappears when a pending update is superseded. Render A, then B with a pending promise, then A again: the outer label shows A but the keyed child is gone. The cause is in how @if/@switch arms are tracked. An arm that suspends before inserting anything remembered a node that belongs to its sibling as its starting point. A keyed sibling's replacement is placed right after that node, or the node is removed outright. A later update that drops the arm then deleted the sibling's new content. A retry also bounded its content from a detached node, so stale content outlived the arm. #1702 makes that kind of arm keep no starting point: it reads one from its insertion anchor whenever it renders. A retry that inserts content and then suspends again now owns that content, as a first mount already did.

Why it cannot be smaller. The fix adds one helper with a try/catch shared by the first mount and the retry. The client mount path's catch logic moved into that helper, which offsets part of the cost. It also adds a precise journal bound, so a root rollback snapshots only the arm's own empty range, not every sibling node in front of it. The hydration path is unchanged. The PR benchmark reports all 64 js-framework work counters unchanged, so nothing new runs per operation. The only growth is in the branch-slot code that an app reaches once it uses @if/@switch. Minimal reachability budgets and the rows app are not breached.

Bytes. Each affected app's framework chunk grows by 206 raw bytes. Gzip grows by 17 to 91 bytes, depending on the app.

Each new budget is #1702's measured bytes on its head da7c31d (merged with main c16fe6d, which includes #1709), plus the usual headroom: 32 raw and gzip. #1709 already raised these raw budgets about 31 bytes past measured + 32, to make room for #1696's growth. This PR keeps that reservation on top, so #1696 and #1702 can land in either order. Only the 16 breached metrics are raised. chat.framework.brotli fits within #1709's value and is left alone.

file budget old new Δ
app-budgets.json todo.framework.raw 136,094 136,300 +206
app-budgets.json todo.framework.gzip 44,160 44,241 +81
app-budgets.json todo.total.raw 141,204 141,410 +206
app-budgets.json todo.total.gzip 46,637 46,718 +81
app-budgets.json chat.framework.raw 133,671 133,877 +206
app-budgets.json chat.framework.gzip 43,595 43,663 +68
app-budgets.json chat.total.raw 140,324 140,530 +206
app-budgets.json chat.total.gzip 46,574 46,642 +68
app-budgets.json weather.framework.raw 150,621 150,827 +206
app-budgets.json weather.framework.gzip 48,979 49,074 +95
app-budgets.json weather.total.raw 177,300 177,506 +206
app-budgets.json weather.total.gzip 58,013 58,109 +96
app-budgets.json bindings.framework.raw 364,094 364,328 +234
app-budgets.json bindings.framework.gzip 119,178 119,230 +52
app-budgets.json bindings.total.raw 720,015 720,249 +234
app-budgets.json bindings.total.gzip 240,903 240,943 +40

Validation

  • pnpm format:check (not run; pnpm format:files:check benchmarks/bundle-size/app-budgets.json passes)
  • pnpm typecheck (not applicable: budget JSON only)
  • pnpm test (not applicable: budget JSON only)
  • targeted: node benchmarks/bundle-size/budget-raises.mjs --base origin/main reports "16 raise(s) in a budget-only change". The measured values come from fix(octane): keep a replaced sibling when a pending branch arm is superseded #1702's CI shard 1 (run.mjs --budgets octane-tsrx octane-jsx) and its benchmark report on the same head.

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 CI bundle size thresholds in JSON; no runtime, auth, or application code changes.

Overview
Raises framework and total size limits in app-budgets.json for the todo, chat, weather, and bindings benchmark apps so CI can pass once the superseded pending @if/@switch arm fix lands (#1702).

Each affected app’s framework raw budget goes up by 206 bytes; gzip rises by 17–91 bytes depending on the app. Total raw/gzip limits move in lockstep with the framework bump. Brotli and app chunk budgets are unchanged in this diff.

This is a budget-only change meant to merge before the runtime fix, per the repo’s size-budget workflow (budget-raises.mjs).

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

Budget-only raise for #1702, which fixes #1698. Each raised value is the
measured production bytes on #1702's head f028149 (merged with main
77504c1) plus the usual headroom: 32 raw and gzip, 256 brotli. Only
the 17 breached values move.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 4, 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 4, 2026 3:49pm UTC
octane-website-mcp Skipped Skipped Oct 4, 2026 3:49pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 4, 2026 15:49 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website October 4, 2026 15:49 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 4, 2026
@trueadm
trueadm marked this pull request as ready for review October 4, 2026 15:49
@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🟡 js-framework: 1 timed operation(s) slower beyond ±3%

Compares 78ec8326a, the merge commit's first parent with 3231fe02a 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

target operation base ms head ms head/base 95% CI
octane-tsrx select_lots 0.006 0.006 +6.6% +5.7% … +8.4% 🟡 slower
All 20 timed operations (19 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.850 2.883 ±0.0% −3.4% … +3.2% ⚪ within noise
octane-tsrx replace 5.200 5.250 +1.9% −1.9% … +3.5% ⚪ within noise
octane-tsrx add 2.333 2.367 +0.0% ±0.0% … +4.2% ⚪ within noise
octane-tsrx update 0.120 0.123 −0.6% −1.3% … +1.9% ⚪ within noise
octane-tsrx select 0.005 0.005 −0.3% −1.3% … +0.5% ⚪ within noise
octane-tsrx swap 0.037 0.035 +0.3% −0.7% … +0.7% ⚪ within noise
octane-tsrx remove 0.017 0.017 −1.5% −2.3% … −0.4% ⚪ within noise
octane-tsrx runlots 24.917 25.242 −0.6% −3.4% … +3.0% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 +6.6% +5.7% … +8.4% 🟡 slower
octane-tsrx clear 38.958 39.233 +1.6% −1.4% … +4.2% ⚪ within noise
octane-jsx run 3.342 3.450 ±0.0% −2.4% … +4.7% ⚪ within noise
octane-jsx replace 6.167 6.042 −1.5% −2.3% … +1.6% ⚪ within noise
octane-jsx add 3.358 3.425 ±0.0% −2.9% … +3.1% ⚪ within noise
octane-jsx update 0.245 0.231 −0.8% −2.1% … ±0.0% ⚪ within noise
octane-jsx select 0.120 0.119 −0.8% −1.6% … −0.5% ⚪ within noise
octane-jsx swap 0.234 0.229 −1.3% −3.1% … +0.8% ⚪ within noise
octane-jsx remove 0.176 0.175 −1.6% −3.0% … +0.0% ⚪ within noise
octane-jsx runlots 29.133 28.092 −2.0% −4.2% … +1.4% ⚪ within noise
octane-jsx select_lots 1.406 1.443 +1.2% +0.3% … +3.5% ⚪ within noise
octane-jsx clear 44.658 45.750 −0.2% −1.7% … +1.9% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx bindings_js_gzip 240,871 240,859 −12 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 205,103 205,092 −11 (−0.0%) 🟢
octane-tsrx bindings_app_gzip 121,728 121,716 −12 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,740 101,729 −11 (−0.0%) 🟢

50 other measured values are unchanged.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

trueadm and others added 2 commits October 4, 2026 18:12
# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
Main took #1709, which raised the same app budgets for #1696. Re-measure
#1702 on its head da7c31d (merged with main c16fe6d), and keep
#1709's reservation for #1696 on top of measured + 32, so the two fixes
can land in either order. chat.framework.brotli no longer needs a raise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit 773a069 into main Oct 4, 2026
31 checks passed
@trueadm
trueadm deleted the ci/budget-superseded-arm branch October 4, 2026 17:50
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.

Keyed child disappears after a pending update is superseded

1 participant