Repository navigation
perf(test): skip unused browser proof preparation - #188685
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -3. Total -3 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 5:05 PM ET / 21:05 UTC. |
…tes-2-followup-1030
|
Merged via squash.
|
* perf(test): skip unused browser proof preparation * test(ui): remove unused proof-only captures
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
8bdcd028477872fb1a9b55fa7e7770a809d63a9fpassed full CI 41134985714: three UI unit rows, six browser rows, browser-extension row and two real-Gateway rows.ci:fullwas set while draft, before ready. The first PR's opening event selected only part of UI; this run supplies cumulative full proof.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.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.