Repository navigation
perf(build): reduce disk use in UI performance checks - #146687
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 9:04 AM ET / 13:04 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Control UI performance check uses a lightly compressed temporary source archive to reduce disk usage during validation. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, narrowly scoped optimization absent from current main and the latest release. No actionable correctness or security findings remain, and the recorded behavior proof supports the change. Priority: P3 Review scores
Verification
How this fits togetherThe performance check builds the candidate and a selected base revision using the same installed toolchain, then compares UI asset sizes. This change affects the temporary archive used to prepare the base build. flowchart TD
A[Selected base revision] --> B[Create compressed archive]
B --> C[Extract temporary source tree]
C --> D[Build base and candidate]
E[Installed toolchain] --> D
D --> F[Check asset budgets]
F --> G[Remove temporary source]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther 0. Total 0 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the existing comparison owner and use level-1 gzip for its disposable archive, preserving source fidelity, budget enforcement, and cleanup. Do we have a high-confidence way to reproduce the issue? Not applicable as a functional bug: current source confirms the uncompressed temporary archive, and the supplied measurements quantify its disk cost. Is this the best way to solve the issue? Yes. Changing the archive format within the existing owner is a narrow solution, and Git documents the selected compression argument; source selection and downstream validation remain unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 818a9c7be097. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* temp/pr-137049: (110 commits) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) ...
* commit '0ac8a700e43efceef73d92fe8e50b185819e38ad': (27 commits) test(acpx): prove targeted turn cancellation (#137049) fix(ci): honor realtime meeting live-test opt-in (#147044) improve: reduce heartbeat enrollment work for large fleets (#147055) fix(gateway): install despite stale Linux session bus addresses (#146569) chore(i18n): refresh native locales (#147025) fix: avoid Gateway reinstalls when macOS service inspection is inconclusive (#146880) fix(pairing): QR setup rejects trusted-proxy gateways without a shared secret (#147036) fix(update): bound activation and accept slow Windows identity reads (#147019) perf(accounts): avoid materializing avatars for owner checks (#147032) improve(status): report external and ArrayBuffer memory (#141902) fix(update): preserve linked plugins during post-core sync (#147009) fix(channels): keep replies working after hot config reloads (#147001) refactor(gateway): defer worker transcript runtime loading (#143495) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) ... # Conflicts: # src/config/sessions/session-accessor.sqlite-reclamation-memory.test.ts
What Problem This Solves
Control UI source-comparison checks keep a full uncompressed archive beside its extracted tree, increasing temporary disk pressure during local and CI validation.
User Impact
No product UI or runtime behavior changes. The check uses less temporary disk space, at the cost of additional compression time and CPU. Configured Git archive filters remain selected by Git and must support its documented
-1compression-level argument.Why This Change Was Made
Use Git's supported
tar.gzoutput at level 1 and the matching tar extraction flag. Full-tree selection, archived workspace dependency mapping, build identity, compression checks, budgets, and cleanup remain unchanged. Level 1 favors lower CPU cost for this disposable source archive. Git's filter contractEvidence
A fresh isolated Linux comparison on source
cfa36be3e3658e98090d502d1d34282face1aaf1used Git 2.52.0, Node 24.19.0, and Vite 8.2.2. Raw archive allocation was 601,387,008 bytes; level-1 archive allocation was 175,669,248 bytes, saving 425,717,760 bytes (406 MiB).The one verified extracted tree used 672,432,128 allocated bytes. Observed compressed-archive-plus-tree allocation was 848,101,376 bytes, versus 1,273,819,136 bytes reconstructed from the raw archive and that same verified tree. This is not a measured baseline extraction or whole-volume peak.
Compression added 2.875/2.779 seconds wall and 2.998/2.964 seconds user CPU in the two comparison directions; both RSS measures also increased. No memory reduction or whole-gate speedup is claimed. These are this candidate's own controls; earlier default-compression measurements are not pooled.
pnpm ui:check-performance:basepassed, verified 902 sidecars, and removed its temporary base. All 25 supervised children and the lease closed. Delegated runInstalled formatting and
git diff --checkpassed without changing the measured candidate bytes. Fresh managed Codex review through P2 found no actionable findings. Exact-head hosted CI passed onde0fa41a3a12924888e3fecde0c63ca14598a6b9, including the required CI gate, type/lint checks, real Gateway E2E, and Control UI performance checks. Passing CI runThe old full production gate was not run because of disk constraints. This proof covers Linux/GNU tar and task-isolated Git configuration; it does not claim execution of arbitrary operator filters or a macOS comparison.