Skip to content

ci: enforce recovered signal-free application bundle budgets - #1153

Merged
domgan-oai merged 7 commits into
octanejs:mainfrom
openai-oss-forks:codex/ci-signal-free-bundle-budgets-20260919
Sep 19, 2026
Merged

domgan-oai merged 7 commits into
octanejs:mainfrom
openai-oss-forks:codex/ci-signal-free-bundle-budgets-20260919

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

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 --budgets to 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.
  • Focused production gate: static local 24,574 gzip, hooks 28,579, Context 35,477; all raw/gzip/Brotli ceilings pass.
  • Both renderer-free behavior builds still pass their always-enforced budgets.
  • Escaped generic root executes returned scalar rendering, compiled rendering, and cleanup; its broader runtime is retained.
  • Ignoring enforcement is rejected, and an actual production CLI build fails under a deliberately lowered raw ceiling.
  • The complete Activity bundle/codegen audit passes, including its distinct descriptor output contract; restoring the incorrect oracle routing fails the new regression.
  • Strict TSRX typecheck of both static-root fixtures, scoped formatting, and 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 fd83cb8081e833738e53fa3ec154e49a5702e5eb includes live main 47d5d1df25ffe65a126d4593a2a457820b160efd (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 sync and diff checks. All 204 source hashes are stable; incoming runtime.server.ts is 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

  • An agent produced this diff (agent-authored)

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
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, and context via node benchmarks/bundle-size/run-minimal.mjs --budgets …, alongside the existing always-on behavior-root check.

Introduces minimal-gates.mjs (--budgets scenario selection + byte enforcement) and wires it into run-minimal.mjs: default runs still emit budget targets for the ratio suite; --budgets fails the run on overrun. root-static-local holds the former same-file compiled static-root fixture and inherits the old root-static ceiling; root-static now models an escaped generic root (exported factory, scalar + component render, unmount) with updated oracles and ratio notes. Activity bundle audits share bundle-scenarios.mjs and give root-descriptor its own oracle instead of reusing root-static.

Docs, minimal-budgets.json, baselines/ratios.json, minimal-gates.test.mjs, and ci-workflow.test.mjs reflect the extra scenario and CI step; scoped-signals void-root coverage points at root-static-local.

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

@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 Sep 19, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

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
domgan-oai marked this pull request as ready for review September 19, 2026 18:59
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.

1 participant