Repository navigation
fix(ci): balance hourly UI shards and repair validation - #198526
Conversation
Hourly main CI timed out 36 mocked Control UI shard jobs in 21 of 47 runs (2026-11-11 to 2026-11-13). Hosted AMD EPYC 7763 runners take 1.31-1.36x the planned cold wall, and six shards planned about 959 s each against the 1,200 s test step. - Price the cold costs file timings omit: per-shard bundle build and Chromium launch (30 s), and one compiled-worker preparation (75 s) charged to the borrower affinity group. - Add guest-person-identities to the compiled-worker borrowers so each run prepares the 12.7k-input generation once instead of twice. - Run nine compact Control UI shards (ten rows). Each now plans 649 s, inside the existing thirteen-row registration reserve; the 20-minute step and every test are unchanged. - Add a planner budget test on the real hourly-main inventory and committed timings: a planned cold shard must stay under 700 s.
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR increases compact UI E2E sharding, groups another compiled-worker borrower, and repairs a reply fixture and unused export. Example: Hourly main CI selects the compact Control UI inventory.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR addresses verified hourly CI timeouts with an explicitly accepted capacity tradeoff; no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe CI manifest converts event and test-selection inputs into job rows; the UI sequencer distributes discovered tests across those rows using existing weights and borrower affinity. flowchart TD
A[CI event and selected paths] --> B[Build manifest]
B --> C[Nine Control UI shards]
B --> D[Conditional browser extension row]
C --> E[Weighted UI sequencer]
E --> F[Discovered browser tests]
F --> G[CI results]
Technical reviewBest possible solution: Land the existing bounded shard adjustment and validation repairs once the exact-head required checks satisfy the repository’s landing policy. Do we have a high-confidence way to reproduce the issue? Current-main source retains the six-shard allocation, and the linked official hosted job confirms deadline exhaustion; this read-only review did not rerun the workload. Is this the best way to solve the issue? The smallest complete repair uses the existing manifest, borrower-affinity set, resize helper, and output renderer without introducing another owner or weakening assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 39c25a39cdee. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +5, Docs +2, Other 0. Total +7 across 10 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel 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 HistoryReview history (7 earlier review cycles)
Reviewed November 16, 2026, 2:30 AM ET / 07:30 UTC (Revision 8). |
Drop the startup and preparation pricing, the planner refactor and the budget test. Nine compact Control UI shards alone bring the tallest cold shard to about 716 s (file time plus about 30 s startup and 75 s compiled-worker preparation), about 973 s at the 1.36x slowdown of hosted AMD EPYC 7763 runners, inside the 1,200 s step.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Maintainer review of head
I accept the documented nine-shard capacity tradeoff within the scoped repair of hourly main CI. This increases compact allocation from 24 to 36 worker slots and adds three repeated runner setups; it does not claim a billing reduction. Four workers per job, all discovered tests, the 20-minute test step, the 25-minute job deadline, and the existing 14-row maximum concurrency remain unchanged. The ten-row compact plan remains below the thirteen-row full-inventory reserve already included in the conservative registration envelope. Current routing was checked: the configured backend is The source-run replay preserves all 956 discovered files and exactly reproduces the 311 completed assignments. Existing six-shard weights are approximately 921.5 seconds per shard; nine project approximately 614.3 seconds before startup and preparation. These are projections, not executed nine-shard performance results. Current-head CI must establish completion and retained coverage. The successful six-shard replays do not remove the documented slow-host capacity failure. @clawsweeper re-review |
…199890) Cancel pending transcript positioning before arming older-history reads from accepted upward reader input. Preserve initial-settlement and passive layout protections, and keep cancellation in the existing transcript owner. Prove a wheel at native zero can request history without a subsequent scroll, while the no-input control remains inert. This repairs the explicit-input programmatic veto introduced by #171009; its relation to the unreproduced WebKit startup failure in #198526 remains unproven.
Baseline-Refresh: 60156711dd3462b16725619f0755420649510a29
|
🦞👀 Re-review progress:
|
…penclaw#199890) Cancel pending transcript positioning before arming older-history reads from accepted upward reader input. Preserve initial-settlement and passive layout protections, and keep cancellation in the existing transcript owner. Prove a wheel at native zero can request history without a subsequent scroll, while the no-input control remains inert. This repairs the explicit-input programmatic veto introduced by openclaw#171009; its relation to the unreproduced WebKit startup failure in openclaw#198526 remains unproven.
Baseline-Refresh: c53da0b96476724de7050ca830b28384dad12744
|
🦞👀 Re-review progress:
|
Baseline-Refresh: 720c304a3fd12535de5a4be04a3fb2219e5669bd
Deliver the existing native row measurement before asserting the reply highlight. Keep the exec retention note private after its external consumers migrated to the rendering owner. Preserve the reviewed UI capacity change and borrower entries. Co-authored-by: daniel-lxs <[email protected]>
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
) * ci(ui-e2e): fit every cold Control UI shard in its step budget Hourly main CI timed out 36 mocked Control UI shard jobs in 21 of 47 runs (2026-11-11 to 2026-11-13). Hosted AMD EPYC 7763 runners take 1.31-1.36x the planned cold wall, and six shards planned about 959 s each against the 1,200 s test step. - Price the cold costs file timings omit: per-shard bundle build and Chromium launch (30 s), and one compiled-worker preparation (75 s) charged to the borrower affinity group. - Add guest-person-identities to the compiled-worker borrowers so each run prepares the 12.7k-input generation once instead of twice. - Run nine compact Control UI shards (ten rows). Each now plans 649 s, inside the existing thirteen-row registration reserve; the 20-minute step and every test are unchanged. - Add a planner budget test on the real hourly-main inventory and committed timings: a planned cold shard must stay under 700 s. * ci(ui-e2e): keep only the shard count and the shared-worker borrower Drop the startup and preparation pricing, the planner refactor and the budget test. Nine compact Control UI shards alone bring the tallest cold shard to about 716 s (file time plus about 30 s startup and 75 s compiled-worker preparation), about 973 s at the 1.36x slowdown of hosted AMD EPYC 7763 runners, inside the 1,200 s step. * fix(ci): repair reply measurement and retire unused exec export Deliver the existing native row measurement before asserting the reply highlight. Keep the exec retention note private after its external consumers migrated to the rendering owner. Preserve the reviewed UI capacity change and borrower entries. Co-authored-by: daniel-lxs <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: daniel-lxs <[email protected]>
Closes #198524
What Problem This Solves
Fixes hourly Control UI E2E shards reaching the 20-minute test deadline while tests still make progress, repairs a reply-navigation fixture that omitted the browser's row measurement after clearing search, and removes an exec constant export whose consumers migrated to the output-rendering owner.
User Impact
No product behavior changes. Every selected test still runs, with the existing four-worker limit and 20-minute deadline. Reply navigation retains its search, highlight and no-external-fetch assertions.
Why This Change Was Made
Use nine compact Control UI shards instead of six, plus the separate browser-extension row. Aggregate browser worker slots increase from 24 to 36 with three additional setups; the existing thirteen-row full-inventory reserve and registration envelope remain unchanged. The maintainer accepts that capacity tradeoff for the observed hourly timeout family. Keep
guest-person-identitieswith the existing compiled-worker borrowers; preserve all four current main borrower entries, unchanged weighted splitting/timing data, and noncompact/release behavior. Separate open #197854's additions are not imported or removed.The reply fixture now delivers the target row's size through the existing ResizeObserver helper, then checks the same highlight through the existing settling helper. #199080 intentionally kept unmeasured arriving rows outside the visible flow and updated an adjacent reveal fixture, but missed this search-navigation case. The production guard correctly rejects parked geometry and remains unchanged. No new timers, production hooks, assertion relaxation or timeout increase is introduced.
The exec retention note stays private to its rendering owner. #199992 migrated both external consumers to
renderExecDroppedOutputNotebut left the constant exported; the production/full-tree analyzers correctly rejected it. Only theexportkeyword is removed. The literal, local fallback and callers remain unchanged.Thanks @daniel-lxs for the investigation and focused shard/affinity change.
Evidence
799bc0bde9255bb007801052016d5483f0b2b078to remove three named local unused-export failures introduced by refactor(agents): replace tool-loop detectors with an arguments-only repeat guard #199591; it is not a baseline advance merely for freshness.be1c78aee9fbf9bda7055e607ae20e0d73cb1bdbover main parentb9bc0def75b3d5d44d7a9b0832ec202eb4160b9e. A controlled late-admission frame reproduces its exact reply-highlight assertion on that parent. Substituting only the pre-fix(ui): keep the chat reader's text still while scrolling and while content renders late #199080 initial-range owner passes; restoring today's owner plus the existing native row-size receipt passes. The actual reveal is accepted and retained while awaiting measurement. The diagnostic frame hook is not committed.pnpm check:changed --base 799bc0bde9255bb007801052016d5483f0b2b078passed in 602.94 seconds on the final ten-file candidate: all three export scans zero, selected types, lint and guards green. Final signed head is906256819f840a512df3f3c03406065974688b22. The preceding nine-file check failed solely on the unused exec constant in 550.85 seconds; this ten-file candidate includes its one-keyword owner repair. Earlier failed checks remain historical failed evidence.The same prior CI also failed the WebKit 1440px Logs Auto-follow assertion after successfully reaching and displaying the bottom row. Exact merge/main-parent local replays pass, and separate owner investigation is active; no inherited waiver or cure is claimed here. Earlier WebKit startup history and Chromium menu-actionability failures likewise remain unexplained. The separately proven history-input repair #199890 does not claim to cure startup pagination. Fresh exact-head hosted CI and final-head Claw zero open remain required. No CI rerun is requested.