Skip to content

fix(ci): balance hourly UI shards and repair validation - #198526

Merged
steipete merged 7 commits into
openclaw:mainfrom
daniel-lxs:ci-ui-e2e-shard-budget
Nov 16, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
daniel-lxs:ci-ui-e2e-shard-budget

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

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-identities with 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 renderExecDroppedOutputNote but left the constant exported; the production/full-tree analyzers correctly rejected it. Only the export keyword is removed. The literal, local fallback and callers remain unchanged.

Thanks @daniel-lxs for the investigation and focused shard/affinity change.

Evidence

  • The contributor examined 282 jobs in 47 hourly runs: hosted EPYC 7763 runners timed out in 35 of 63 jobs, versus zero of 102 Blacksmith jobs. Source hourly 43763625500 again had two aggregate timeouts. Its inventory projects 921.5 seconds of file weight at six shards versus 614.3 at nine, before startup/preparation overhead. These are historical observations and projections, not a measured final-head speedup.
  • Observed d143 CI ran all nine mocked UI E2E rows below the unchanged 1,200-second deadline: test-step wall times ranged from 584 to 955 seconds, median 733 seconds. Eight rows passed; one failed the Logs assertion after reaching the bottom. This is actual capacity evidence for the unchanged eight capacity blobs, not a controlled speedup, A/A comparison or an all-green verdict.
  • Eight sharding cases and 23 planner/selection scenarios passed on the prior source; all eight capacity blobs remain identical. Focused browser proof is retained with source hashes. The current native baseline integrates exact fix(ci): stabilize hourly fixtures and retire unused exports #199851 merge 799bc0bde9255bb007801052016d5483f0b2b078 to 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.
  • The latest prior CI 43813757856 tested merge be1c78aee9fbf9bda7055e607ae20e0d73cb1bdb over main parent b9bc0def75b3d5d44d7a9b0832ec202eb4160b9e. 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.
  • All three navigation branches plus three independent flash-lifetime cases pass under Node and pinned Bun, and the two projected/parked reveal-owner cases pass under both runtimes. The selected unchanged case had passed on both original sources/runtimes; those replays alone were not used to claim a repair. The controlled owner comparison establishes the missing fixture receipt. New test delta is +4/-3, production LOC 0; combined ten-file delta is +29/-22, production LOC net 0.
  • Fresh full ten-file Codex review is scoped-clean through P2, with two complete passes and verified frozen source. Required pnpm check:changed --base 799bc0bde9255bb007801052016d5483f0b2b078 passed in 602.94 seconds on the final ten-file candidate: all three export scans zero, selected types, lint and guards green. Final signed head is 906256819f840a512df3f3c03406065974688b22. 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.

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

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: Six Control UI shards use 24 aggregate worker slots and can exceed the 1,200-second test deadline.
  • After: Nine Control UI shards use 36 aggregate worker slots while retaining the same deadline and test inventory.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, justified repair with observed hosted capacity evidence, preserved assertions, and no identified patch defect; exact-head broad validation remains pending.
