Skip to content

perf(test): skip unused browser proof preparation - #188685

Merged
steipete merged 3 commits into
mainfrom
solid2/w-test-ci-minutes-2-followup-1030
Oct 30, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-test-ci-minutes-2-followup-1030

Conversation

@steipete

@steipete steipete commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem and change

Routine UI CI paid for unused proof captures, repeated Chromium starts, and a real-Gateway import graph belonging to a skipped opt-in case. This test-only follow-up completes #188673: gate composer-height PNG/geometry exports on the existing proof flag; borrow the existing Chromium with fresh contexts for four ordinary creator cases; lazy-load the opt-in real-Gateway imports; remove five unused creator/saved-attempt captures while explicitly retaining scrolling, font/visibility and layout preparation.

All scenarios, viewport cells, assertions and the opt-in authority test remain. No production, workflow, runner, shard, timeout, retry, dependency or budget changes. Test/support LOC: 950 → 947 (+55/−58). Combined with #188673: 6,169 → 6,195 (+158/−132); production unchanged.

Proof and measured result

Final head 8bdcd028477872fb1a9b55fa7e7770a809d63a9f passed full CI 41134985714: three UI unit rows, six browser rows, browser-extension row and two real-Gateway rows. ci:full was set while draft, before ready. The first PR's opening event selected only part of UI; this run supplies cumulative full proof.

Check Result
UI typecheck, changed-file formatting, diff check Passed
Independent full-context Codex review No actionable P0–P2 findings; feature patch unchanged by conflict-free main integration
Test-line ratchet Passed without a baseline/allocation increase
Frozen install after main integration Passed
Full UI and real-Gateway CI All 12 rows passed, including Logs and quiet-automation assertions
Local proof limit No local E2E battery or repeat suite; opt-in two-Gateway creator case remains opt-in

Comparable 11 UI jobs: 121.13 → 107.58 runner minutes (−11.2%, unpaired). All 12 final rows, including the extension row without a comparable full-plan baseline, used 112.48 minutes. UI unit rows: 20.60 → 18.27 minutes (−11.3%). These are job elapsed minutes excluding pre-start queueing, not rounded invoice units. They are observations, not a claim that every second was caused by this patch.

Baseline: successful jobs from eight of the latest ten October 30 scheduled main runs (two endpoints returned 502), plus recent green PR UI samples. No recent wholly green scheduled main run was available. Unit comparisons use recent PR medians because main uses Node and PRs use Bun. Other rows use successful scheduled-main per-job medians. Full collection details are in #188673. Runs: 41115244650, 41107007551, 41098750962, 41090206598, 41080670581, 41071928241, 41063477930, 41047999021.

UI job Before median (min) Final CI (min) Test step before → after (s)
checks-ui (1/3) 8.17 6.75 323.0 → 322
checks-ui (2/3) 6.07 6.13 269.0 → 294
checks-ui (3/3) 6.37 5.38 282.0 → 252
checks-ui-e2e (1/7) 10.97 12.13 568.0 → 560
checks-ui-e2e (2/7) 10.44 10.58 560.5 → 551
checks-ui-e2e (3/7) 12.40 8.95 674.0 → 455
checks-ui-e2e (4/7) 12.58 10.42 579.5 → 545
checks-ui-e2e (5/7) 12.11 9.92 608.5 → 527
checks-ui-e2e (6/7) 12.58 10.82 673.0 → 581
checks-ui-e2e (7/7) No comparable sample 4.90 — → 194
checks-ui-e2e-real-gateway (1/2) 16.73 12.47 823.0 → 589
checks-ui-e2e-real-gateway (2/2) 12.72 14.03 550.0 → 680

The slowest final UI job was real-Gateway 2/2: 842s, so the 660s target remains unmet by 182s. Its test step was 680s versus a 550s historical median; this patch does not change that shard's fixture owners. Browser 1/7 was 728s. No timing regression is hidden in the aggregate.

Build/performance/Android were not selected by this test-only change; no skipped time is counted as savings. Baseline medians remain: shared build 14.83min; UI performance 2.36min; Android ktlint 9.73, play 11.39, third-party 11.95, wear 10.01, access4096 11.85, access16384 11.50min. Android screenshots are release-only.

Attribution and retained coverage

The checkpoint inventory added 104 UI tests, including 39 E2E cases. Test execution dominated cost; the production UI build was already shared. Redirecting real-Gateway jobs through the larger public artifact producer would extend the serial prefix and still require private-QA preparation, so no speculative build/shard change is included.

