Repository navigation
ci: enforce recovered signal-free application bundle budgets - #1153
Merged
domgan-oai merged 7 commits intoSep 19, 2026
Merged
domgan-oai merged 7 commits into
domgan-oai merged 7 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 0af63f3. Configure here.
domgan-oai
marked this pull request as ready for review
September 19, 2026 18:59
This was referenced Sep 19, 2026
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
Enforce the existing raw, gzip, and Brotli ceilings for recovered same-file static-root, hooks, and local Context consumers in full PR/main CI. Add
--budgetsto the existing executable reachability runner; report mode and the always-enforced renderer-free behavior budgets retain their behavior.Restore the generic-root fixture's intended public contract through an exported root factory and returned scalar rendering. Keep its previous same-file compiled control as
root-static-local, with the original static-root ceiling and the existing compiler-specialization guard. The generic API no longer disappears from its own measurement.Refs #1130 (bundle reachability and regression gates).
Validation
pnpm ci:workflow:test: 221 passing after the runtime main refresh, including CLI selection, all three byte ceilings, pipeline wiring, and existing compiled-consumer controls.pnpm sync.Risk / follow-ups
Every existing ceiling remains unchanged. The additional local-root control preserves the original static ceiling. Generic roots, hydration, and SSR remain in the wider weekly/manual ratio suite; some exceed historical budgets and remain unresolved. This focused gate protects recovered consumers and does not claim those broader regressions are fixed. No framework runtime or compiler source changes are included.
Previous main95 validation is historical: the owning matrices, scoped types and native browser checks passed on unchanged client/compiler source. Earlier run links describe that predecessor, not the newly refreshed head.
Current base and CI
Signed normal merge
fd83cb8081e833738e53fa3ec154e49a5702e5ebincludes live main47d5d1df25ffe65a126d4593a2a457820b160efd(landed SSR Frame and split Context fixes #1152/#1160). Both the incoming SSR guard and this PR’s own guard list are preserved without duplicates. Refreshed local checks pass: 64 public cases, 227 actual workflow guards, scoped package formatting, changesets,pnpm syncand diff checks. All 204 source hashes are stable; incomingruntime.server.tsis exactly main47d5, and this PR’s existing client/compiler patch is unchanged. No new byte or CPU claim is made by this merge. Full current-head CI run 35468428919 passes (26 successful jobs). Current-head Bugbot passes; no unresolved review threads.The two incoming server/test paths also passed scoped types. An additional standalone typed program including unchanged Activity fixtures reported 22 fixture diagnostics on main-identical inputs; those unrelated fixtures were not modified. The previous unchanged-head run required one failed-job retry: the Input OTP arrow-selection case initially failed, while the same source case passed in matched #1152 and in the retry (778.469ms). No source, test, assertion, timeout or retry configuration changed; its cause is unproven. All 26 predecessor jobs ultimately passed.
On this current main47 head, the first heavy job timed out in the WebKit read-only cached-history case before trusted interaction. The exact-main47 control passed the same case (1364ms), and this unchanged-head failed-job retry passed it (1443ms) and all38 heavy cases. All281 matched runtime/plugin/harness inputs are identical; the own CI delta affects only the Node budget lane. No source, assertion, timeout or retry configuration changed; the cause remains unproven.
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Changes are limited to benchmark fixtures, CI gates, and test harness wiring—no runtime or compiler source edits. Risk is mainly misconfigured budgets or scenario selection blocking merges.
Overview
Adds a focused PR/main CI gate (test shard 1/4) that enforces committed raw/gzip/brotli ceilings for
root-static-local,hooks-state, andcontextvianode benchmarks/bundle-size/run-minimal.mjs --budgets …, alongside the existing always-onbehavior-rootcheck.Introduces
minimal-gates.mjs(--budgetsscenario selection + byte enforcement) and wires it intorun-minimal.mjs: default runs still emit budget targets for the ratio suite;--budgetsfails the run on overrun.root-static-localholds the former same-file compiled static-root fixture and inherits the oldroot-staticceiling;root-staticnow models an escaped generic root (exported factory, scalar + component render, unmount) with updated oracles and ratio notes. Activity bundle audits sharebundle-scenarios.mjsand giveroot-descriptorits own oracle instead of reusingroot-static.Docs,
minimal-budgets.json,baselines/ratios.json,minimal-gates.test.mjs, andci-workflow.test.mjsreflect the extra scenario and CI step; scoped-signals void-root coverage points atroot-static-local.Reviewed by Cursor Bugbot for commit fd83cb8. Bugbot is set up for automated code reviews on this repo. Configure here.