Proof confidence 🐚 platinum hermit (4/6) These CI, fixture, and unused-export changes add no user-visible product behavior; inspected hosted job metadata supports the unchanged capacity adjustment, and the downloaded images concern the linked scrolling repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Hourly Control UI validation reaches its deadline while tests are still progressing.
Reason: Observed hosted failures justify the narrow capacity repair, and the maintainer has already accepted its resource tradeoff and scoped validation repairs.

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
Reviewed head: 906256819f840a512df3f3c03406065974688b22

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Compact UI shard allocation and borrower affinity changes intended behavior with a stated reason (a302730: The earlier optimization reduced repeated preparation while retaining 24 aggregate worker slots; this PR documents subsequently observed slow-host timeouts and explicit acceptance of 36 slots.)
  • Reply navigation fixture measurement keeps the original intent (fix(ui): keep the chat reader's text still while scrolling and while content renders late #199080: Arriving rows intentionally remain outside visible flow until measured; the fixture now supplies that native measurement using the existing helper.)
  • Exec retention disclosure ownership keeps the original intent (be67a8b: Retention-loss disclosure must precede retained output; the later rendering-owner migration removed external constant consumers, so making the fallback private preserves that contract.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 202514e adds src/agents/bash-tools.exec-output.ts:124 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 202514ee61a0; files: src/agents/bash-tools.exec-output.ts)

PR surface

Source 0, Tests +5, Docs +2, Other 0. Total +7 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 5 17 12 +5
Docs 3 9 7 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 2 0
Total 10 29 22 +7

Preflight source

Source 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

Metric Value Why it matters
Aggregate compact browser workers 24 → 36 Nine four-worker shards replace six; the maintainer explicitly accepted the additional capacity and repeated setup.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: Recurring hourly validation timeouts affect CI reliability without establishing a production outage.
  • merge-risk: 🚨 automation: The diff changes CI fanout and test placement; the increased allocation is explicitly accepted within the existing registration reserve.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (7 earlier review cycles)
  • reviewed 2026-11-14T01:01:54.263Z sha 4dadee5 :: blocked before merge. :: none
  • reviewed 2026-11-14T04:01:54.303Z sha 76a067f :: blocked before merge. :: none
  • reviewed 2026-11-15T23:14:59.758Z sha 76a067f :: needs maintainer review before merge. :: none
  • reviewed 2026-11-15T23:27:12.494Z sha 76a067f :: blocked before merge. :: none
  • reviewed 2026-11-16T00:31:16.924Z sha 4610795 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-16T03:50:29.039Z sha f2f426b :: needs maintainer review before merge. :: none
  • reviewed 2026-11-16T06:06:25.875Z sha d143870 :: needs maintainer review before merge. :: none

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

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@roboclaw-bot roboclaw-bot added the clawtributors PR from a clawtributor label Nov 15, 2026
@steipete

steipete commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer review of head 76a067fc827e7cb3e42e08ed3fd17f7502f36eda:

  1. Await maintainer action — workflow approval. The eight-file diff has been inspected. The executable changes use the existing manifest and sequencer: compact matrix count at scripts/ci-build-manifest.mjs:522 and the additional borrower at test/vitest/vitest.ui-e2e.sequencer.ts:112. The remaining changes are corresponding test expectations and documentation. There are no workflow permissions, credentials, installation hooks, or new execution paths in the diff. Run 43554096226 is the exact-head first attempt; it was held at action_required with zero jobs. I approved that exact run through the workflow approval endpoint after checking the current head and writer identity. Readback now confirms in_progress on the same head. The eight other repository-selected workflow runs on this head have also been approved; all are verified activated as attempt 2 by steipete, with no action_required remaining. OpenGrep, Node Runtime Conformance, Plugin Scaffold, Workflow Sanity, and Periphery have passed; CodeQL, Build Artifacts Testbox, and PR tooling Darwin are running. These gates must finish; none is an inherited failure.

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 boat, but scheduled runs with no source author use GitHub-hosted runners. Source run 43763625500 has 164 jobs and no Boat/Blacksmith job labels; this change adds three hosted UI rows to that scheduled shape. The live registration limit remains 10,000, with a 6,000 operating target; the existing conditional 5,110-registration envelope already reserves thirteen UI rows and is unchanged. The pooled quota response is not organization-wide utilization proof. In the subsequent 43769247327, UI jobs were assigned within two to three seconds, so the observed problem is test workload rather than runner assignment delay.

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

steipete added a commit that referenced this pull request Nov 16, 2026
…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
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…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
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

steipete and others added 2 commits November 15, 2026 22:46
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]>
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui agents Agent runtime and tooling labels Nov 16, 2026
@steipete steipete changed the title fix(ci): Control UI E2E shards time out on slow hosted runners fix(ci): balance hourly UI shards and repair validation Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Nov 16, 2026
@steipete
steipete merged commit 549ee07 into openclaw:main Nov 16, 2026
153 of 154 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
)

* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui clawtributors PR from a clawtributor docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mocked Control UI E2E shards (checks-ui-e2e N/7) time out on slow hosted runners in hourly main CI

3 participants