Repository navigation
ci(bench): raise app byte budgets for the superseded pending arm fix - #1711
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
trueadm
marked this pull request as ready for review
October 4, 2026 15:49
2 of 5 tasks
Contributor
Benchmark report
Compares js-framework: 1k/10k row operations
All 20 timed operations (19 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
50 other measured values are unchanged. Public-import reachability bundles (bytes)No changes across 105 measured values. |
This was referenced Oct 4, 2026
Merged
# 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]>
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
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.mjsenforces that.Why the bytes are worth it. On main, a keyed child inside
@trydisappears 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/@switcharms 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.brotlifits within #1709's value and is left alone.app-budgets.jsontodo.framework.rawapp-budgets.jsontodo.framework.gzipapp-budgets.jsontodo.total.rawapp-budgets.jsontodo.total.gzipapp-budgets.jsonchat.framework.rawapp-budgets.jsonchat.framework.gzipapp-budgets.jsonchat.total.rawapp-budgets.jsonchat.total.gzipapp-budgets.jsonweather.framework.rawapp-budgets.jsonweather.framework.gzipapp-budgets.jsonweather.total.rawapp-budgets.jsonweather.total.gzipapp-budgets.jsonbindings.framework.rawapp-budgets.jsonbindings.framework.gzipapp-budgets.jsonbindings.total.rawapp-budgets.jsonbindings.total.gzipValidation
pnpm format:check(not run;pnpm format:files:check benchmarks/bundle-size/app-budgets.jsonpasses)pnpm typecheck(not applicable: budget JSON only)pnpm test(not applicable: budget JSON only)node benchmarks/bundle-size/budget-raises.mjs --base origin/mainreports "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
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 CI bundle size thresholds in JSON; no runtime, auth, or application code changes.
Overview
Raises framework and total size limits in
app-budgets.jsonfor the todo, chat, weather, and bindings benchmark apps so CI can pass once the superseded pending@if/@switcharm fix lands (#1702).Each affected app’s framework
rawbudget goes up by 206 bytes; gzip rises by 17–91 bytes depending on the app. Totalraw/gziplimits 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.