Repository navigation
fix(ci): stabilize Control UI startup gzip ratchet - #130688
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 2:09 AM ET / 06:09 UTC. ClawSweeper reviewWhat this changesThe PR separates Control UI startup gzip growth tolerance from a 64-byte build-variance allowance and reports the resulting enforcement limit. Merge readinessNo blocking correctness finding. The previous rank-up move is satisfied: the 64 B variance allowance is separately reported, boundary-tested, and the supplied exact-head release gate exercised it; this member-authored draft remains for explicit maintainer acceptance of the intentional CI-threshold relaxation. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI build produces compressed startup-asset metrics, then a repository script compares them with the committed baseline and budget before CI accepts the build. Its report and pass/fail result feed the UI build and release gate. flowchart LR
A[Control UI build] --> B[Compressed startup metrics]
C[Committed baseline] --> D[Budget evaluator]
E[Startup budget] --> D
B --> D
D --> F[Growth and variance limits]
F --> G[Performance report]
F --> H[Release gate]
Decision needed
Why: The code and evidence establish the bounded behavior, but accepting a looser release-gate threshold is an operator policy choice rather than a mechanical correctness question. Before merge
Agent review detailsSecurityNone. PR surfaceTests +59, Other +32. Total +91 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical limit resolver, preserve separate growth-versus-variance reporting, and merge only after a maintainer explicitly accepts the narrowly bounded 64 B CI allowance. Do we have a high-confidence way to reproduce the issue? Yes. The supplied exact-head hosted release-gate record observed the unstable boundary, and focused owner tests now reproduce the combined pass/fail enforcement limits. Is this the best way to solve the issue? Yes. A single resolver supplies both evaluation and report limits; an unnamed larger tolerance would blur product growth with build variance and reintroduce divergent calculations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9f266edd0f0a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review Exact-head release-gate evidence is now recorded in the PR body. Attempt 1 exercised the adjusted gzip gate successfully; the single unrelated sidebar E2E failure passed on one failed-job-only retry, and attempt 2 finished with |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Another reproduction while validating the configured-channel JSON inventory repair: a local macOS build at 6dd819026cbf measured 343,445 B against the 343,442 B limit (342,930 B baseline + 512 B tolerance), failing by 3 B. That patch changes no UI source, Vite configuration, dependency input, or size limit. Its 88 focused tests, changed gates, and independent review pass; the full build reaches the UI performance check after the runtime and SDK phases succeed. I left that PR in draft behind this owned repair rather than duplicating it or relaxing the guard. |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where unrelated pull requests could fail the Control UI startup gzip ratchet when identical source builds varied by a few dozen compressed bytes.
The observed hosted failure measured 343,463 B against a 343,442 B limit, while equivalent builds from the same source measured as low as 343,426 B. Same-head measurements varied by up to 38 B.
Why This Change Was Made
This keeps the existing 512 B product-growth allowance unchanged and adds a separately named 64 B build-variance allowance. The check now calculates and reports the committed baseline cap, growth limit, variance allowance, and final enforcement limit independently.
The baseline JSON, Control UI source, Vite configuration, workflows, and compression behavior are unchanged.
User Impact
Maintainers get a stable startup-size gate that still blocks meaningful product growth while tolerating the measured compression variance. There is no user-visible UI change.
AI-assisted: yes.
Evidence
node scripts/run-vitest.mjs test/scripts/control-ui-performance.test.ts: 17/17 passedpnpm ui:build: passed; startup JS measured 343,408 B, with growth limit 343,442 B and enforcement limit 343,506 Bchecks-ui-e2e (5/12)sidebar shard, with 91/92 tests passing;openclaw/ci-gatefailed derivativelyopenclaw/ci-gate, with no new failuresnode_modules/.bin/oxfmt --check scripts/check-control-ui-performance.mts test/scripts/control-ui-performance.test.ts: passednode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts/check-control-ui-performance.mts: passedpnpm tsgo:scripts: passedpnpm tsgo:test:root: passedgit diff --check: passed