Skip to content

perf(build): reduce disk use in UI performance checks - #146687

Merged
steipete merged 2 commits into
mainfrom
codex/perf-sep12-ui-archive-low-compression
Sep 13, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/perf-sep12-ui-archive-low-compression

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

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 -1 compression-level argument.

Why This Change Was Made

Use Git's supported tar.gz output 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 contract

Evidence

A fresh isolated Linux comparison on source cfa36be3e3658e98090d502d1d34282face1aaf1 used 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.

Archive operation Raw B1 Level-1 C1 Level-1 C2 Raw B2
Wall time, seconds 1.368 4.244 4.170 1.391
User CPU, seconds 1.126 4.124 4.106 1.142
System CPU, seconds 0.240 0.120 0.064 0.248
Kernel peak RSS, bytes 219,910,144 220,069,888 220,065,792 219,914,240
Sampled process-tree peak RSS, bytes 216,776,704 218,767,360 220,106,752 216,059,904

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.

  • Both compressed archives decoded to the complete raw TAR hash, including metadata and padding. All 43,803 extracted members passed content, mode, timestamp, and symlink checks.
  • The complete existing real-Vite test passed, including distinct base/candidate workspace values. Two temporary proof-only controls also verified Git-filter failure, malformed-gzip rejection, and cleanup; no test overlay enters the PR.
  • Actual pnpm ui:check-performance:base passed, verified 902 sidecars, and removed its temporary base. All 25 supervised children and the lease closed. Delegated run

Installed formatting and git diff --check passed without changing the measured candidate bytes. Fresh managed Codex review through P2 found no actionable findings. Exact-head hosted CI passed on de0fa41a3a12924888e3fecde0c63ca14598a6b9, including the required CI gate, type/lint checks, real Gateway E2E, and Control UI performance checks. Passing CI run

The 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.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 03:16
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 9:04 AM ET / 13:04 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: de0fa41a3a12924888e3fecde0c63ca14598a6b9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct optimization with quantified real behavior evidence and successful production comparison coverage.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied Linux archive measurements and content verification exercise the changed archive path, while the actual comparison command passed on the pinned head. The cancelled delegated workflow is not counted as a pass, and its blocked raw-log download does not invalidate the separate evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied Linux archive measurements and content verification exercise the changed archive path, while the actual comparison command passed on the pinned head. The cancelled delegated workflow is not counted as a pass, and its blocked raw-log download does not invalidate the separate evidence.
Evidence reviewed 10 items Verified introduced change: The pinned delta changes only the archive filename, Git archive format and compression level, and matching tar extraction flag. Error propagation, dependency mapping, comparison builds, and finally-based cleanup remain intact.
Still necessary on current main: Fetched main still creates source.tar with --format=tar and extracts it with -xf; it does not contain this optimization.
Latest release comparison: The file at the supplied v2026.9.4 release commit also uses an uncompressed TAR archive.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 3 0
Total 1 3 3 0

Review metrics

Metric Value Why it matters
Measured archive tradeoff 406 MiB less disk; 2.779–2.875 seconds more wall time The recorded Linux comparison quantifies the disk benefit and CPU/time cost without claiming a whole-gate speedup or lower memory usage.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a bounded development and CI disk-use optimization with no product runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The supplied Linux archive measurements and content verification exercise the changed archive path, while the actual comparison command passed on the pinned head. The cancelled delegated workflow is not counted as a pass, and its blocked raw-log download does not invalidate the separate evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied Linux archive measurements and content verification exercise the changed archive path, while the actual comparison command passed on the pinned head. The cancelled delegated workflow is not counted as a pass, and its blocked raw-log download does not invalidate the separate evidence.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-13T03:23:49.747Z sha ba77e1e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T11:40:04.484Z sha de0fa41 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 0a7b7fe into main Sep 13, 2026
94 checks passed
@steipete
steipete deleted the codex/perf-sep12-ui-archive-low-compression branch September 13, 2026 13:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant