Repository navigation
ci: separate bundle size checks from runtime tests - #1889
Merged
domgan-oai merged 1 commit intoOct 8, 2026
Merged
domgan-oai merged 1 commit into
domgan-oai merged 1 commit into
Conversation
trueadm
marked this pull request as ready for review
October 8, 2026 12:26
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. |
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
The bundle-size gates now run in their own job (#1889), so the runtime shards no longer need the raised budgets to run. The raise lands through #1887. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 8, 2026
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
Main c0192ec (#1889, #1872, #1883, #1878 landing together) failed the new "bundle size checks" job: binding-base-ui-vite measures 62,351 gzip, so the downward ratchet requires its budget to drop from 62,384 to 62,383. run-minimal.mjs and run.mjs --write-budgets on that head change nothing else. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
…tion (#1864) (#1888) * fix(octane): commit the pending cue apart from its component's transition (#1864) When the component that raises isPending also held the transition's own update, both rendered together in the click's microtask flush: the cue showed the new state, and the browser could not paint "pending" until the whole transition render had finished. That is the canonical useTransition pattern (the docs' ProjectTabs example, the playground's Sort button). React renders isPending in an urgent lane with the previous state and the transition's update later, in a Scheduler task. A pending cue now never renders transition work that waits for the task. When a transition update flushes for a block already queued for its cue (flushTransitionActionBatch), or a cue arrives for a block whose transition is waiting (upgradeTransitionBlock), the block is queued in both places. The microtask drain renders only the cue (splitTransitionCue), at urgent priority over the block's committed cells, through the exposure an urgent ancestor already uses for a child with a queued transition, then leaves the block pending for the transition task. Suspense holds after the cue, useOptimistic, urgent updates during the wait (which still render the transition with them), flushSync, act(), unmount and controlled inputs keep their behavior. A split cue renders outside a View Transition and leaves addTransitionType types to the transition's render. beginUrgentTransitionRender no longer reverts a hook cell whose queue a render already consumed, which could flash a committed transition value back, and no longer allocates a slot index or predicate closure per call. An urgent ancestor that already rendered a split cue spares the block's own queue entry a second render. Chromium Event Timing on the Sort pattern (memoized 40 ms list, 5 clicks): main 5/5 slow clicks (40-80 ms); now 1/5 (first, cold), matching React 19.2.7. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: temporarily carry #1887's budgets so the test shards run Shard 1/4 fails its byte budgets until #1887 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 #1887. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(octane): keep committed plain cells out of a later split cue FLUSHED_TRANSITION_UPDATES is retained while any block waits for the transition task, so a block's already-rendered updates can still be listed when a later pending cue splits on that block. Hook cells were guarded by their consumed renderTransition, but plain cells (useDeferredValue's swap, useLinkedState) were reverted to their pre-transition base: the cue flashed the deferred value from before the swap. When a block that is not queued is scheduled at transition priority, a render has consumed every update retained for it, so queueTransitionBlock marks them rendered and the cue's committed-cell exposure skips them. A hold that takes the entries clears the mark, so hold and promotion behave as before. Reported by Cursor Bugbot on #1888. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: update the temporary #1887 budget carry for the plain-cell fix Reverted with fdb2de9 before merge; the raise lands through #1887. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(octane): a same-component Action cue now commits before its transition's capture #1872 pinned the old same-root order, where the Action cue and the explicit transition state in one component rendered together in the microtask flush and shared its native capture. The cue now renders apart from that state, as in the separate-root case: it commits without a capture, and the state is captured when its task renders it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: drop the temporary #1887 budget carry The bundle-size gates now run in their own job (#1889), so the runtime shards no longer need the raised budgets to run. The raise lands through #1887. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- 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
A bundle-size regression currently fails test shard 1 before its runtime tests execute, and makes the aggregate
test (24)check fail even when runtime behavior is correct. Move the existing size and reachability gates to a dedicated reusableBundle sizeworkflow, invoked as its own CI job.Why
Runtime correctness and production bundle growth need separate results. A size failure should retain its own failing check while the runtime suite runs to completion.
Changes
test (24)dependencies, but require its success inCI provenance, preserving the publishing gate. Release merges must inherit complete parent provenance, and generated release PRs receive the separate bundle check alongside their existing metadata checks.Validation
node --test scripts/bundle-size-workflow.test.mjs benchmarks/bundle-size/budget-raises.test.mjs.git diff --checkpass.perf-review: not applicable; no runtime, compiler, binding, or budget changes.e29e8150bis green: CI and benchmark report. The newbundle size / bundle size checksjob and all runtime/browser/parity/static/package lanes passed independently.pnpm syncwas attempted but stops at the unavailabletypescript-native/package.json; broader bundle-gate unit tests also lack local esbuild. The pinned CI toolchain supplied the complete validation above; no generated tracked changes were left behind.Risk / follow-ups
When adopting this split, make
bundle size / bundle size checksrequired alongsidelint,typecheck, andtest (24). This PR's CI verified that exact emitted check name. Repository protection settings are not changed by this PR. The existing comparative PR benchmark report remains intact.Provenance
agent-authored)Codex task · host com-79386
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
CI workflow and documentation only; bundle gates and publishing requirements are preserved via provenance, with no runtime or compiler changes.
Overview
Moves production bundle size enforcement out of the runtime test shards into a dedicated reusable workflow so byte regressions fail their own check without blocking Vitest.
A new
bundle_sizejob calls.github/workflows/bundle-size.yml, which runs the existing budget ratchets, hydration-free reachability builds, and the “budget raises land alone” policy (previously on test shard1/4and in lint). Runtime shards no longer use specialfetch-depthor bundle steps.CI provenance, lightweight-change inheritance, and Changesets release-merge authentication now treat
bundle size / bundle size checksas required coverage alongsidetest (24). Generated release PRs get a synthetic passing bundle check with lint and typecheck.CONTRIBUTING.mddocuments the separate check for branch protection.Workflow contracts move into
scripts/bundle-size-workflow.test.mjs(wired intoci:workflow:test); overlapping assertions are removed fromscripts/ci-workflow.test.mjs.Reviewed by Cursor Bugbot for commit e29e815. Bugbot is set up for automated code reviews on this repo. Configure here.