Repository navigation
perf(test): avoid repeated Control UI fixture work - #188673
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
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. |
Contributor
Author
|
Merged via squash auto-merge.
|
This was referenced Oct 30, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
f3009a56907e34a42d0d453dddff8adb13de4f20identified 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.
pnpm tsgo:uinode scripts/run-vitest.mjs ui/src/test-helpers/control-ui-e2e-suite.test.ts --maxWorkers=1node scripts/run-vitest.mjs ui/src/components/menu-surface.browser.test.tsx --maxWorkers=1git diff --checkf3009a56907, P0–P2: no actionable findings; full fixture/menu context supplied. Browser and long-turn integration remains CI proofCI 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.
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 theopenedevent. 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, beforeready_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.