Repository navigation
ci(bundle-size): raise budgets for the transition task flush (#1873) - #1874
Merged
Merged
Conversation
Budget-only raise for #1873 (#1864 step 2), which renders transition-priority work in a posted host task. Every budget moves to #1873's measured bytes + 32. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 of 6 tasks
trueadm
marked this pull request as ready for review
October 8, 2026 00:06
8 of 19 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 111 measured values. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website | eff04c2 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 12:21 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
octane-website-mcp | eff04c2 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 12:23 AM |
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
Shard 1/4 fails its byte budgets until #1874 merges, and fail-fast then cancels shards 2-4. This commit only lets those shards report; it is reverted before merge, and the raise lands through #1874. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
The test shards reported on a17a35a (all four passed with identical code). The raise lands through #1874, which merges immediately before this PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
* fix(octane): render transition-priority work in a later task (#1864) Transition renders were flushed on a microtask, like urgent ones, so every ready continuation paid for its own render and commit inside one microtask checkpoint. A hundred synchronous useActionState dispatches committed 101 times where React 19 commits twice, and the browser could neither paint nor deliver input until the last one finished (#1864, step 2, G1). Transition renders scheduled outside a render or flush now wait in a TRANSITION_QUEUE for a host task of their own (postHostTask), as React renders a transition lane in a Scheduler task. That covers startTransition updates, Action results, transitions started after an await, and the updates of the async-Action window. The microtask flush never drains the queue; the task, flushSync and act() do. An urgent update to a waiting block moves it onto the microtask flush, and the pending cues (useTransition and useActionState raising isPending, useOptimistic showing a value) keep the microtask flush so they commit before the work they announce. A transition's pending-count release waits for the task's flush (afterTransitionFlush), and its retained FLUSHED_TRANSITION_UPDATES survive an urgent flush that runs first, so a suspending transition still holds. Work scheduled while the task (or the useDeferredValue swap task) runs joins its own flush, and a view-transition-wrapped Suspense resume adopts the queue. The task path is a driver installed with the first transition, so applications that never start one keep the old scheduler shape. The island activation gate now uses the shared postHostTask. differences-from-react.md §Actions and §Scheduler, the website's Forms section, and the transition-hooks benchmark harness (which now waits for the host task) describe the new timing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(octane): commit waiting transitions before a controlled-input restore maybeFlushDiscrete decided between the view-transition flush and flushSync from QUEUE alone, so a transition-only controlled input (onInput calling startTransition) waiting for its task fell to flushSync and skipped startViewTransition. Adopt the waiting transitions first, as before #1864 step 2. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(octane): adopt waiting transitions only in a resume that drains them wrapResume adopted the transition queue before it knew whether it would drain: on the paths that wait for an in-flight view transition or fall back to an unwrapped resume, that retired the posted task and released the transition's follow-ups (isPending's falling edge, form resets) before its render. Owners now include the waiting blocks without adopting them; only the urgent-sibling drain and the vtFlush update callback adopt, and the other paths leave the queue to its own task. Also move the website a11y baseline's /docs/core-apis table selector from nth-child(204) to nth-child(205): the new Forms paragraph shifts that table. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: temporarily carry #1874's budgets so the test shards run Shard 1/4 fails its byte budgets until #1874 merges, and fail-fast then cancels shards 2-4. This commit only lets those shards report; it is reverted before merge, and the raise lands through #1874. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(remix-router): commit the revalidation's loading state across a task Router updates are transitions, which now commit in a later task (#1864), so a synchronous revalidation loader coalesced "loading" and "idle" into one render and the boundary never saw the loading -> idle edge it resets on, as under React's Scheduler. Keep the loader pending across tasks so the loading state commits, and assert the caught error persists until the revalidation completes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Revert "ci: temporarily carry #1874's budgets so the test shards run" The test shards reported on a17a35a (all four passed with identical code). The raise lands through #1874, which merges immediately before this PR. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(octane): move an upgraded block out of the transition queue upgradeTransitionBlock copied a waiting block onto QUEUE but left it in TRANSITION_QUEUE. Once that render committed, the stale entry was adopted with a null pendingMode, so the task's flush no longer looked all-transition and lost its ViewTransition wrap, and the transition's follow-ups (isPending's falling edge) stayed on a task with nothing left to do. Splice the block out, and when the queue empties, retire the task so the follow-ups run after the microtask flush that now renders the work. The change shrinks brotli for suspense-transition and the bindings app, so their budgets ratchet down with --write-budgets (lowerings only). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
4 of 5 tasks
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 #1873 (#1864 step 2, G1: transition-priority renders flush in a posted host task). Per
CONTRIBUTING.md("Size budgets"), it lands on its own. Every budget in the three files moves to #1873's measured bytes + 32, written with--write-budgetson #1873's head (merged withmain40fdefd):cli-spa-starter,root-*,hooks-state,context,hydrate-*, …)suspense-transition, base-ui, radix, apollo-client)run.mjsframework gzipbudget-raises.mjs --base origin/main: 83 raises in a budget-only change. Brotli values that did not move stay as they are.Why the growth is worth it
#1873 coalesces a backlog of ready Action results and transitions into one render in a later task:
useActionStatedispatches now give 2 commits, where they gave 101; React gives 2.The task path is a driver installed with the first transition. Apps that never start one carry only the checks in
scheduleRender,flushSync,flushWorkand the controlled-input restore, about 189 raw bytes. js-framework call and DOM-mutation counters are identical.Merge order
Merge this immediately before #1873, ideally in the same minute. While this is on
mainwithout #1873, every other pull request (andmainitself, after another push) fails the shard 1/4 ratchet, because these budgets sit about 190 to 1,040 bytes abovemain's measurement. #1873's own shard 1/4 failsproduction … bytes exceed committed budgetuntil this lands. If #1873 is delayed after this merges, revert this PR rather than lowering budgets by hand.Validation
node benchmarks/bundle-size/budget-raises.mjs --base origin/main: 83 raises in a budget-only change.run-minimal.mjs --write-budgetsandrun.mjs --write-budgets octane-tsrx octane-jsxon fix(octane): render transition-priority work in a later task #1873's head.pnpm test/pnpm typecheck/pnpm format:check: JSON-only change, left to CI.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
JSON-only CI threshold updates with no runtime or application code changes.
Overview
Raises committed bundle-size ceilings in
app-budgets.json,jsx-budgets.json, andminimal-budgets.jsonso CI matches measured output from the upcoming transition–task flush work (#1873). Values were regenerated with--write-budgets(measured bytes + 32); 83 budget entries move up, mostly on framework raw/gzip (and brotli where it changed).Growth is uneven: apps that never start a transition gain roughly +189 raw bytes; transition-heavy fixtures (
suspense-transition, base-ui, radix, apollo-client, etc.) gain about +1k raw and +380–450 gzip. Octane app framework budgets inapp-budgets.jsonrise in the same band.This is a budget-only PR meant to merge immediately before #1873; until that lands,
mainand other PRs can fail the bundle-size ratchet because limits sit above currentmainmeasurements.Reviewed by Cursor Bugbot for commit eff04c2. Bugbot is set up for automated code reviews on this repo. Configure here.