Prior-head CI observed creator collection fall from 19.039s to 0.321s after removing its unused import graph; composer execution 40.430s to 35.029s and saved-attempt navigation 16.134s to 9.211s. Those are unpaired supporting observations from 41126070412, not final-head isolated benchmarks. Distinct scrolling, mobile-motion, theme and lifecycle contracts remain; no further deletion met the audit bar.

Earlier attempts are preserved as failed/cancelled evidence. The test-line cap failure was repaired by deleting unused captures, not raising the cap. A Logs case passed one local replay; its diagnostic retry was cancelled once an independent quiet-trigger bug required a new head. That bug is fixed on main by #188594 (5f15db71e8e), whose CI passed both real-Gateway shards; redundant #188715 was closed. Main was merged without conflicts. The final full run passed both assertions without waivers or weakened tests. The old-head local quiet replay timed out before the trigger assertion and is not claimed as proof.

No leases or local Docker were used. No screenshots are required for this test-only change.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 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.

@steipete
steipete marked this pull request as ready for review October 30, 2026 20:33
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 30, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T22:00:56.170119Z 8bdcd02 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 30, 2026 20:44
@steipete
steipete disabled auto-merge October 30, 2026 20:45
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes unused UI proof captures, makes composer artifacts opt-in, reuses shared Chromium, and defers imports for an optional Gateway test.

Example: Run the eight composer viewport cases without OPENCLAW_CAPTURE_UI_PROOF=1.

  • Before: The cases write 16 screenshots and eight geometry files.
  • After: The cases retain their assertions without writing those artifacts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and source-supported; evidence establishes reduced operations and inherited CI failures, but not an isolated performance measurement for this change.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only PR is outside the ordinary contributor runtime-proof gate; supplied evidence covers source-level work removal and CI, without establishing isolated elapsed-time savings.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Routine CI spends resources generating unused browser proof artifacts and preparing an optional test that normally remains skipped.
Reason: The maintainer-authored direction removes concrete work using existing owners while retaining the distinct browser scenarios and assertions.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes a focused, useful reduction in test work without an identified introduced defect; both failing browser checks have matching failures on scheduled main runs.

Priority: P3
Reviewed head: 06a27184dfe44d14c365e9d45b72394f1332b307

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI browser fixtures consume built UI assets and synthetic Gateway responses, exercise browser interactions, and produce assertions plus optional proof artifacts.

flowchart TD
A[Vitest invocation] --> B[Shared Chromium owner]
B --> C[Isolated fixture pages]
C --> D[Behavior assertions]
C --> E[Optional proof artifacts]
Loading

Technical review

Best possible solution:

Retain the focused fixture optimization and handle the confirmed inherited CI failures through the existing landing policy.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly shows the unconditional artifact generation, separate browser launches, and eager imports; no execution was needed to establish those operations.

Is this the best way to solve the issue?

The patch follows the smallest complete approach: delete unused captures, preserve behavioral checks and required preparation, reuse the existing browser owner, and defer optional imports.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f4e6a9ea9735.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5e2ac6d adds ui/src/pages/claws/creator-review.e2e.test.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5e2ac6df8a09; files: ui/src/pages/claws/creator-review.e2e.test.ts)
  • Vincent Koc: Raw commit aa65a0e adds ui/src/pages/templates/creator-review.e2e.test.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: aa65a0ed16aa; files: ui/src/pages/templates/creator-review.e2e.test.ts)
  • Patrick Erichsen: Raw commit c9a7947 adds ui/src/pages/claws/creator-review.e2e.test.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c9a7947148bb; files: ui/src/pages/claws/creator-review.e2e.test.ts)
  • Paul Bohm: Raw commit d66e12f adds ui/src/e2e/chat-saved-attempt-navigation.e2e.test.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d66e12fe7f89; files: ui/src/e2e/chat-saved-attempt-navigation.e2e.test.ts)

PR surface

Tests -3. Total -3 across 3 files. Added test files: 0.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a test-cost improvement with no production behavior change or urgent user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 5:05 PM ET / 21:05 UTC.

@steipete
steipete merged commit 905be1f into main Oct 30, 2026
97 of 98 checks passed
@steipete
steipete deleted the solid2/w-test-ci-minutes-2-followup-1030 branch October 30, 2026 22:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
* perf(test): skip unused browser proof preparation

* test(ui): remove unused proof-only captures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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