Skip to content

fix(ci): chat history E2E cannot start without WebKit - #190386

Merged
steipete merged 1 commit into
mainfrom
fix/ui-e2e-webkit-provisioning-41311217966
Nov 1, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ui-e2e-webkit-provisioning-41311217966

Conversation

@steipete

@steipete steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the scheduled Control UI E2E shard failing before chat history tests run because its Playwright WebKit browser is missing.

User Impact

CI can execute the existing Chromium and WebKit chat history reading checks. No application behavior changes.

Why This Change Was Made

The shard-scoped browser discovery list omitted chat-history-reading-stability.e2e.test.ts and repeated the composer suite. Replace that duplicate with the missing suite so the existing WebKit install step runs only on its owning shard.

Evidence

  • Scheduled failure: run 41311217966, job 124861942543, Chat history reading stability setup could not find webkit-2370/pw_run.sh.
  • Extended the existing executable workflow fixture: the new case failed before the workflow change because no browser install ran; all five cases pass afterward (6.27 seconds wall time). The exact one-line regression allocation preserves the test budget.
  • pnpm --dir ui exec playwright install --with-deps webkit succeeds locally. The unchanged chat-history-reading-stability.e2e.test.ts passes all three Chromium/WebKit cases against a fresh production bundle (37.50 seconds in Vitest).
  • Workflow validation, scoped oxlint, formatting, tooling typecheck through tsrs, test-line ratchet, and diff checks pass.
  • Fresh independent Codex autoreview of the complete change against 87ba257f66d04d65772ce1e160c4cc9e872a21cd, P0–P2: no actionable findings. The local ClawSweeper runner is not built; a hosted review is requested as the maintainer fallback.

Linux browser provisioning is covered by the workflow fixture and the unchanged Playwright install command; the local browser replay ran on macOS.

Register the chat history reading suite with the existing shard-scoped browser dependency discovery so its unconditional WebKit setup receives the matching Playwright browser. Replace a duplicate composer entry and extend the executable workflow fixture to cover installation only on the owning shard.
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review November 1, 2026 14:09
@steipete

steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T14:10:51.245908Z 26ce1bb Draft marked ready
ℹ️ 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.

@clawsweeper

clawsweeper Bot commented Nov 1, 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. labels Nov 1, 2026
@steipete
steipete enabled auto-merge (squash) November 1, 2026 14:13
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR registers the chat history E2E suite for shard-scoped WebKit installation and extends the existing workflow regression fixture.

Example: The scheduled checks-ui-e2e (3/7) shard selects chat-history-reading-stability.e2e.test.ts.

  • Before: WebKit installation is skipped, so the suite cannot launch its WebKit browser.
  • After: Discovery identifies the suite as requiring WebKit and enables the existing installation step.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, minimal repair with sound source-level coverage; inspected hosted execution does not exercise the changed installation decision.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authored classification exempts this PR from the ordinary contributor proof gate; the body reports a red/green workflow fixture and successful macOS browser replay, while the inspected Linux head job skipped WebKit installation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Scheduled Control UI E2E coverage fails during browser setup instead of checking chat history reading.
Reason: The maintainer-authored direction restores existing test coverage using the established provisioning mechanism and changes no application contract.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides a focused repair for a confirmed CI provisioning omission still present on current main, with no actionable code findings.

Priority: P2
Reviewed head: 26ce1bb40d302b431590b4d2b85e663229523628

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A Linux workflow run selecting chat history and successfully installing WebKit is not shown by the inspected job.
Agent review details

How this fits together

CI discovers the test files assigned to each Control UI E2E shard, derives browser requirements, installs selected browsers, and runs that shard.

flowchart LR
  A[Selected E2E files] --> B[Vitest shard discovery]
  B --> C[Browser requirements]
  C --> D[Playwright WebKit installation]
  D --> E[Chat history browser tests]
Loading

Technical review

Best possible solution:

Retain this minimal registration repair in the existing shard-discovery owner and land it through the normal CI gates.

Do we have a high-confidence way to reproduce the issue?

The unconditional WebKit launch, missing discovery entry, and scheduled job's skipped installation establish the failure path; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch is the smallest complete repair: preserve shard-scoped installation, register the missing suite, and extend the existing executable fixture without adding machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bf84c80a1781.

Provenance checked

  • Shard-scoped WebKit provisioning keeps the original intent (c5b37e4: Install WebKit only on the UI shard assigned a dependent suite.)
  • Composer WebKit registration keeps the original intent (fix: prevent resize loops while chat responses stream #188818: Enable the composer suite after CI exposed its missing WebKit executable; the replacement removes only its duplicate registration.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b68c44c adds .github/workflows/ci.yml:2353 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b68c44ca8f3c; files: .github/workflows/ci.yml)

PR surface

Tests +1, Config 0, Other +2. Total +3 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 0 +1
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 3 4 1 +3

Labels

Label changes:

  • add P2: A deterministic browser-provisioning omission breaks scheduled E2E coverage without changing application behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A deterministic browser-provisioning omission breaks scheduled E2E coverage without changing application behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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.

Reviewed November 1, 2026, 9:12 AM ET / 14:12 UTC.

@steipete
steipete merged commit 28312d2 into main Nov 1, 2026
169 of 171 checks passed
@steipete
steipete deleted the fix/ui-e2e-webkit-provisioning-41311217966 branch November 1, 2026 14:20
@steipete

steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
Register the chat history reading suite with the existing shard-scoped browser dependency discovery so its unconditional WebKit setup receives the matching Playwright browser. Replace a duplicate composer entry and extend the executable workflow fixture to cover installation only on the owning shard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant