Repository navigation
ci: balance Control UI browser checks - #135210
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 7:43 PM ET / 23:43 UTC. ClawSweeper reviewWhat this changesThis PR partitions Control UI browser checks into weighted parallel and serial Vitest projects, raises CI fanout, and repairs related Chrome tab-lifecycle and test-reliability cases. Merge readinessKeep this PR open for normal maintainer review: it contains unique CI and browser-lifecycle work not present on current main, and no blocking patch defect was found. The fixed fourteen-row CI fanout changes shared runner scheduling, so exact-head completion and CI-owner capacity acceptance remain required before merge. Priority: P2 Review scores
Verification
How this fits togetherControl UI E2E checks are planned by CI preflight and run across browser-test shards, while the browser extension separately enforces tab access before relaying Chrome commands. This PR changes both the test scheduling path and the extension’s group-revocation boundary. flowchart LR
A[Control UI test inventory] --> B[CI preflight planner]
B --> C[Weighted browser test shards]
C --> D[CI checks and diagnostics]
E[Chrome tab and group events] --> F[Group-scoped access owner]
F --> G[Extension relay commands]
G --> D
Decision needed
Why: This is a shared runner-capacity decision rather than a mechanical code repair, and the current check set is not yet complete. Before merge
Agent review detailsSecurityNone. PR surfaceSource +79, Tests +680, Docs +7, Config -38, Other +5. Total +733 across 32 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the canonical group-scoped revocation owner, then merge only after the CI owner accepts fourteen-row capacity and the exact-head matrix is green. Do we have a high-confidence way to reproduce the issue? Yes, source and supplied real-Chromium evidence define the adverse group-event and relay-disconnect paths; this read-only review did not execute them locally. Is this the best way to solve the issue? Yes for the browser repair: group-scoped revocation is owned centrally and revalidated at the navigation boundary; the scheduling portion still needs CI-owner capacity acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 50f7f06d8ba3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
|
Addressed both documentation findings in The completed 68881a native run covers 341 unique ordinary UI files / 1,443 cases exactly once, five real-Gateway files / ten cases, and the browser bootstrap. Browser job time fell from 326 to 194 seconds on hosted runners, with declarations and the UI build absent from the new prerequisite. Ordinary UI and full-workflow timing still exceed the target. The Vitest 4.1.11 dependency limitation was checked locally against its installed source and an executable fixture: one root setup/teardown and shared context, overlapping bundled workers, the subsequent serial group, global sharding, and explicit CLI worker overrides all passed. The final documentation head still needs its native gate. Blacksmith capacity for the final combined layout remains an explicit outstanding check while its 8-vCPU pool recovers; the hosted result is not presented as Blacksmith proof. These statements address every Before merge / Rank-up item, with the remaining capacity proof retained before landing. |
50aea64 to
54eabdc
Compare
99c9a67 to
c05dc64
Compare
|
The branch is rebased onto The mobile Inbox assertion now controls the real animation clock for its starting geometry sample, then resumes it through the actual completion promise. A controlled 120 ms late-sample reproduction fails before this repair and passes afterward; the clean browser file passes both cases. Existing travel, duration, easing, geometry, controls, tabs, and reduced-motion assertions are unchanged. Fresh first-attempt hybrid CI is running for this exact head. The preceding native run admitted all fourteen UI rows on distinct runners with 1–2 second queues, but its mobile assertion and then-existing declaration failures prevented a green result. Successful exact-head CI is still required; no whole-workflow five-minute result is claimed. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Keep unfinished-tab cleanup owned by its creator after the relay closes while retaining group and access revocation checks. Await the Windows process fixture readiness event before expiring its existing cleanup deadline.
c84963c to
d6470d3
Compare
Chrome tab access: prevent newly created tabs from losing access during group setup, keep revocations effective for in-flight commands, recover automation after selected-group access is restored, and clean up unfinished tabs when the relay disconnects.
Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward.
Use the canonical session-label selector landed in #135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
* ci: separate Control UI browser concurrency owners * test(ci): keep shared config routing guard scoped * ci: build only runtime artifacts for browser extension proof * ci: balance combined Control UI project shards * docs(ci): clarify UI bootstrap and runner concurrency * test(ui): sample the sheet animation from its start * fix(ci): stabilize browser checks and reuse E2E setup * fix(ci): preserve tab rollback and await child readiness Keep unfinished-tab cleanup owned by its creator after the relay closes while retaining group and access revocation checks. Await the Windows process fixture readiness event before expiring its existing cleanup deadline. * docs: retain Chrome release context in the PR Chrome tab access: prevent newly created tabs from losing access during group setup, keep revocations effective for in-flight commands, recover automation after selected-group access is restored, and clean up unfinished tabs when the relay disconnects. * test: select the catalog session label for marquee resets Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward. * test: align catalog label selector with main Use the canonical session-label selector landed in openclaw#135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
What Problem This Solves
Control UI checks repeat expensive build/setup work and serialize tests that can share a production bundle. Thirteen serial rows used 4,258 job-seconds with a 363-second tail in the measured baseline. Browser bootstrap also built declarations and the Control UI that it does not consume.
The native runs exposed related reliability defects: delayed tab-group events could revoke a newly created Chrome target, disconnecting during creation could leave an unfinished tab behind, and process tests confused cold startup with the behavior they were testing.
Why This Change Was Made
Two sequenced Vitest projects share one root-owned production bundle. Bundled tests use two workers; private servers and runtime-budget tests run afterward with one worker. Thirteen combined shards assign every discovered specification exactly once using worker-normalized weights. The fourteenth row runs browser bootstrap with the existing
qaRuntimeprofile. Normal artifact validation still covers declarations and the UI build. Historical targets without this project contract retain their existing command and matrix width.The complete seven-suite real-Gateway inventory runs in one Vitest invocation, with isolated serial forks and one preview build/worker preparation. The inventory guard includes the media-transcript test outside the UI directory. Enabled MCP and Logs proof capture now uses the configured shared upload directory.
Chrome tab access records revocations per group. Delayed naming of a newly created OpenClaw group and removal of an unrelated group no longer revoke a valid target. Actual group revocation immediately fences old commands; restored selection validates a fresh attachment epoch without reviving old work. The creator retains responsibility for closing an unfinished tab after its relay disconnects, subject to the same tab, document, group, and ownership checks.
Both ACP process cases use the prepared CLI entrypoint from current main and the shared child lifecycle helper. Interactive initialization remains ordered before Gateway hello; failure cleanup joins the child and releases its pipes. The Windows package timeout test waits for the child's atomic readiness signal before testing the existing timeout and termination deadlines. The Inbox animation test samples the actual paused animation clock and resumes it without relaxing its geometry assertions.
User Impact
Developers get less repeated browser-test setup with the complete test inventory retained. Browser automation preserves valid targets through delayed or unrelated group events, blocks commands after actual revocation, and closes unfinished tabs after a disconnected creation. Process and animation checks now wait for the state they intend to test.
Evidence
d6470d3c7e4a336f03c621bb8a34a14be9ab4038: 232 successful jobs and nine skips. All fourteen browser rows, Gateway, Docker, and Windows passed on the first attempt. Twenty-two Node jobs waited nearly 30 minutes without runner assignment or executed steps; retrying the unfinished checks through the existing hosted fallback completed validation on the same source. Fresh full-diff Codex review including the final fixture repair is scoped clean at P0 (confidence 0.94).The final sidebar fixture repair addresses the same main-branch regression observed in timing CI run 33567977603: a new catalog-heading marquee made a global query select the heading instead of the session label. The query now scopes to the catalog session and asserts both label values, preserving the DOM-replacement, class, and style checks. The old fixture fails on main
9c0ef3b41844ed836625060981e47a1880f38d25; all 323 sidebar cases pass with the repair. No browser authority or product code changed after the successful behavioral-head CI and real Chromium proof.Canonical process validation:
pnpm test src/cli/acp-cli-exit.process.test.ts src/cli/cli-process-child.test-helpers.test.tspassed both real ACP cases and all six helper cases after preparing runtime.Fresh real Chromium proof passes on
d6470d3c7e4a336f03c621bb8a34a14be9ab4038. The test reused the native bootstrap and authenticated extension relay, then exercised the production route dispatcher and command handler. All six installed browser-owner files matched the reviewed source bytes. Scheduling hooks held real tab-read/grouping promises to establish the adverse ordering and observed native debugger calls; no access predicate was replaced.Redacted observed output (Chromium 151, eight scenarios, 10.973s scenario time):
The forbidden cases delivered actual Chrome group events while a command held its previously admitted epoch. Independent direct-browser inspection confirmed the missing effect. The disconnect case waited for a replacement authenticated connection before releasing the old creation. This is real Chromium with controlled scheduling, not an uninstrumented trace. It did not rerun the separate existing-session MCP segment that stopped the earlier local probe; the full native bootstrap remains covered by the successful preceding behavioral-head CI run.
Capacity And Remaining Work
The Blacksmith UI concurrency cap rises from four to fourteen to match its existing fourteen-row budget. Runner classes, hosted parallelism, test inventory, and product configuration are unchanged. The existing conservative registration envelope is 5,995 against the 6,000 operating target. Remaining task work includes fresh canonical-main timing weights and reducing the ordinary UI and Docker tails. The five-minute non-Windows objective remains open.
The optional progress-card capture flag differs from the workflow's shared capture flag; align it in a follow-up. Its behavior assertions still execute.
Judged full-PR LOC: product +130/-51 (net +79); CI tooling +37/-70 (net -33); tests +736/-175; test support +150/-31; docs +14/-7. Product growth establishes a single group-scoped revocation owner and explicit attachment binding, replacing global invalidation and deleting a redundant access guard.
Review Disposition
The 23:43 UTC ClawSweeper review covers final head
9e752bff585cada1d08cc0e4ee1866e3ef370b9c, finds no actionable correctness or security defect, and accepts the real Chromium final-effect proof. Exact-head CI 33571647978 passed on its first attempt: 234 successful jobs and nine intentional skips. All fourteen successful browser test steps overlapped from 23:36:55 to 23:39:19 UTC. Full workflow time was 11m10s; the longest browser row was 6m28s and Docker passed in 7m05s. This completes validation; it does not meet the five-minute objective.Maintainer capacity disposition: retain the fourteen-row layout under the unchanged 5,995/6,000 registration envelope, supported by three successful native runs and overlapping browser execution. That estimate already counts all fourteen rows; it does not guarantee physical runner availability. The review's Rank-up capacity move is accepted on this evidence. Product growth remains confined to the reviewed group-scoped revocation and attachment boundary.
The review's dependency-source limitation was checked directly against installed Vitest 4.1.11:
cli-api.CnMVyzaz.jslines 3849–3917 own worker inheritance/grouping, 3710–3797 join sequential groups, 10826–10842 own setup/teardown, and 13825–13829 include root setup. Executable fixtures corroborate these contracts. Fresh full-diff Codex review is clean at the configured P0 threshold, confidence 0.95.Release note
Main #135597 independently landed the same sidebar fixture repair using the canonical session-label selector. Head
9e752bff585cada1d08cc0e4ee1866e3ef370b9caligns that selector exactly while retaining both label checks and all reset assertions; the conflict-free merge was verified against main759e127777b54426c922e8ab4c228523ddac04e9. No browser/product code changed. Formatting and fresh full-diff Codex review at P0 pass (confidence 0.95); this mechanical follow-up passed native CI 33571647978 as recorded above.