Repository navigation
feat(ci): ratchet the Control UI startup JS budget against a committed baseline - #112880
Merged
Merged
Conversation
…d baseline The startup JS gzip gate was a fixed ceiling that main drifted to within 1-3 KiB of, forcing repeated hand-bumps (315->317 KiB) and failing feature PRs on drift they did not cause (#112649 burned two CI rounds). check-control-ui-performance.mjs now also enforces a committed baseline (config/control-ui-startup-budget-baseline.json) with a 512 B tolerance: regressions beyond baseline+tolerance fail with an actionable message, intentional increases become a reviewed one-line diff via --update-baseline --reason, meaningfully lighter builds print a lower-the-baseline hint, and a malformed/missing baseline fails closed. The fixed ceiling stays as the cumulative-creep backstop. Closes #112743.
steipete
marked this pull request as ready for review
July 23, 2026 04:05
Contributor
Author
|
Merged via squash.
|
steipete
added a commit
that referenced
this pull request
Jul 23, 2026
…ytes All four QA Smoke profiles fail on main since the #112880 ratchet landed: startup JS gzip ~323,326-323,342 B vs baseline 322,526 + 512 B tolerance. The overage comes from UI commits that landed after the baseline was captured (#112859 #112866 #112853 #111861). Local macOS builds measure ~322,535 B; Linux CI is ~800 B larger, so the baseline must track the CI measurement (max observed across profiles, run 29980596056).
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…d baseline (openclaw#112880) The startup JS gzip gate was a fixed ceiling that main drifted to within 1-3 KiB of, forcing repeated hand-bumps (315->317 KiB) and failing feature PRs on drift they did not cause (openclaw#112649 burned two CI rounds). check-control-ui-performance.mjs now also enforces a committed baseline (config/control-ui-startup-budget-baseline.json) with a 512 B tolerance: regressions beyond baseline+tolerance fail with an actionable message, intentional increases become a reviewed one-line diff via --update-baseline --reason, meaningfully lighter builds print a lower-the-baseline hint, and a malformed/missing baseline fails closed. The fixed ceiling stays as the cumulative-creep backstop. Closes openclaw#112743.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…ytes All four QA Smoke profiles fail on main since the openclaw#112880 ratchet landed: startup JS gzip ~323,326-323,342 B vs baseline 322,526 + 512 B tolerance. The overage comes from UI commits that landed after the baseline was captured (openclaw#112859 openclaw#112866 openclaw#112853 openclaw#111861). Local macOS builds measure ~322,535 B; Linux CI is ~800 B larger, so the baseline must track the CI measurement (max observed across profiles, run 29980596056).
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.
What Problem This Solves
Closes #112743. The Control UI startup JS gzip gate is a fixed ceiling that main keeps drifting to within 1–3 KiB of, so the ceiling gets hand-bumped repeatedly (315→317 KiB in the constant's own comment trail) and feature PRs fail all four QA Smoke profiles on main-side drift they didn't cause — #112649 lost two full CI rounds to exactly this.
Why This Change Was Made
scripts/check-control-ui-performance.mjsnow enforces ratchet semantics alongside the ceiling, mirroring the max-lines ratchet's philosophy:config/control-ui-startup-budget-baseline.json, exact bytes + reason + date) with a 512 B tolerance: exceeding baseline+tolerance fails with a message that names actual/baseline/tolerance and the exact command to intentionally raise it.--update-baseline --reason "<why>"rewrites the baseline from current dist metrics, making intentional increases a reviewed one-line diff instead of a silent constant bump.User Impact
CI-only. Feature PRs stop failing on budget noise; real startup regressions still block; budget increases become visible, attributable decisions.
Evidence
test/scripts/control-ui-performance.test.ts: 11 tests covering within-tolerance pass, over-tolerance fail, over-ceiling fail regardless of baseline, lighter-build hint, malformed-baseline fail-closed, and--update-baselinewriting exact bytes.pnpm check:script-declarationscontract sync green (242 contracts); targeted lint/format clean; Codex autoreview clean (0.94).