Skip to content

perf(test): avoid repeated Control UI fixture work - #188673

Merged
steipete merged 1 commit into
mainfrom
solid2/w-test-ci-minutes-2-1030
Oct 30, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-test-ci-minutes-2-1030

Conversation

@steipete

@steipete steipete commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

UI CI repeats browser setup, diagnostic-runner startup, proof-image encoding, and a complete personal-session journey while runner minutes are already above the campaign budget.

User Impact

Test-only change. UI behavior, browser coverage, native cleanup and security assertions stay covered; routine CI does less fixture work.

Why This Change Was Made

Fresh measurement at base f3009a56907e34a42d0d453dddff8adb13de4f20 identified expensive test bodies rather than a safe runner-count reduction. The latest completely green scheduled main run is October 6; current main has no completely green full run. The baseline below therefore uses successful jobs from eight of the latest ten October 30 scheduled runs (two job exports returned HTTP 502), plus thirteen recent green PR runs with selected UI jobs. PR selection varies, so its whole-run totals are not compared with full main.

The change reuses the existing shared Chromium in four remaining fixtures; batches three cooperative diagnostic modes into one invocation while preserving isolated native forks; makes ten unasserted proof screenshots opt-in through the existing capture flag; trims a live Stop fixture from 48 to 42 tool steps while retaining explicit proof that history excludes the opening prompt; and removes the duplicate admin personal-group journey while moving its unique enabled-action assertion into the existing admin case. The complete read-only journey remains.

The 108-cell menu-style matrix keeps both themes, both stylesheet orders, all row states and real browser input. It disables only its local color transitions; separate animation tests retain normal timing.

Since the previous fixture checkpoint (#183498), 104 UI test files were added, including 39 E2E files. The measured menu matrix was added on October 29. This is a bounded reduction, not a claim to eliminate the entire reported code-side residual. Current source already shares the production UI build; making real-Gateway jobs wait for the larger public artifact producer would lengthen their serial prefix and would still need private-QA preparation. No runner, shard, timeout, retry, baseline or CI-tier changes are included.

Evidence

Acceptance: lower work counts and measured CI test/job time without dropping distinct contracts; report the remaining gap to the 660-second critical-path target. CI measurements, not local timing, determine the runner-minute result.

Proof Result
pnpm tsgo:ui Passed
node scripts/run-vitest.mjs ui/src/test-helpers/control-ui-e2e-suite.test.ts --maxWorkers=1 24 tests passed; native cancellation, cleanup, diagnostic redaction and successor-order assertions retained
node scripts/run-vitest.mjs ui/src/components/menu-surface.browser.test.tsx --maxWorkers=1 21 tests passed; all 108 style-state cells and separate animation cases retained
Formatting and git diff --check Passed
Independent review Codex autoreview, complete local diff against f3009a56907, P0–P2: no actionable findings; full fixture/menu context supplied. Browser and long-turn integration remains CI proof
PR CI 41121920248 passed; selected UI scope only (see limitation below)
Production runtime / startup bytes No production files changed; no local build needed

CI baseline, runner minutes

Successful-job medians from scheduled runs 41115244650, 41107007551, 41098750962, 41090206598, 41080670581, 41071928241, 41063477930, 41047999021. These are job-duration sums, not GitHub's rounded invoice units; waits before job start are excluded. Shared artifact and native Android costs are shown separately.

Job Successful baseline samples Before (min) PR CI after (min)
checks-ui 1/3 7 7.22 7.20
checks-ui 2/3 8 6.50 5.27
checks-ui 3/3 8 6.78 6.53
checks-ui-e2e 1/7 6 10.97 Pending
checks-ui-e2e 2/7 4 10.44 Pending
checks-ui-e2e 3/7 3 12.40 Pending
checks-ui-e2e 4/7 7 12.58 Pending
checks-ui-e2e 5/7 8 12.11 Pending
checks-ui-e2e 6/7 3 12.58 Pending
checks-ui-e2e-real-gateway 1/2 3 16.73 Pending
checks-ui-e2e-real-gateway 2/2 6 12.72 Pending
control-ui-performance 8 2.36 Pending
build-artifacts (shared) 7 14.83 Pending
android-ktlint 8 9.73 Pending
android-test-play 8 11.39 Pending
android-test-third-party 8 11.95 Pending
android-test-wear 8 10.01 Pending
android-access-native 4096 8 11.85 Pending
android-access-native 16384 8 11.50 Pending

Representative green PR selections ranged from one targeted job to all three unit shards; their medians were 8.17/6.07/6.37 minutes for unit shards, and 2.83/6.13 minutes for the two-row E2E selections. They are distinct workloads, not a cheaper full-run baseline.

Step attribution: successful main medians are 823s/550s for real-Gateway test bodies plus 108s/121.5s of private build preparation; mocked E2E bodies range 560.5–674s; unit bodies are 319–332.5s. In run 41115244650, the menu file alone took 57.39s, the personal-group file 47.81s, and the diagnostic harness 30.91s. The current critical path already exceeds 660s; the final CI result will state the remaining gap explicitly.

Test/support LOC: +103/−74 (net +29); production LOC: unchanged. The small growth wires existing shared lifecycle owners and keeps the assertions. No lease, local Docker, local E2E battery, or screenshots were needed for this test-only change.

Landed result and proof limitation

Merged as 39b2c9191e6a0c2041fd3a350976244ca2125932. The three UI unit jobs used 19.00 runner minutes, versus 20.60 for the recent green PR per-job medians (−7.8%, unpaired). The selected E2E job used 3.63 minutes; it is a subset and cannot be compared with the full scheduled shards above. Maximum selected UI job wall: 432s, below 660s; the full-UI critical path remains unverified.

The label was present on the PR, but the opening-event preflight recorded OPENCLAW_CI_FULL: false: label addition followed the opened event. Thus this green run did not execute full E2E, real-Gateway, artifact or Android jobs. Their after cells intentionally remain unmeasured, not passing. The follow-up will be labeled while draft, before ready_for_review, to exercise the full UI scope and provide cumulative proof for this change.

The menu browser file took 37.914s, versus 66.283s median across three recent green PRs (52.962/66.283/104.547s); those use the same PR runtime policy. The diagnostic harness took 33.789s, versus 28.590s median (25.990/28.590/40.334s), so no elapsed-time improvement is claimed for that file; its structural saving is two CLI startups. These are unpaired CI observations, not isolated causal benchmarks.

Cumulative full-UI proof

Follow-up #188685 merged as 905be1f74f3ad491a9e0edecf7454839aea8a538. Its full CI run 41134985714 passed all three UI unit, seven browser/extension, and two real-Gateway rows with both changes present. Comparable eleven-row total: 121.13 baseline median minutes → 107.58 observed minutes (−11.2%, unpaired); all twelve final rows used 112.48 minutes. The slowest final row was 842s, so the 660s target remains unmet by 182s. The follow-up body records the complete job/step table, baseline limitations, and earlier failure investigation.

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

@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-30T20:18:46.707560Z aace1e9 PR opened
ℹ️ 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:22
@steipete
steipete merged commit 39b2c91 into main Oct 30, 2026
86 of 88 checks passed
@steipete
steipete deleted the solid2/w-test-ci-minutes-2-1030 branch October 30, 2026 20:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

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. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant