Skip to content

fix(ci): provision Chromium for A-K live validation - #163178

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release-live-chromium
Oct 2, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release-live-chromium

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 2, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the A–K extension live lane starts browser-backed tests without installing Chromium, so the browser launch fails before the live assertions run.

User Impact

User impact: Full Release Validation can execute browser-backed A–K live tests on its clean Linux runner.

Why This Change Was Made

The media-provider job now installs Playwright Chromium and its system dependencies only when the selected matrix row is native-live-extensions-a-k, after Node and harness setup and before live credential hydration.

Evidence

  • Source failure: Full Release Validation run 36926596622.
  • Focused workflow assertion: 1/1 passed (package-acceptance-workflow.test.ts).
  • pnpm check:workflows and git diff --check passed on current main.
  • Fresh post-cherry-pick AutoReview: scoped clean.

No live workflow was redispatched; the proof covers the workflow selection and ordering contract.

@clawsweeper

clawsweeper Bot commented Oct 2, 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.

@RomneyDa
RomneyDa marked this pull request as ready for review October 2, 2026 02:40
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 10:45 PM ET / October 2, 2026, 02:45 UTC.

ClawSweeper review

What this changes

The PR installs Chromium and its Linux dependencies before browser-backed A–K plugin live tests and adds a workflow selection-and-ordering assertion.

Merge readiness

✅ Ready for maintainer review

Keep open: this focused repair remains necessary on current main, and no introduced correctness or security defect was found. The member-authored PR is also protected from automatic cleanup.

Priority: P2
Reviewed head: 932440bf30cdc2fb60b2c252ade890bdd03d5dde

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent workflow repair with appropriate contract coverage and no actionable patch defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored CI repair. Supplied evidence covers workflow assertions and checks, not an observed after-fix Chromium launch; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored CI repair. Supplied evidence covers workflow assertions and checks, not an observed after-fix Chromium launch; no stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head delta adds only the conditional Chromium installation and its workflow assertion. The verified test merge has the recorded base and exact PR head as parents and preserves base-only work.
Current main still needs the repair: The media-provider job proceeds directly from trusted harness setup to credential hydration without installing Chromium. Its A–K matrix row remains present.
Browser prerequisite and existing installer pattern: The A–K selector includes browser plugin tests, including a test that launches a persistent Chromium context. The media runner image installs media utilities but no Chromium. The sibling native-live-test job already uses the same Playwright installation command; root and UI Playwright versions are both pinned to 1.63.0.
Findings None None.
Security None None.

How this fits together

Full Release Validation selects plugin live-test groups and prepares isolated Linux jobs before running them. The A–K group includes browser tests that need a locally installed Chromium executable.

flowchart TD
  A[Release validation inputs] --> B[Select live test group]
  B --> C[Set up Node and dependencies]
  C --> D{A–K group selected?}
  D -->|Yes| E[Install Chromium and Linux dependencies]
  D -->|No| F[Hydrate live credentials]
  E --> F
  F --> G[Run selected live tests]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +16, Config +4. Total +20 across 2 files.

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

Review metrics

None.

Technical review

Best possible solution:

Use the existing pinned Playwright installer in the isolated A–K job so browser prerequisites are ready before live tests begin.

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

Yes, source establishes the prerequisite gap: A–K selects tests that launch Chromium, while its clean media container and current-main job do not install it. This review did not execute the failing path.

Is this the best way to solve the issue?

Yes, the patch follows the existing browser-installation pattern and places it in the separate job that needs it, with matching selection and ordering.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a missing prerequisite in one release-validation group with limited operational impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored CI repair. Supplied evidence covers workflow assertions and checks, not an observed after-fix Chromium launch; no stored-data contract changes.

Label justifications:

  • P2: This repairs a missing prerequisite in one release-validation group with limited operational impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored CI repair. Supplied evidence covers workflow assertions and checks, not an observed after-fix Chromium launch; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head delta adds only the conditional Chromium installation and its workflow assertion. The verified test merge has the recorded base and exact PR head as parents and preserves base-only work. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:4909, 932440bf30cd)
  • Current main still needs the repair: The media-provider job proceeds directly from trusted harness setup to credential hydration without installing Chromium. Its A–K matrix row remains present. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:4903, 949f3f52121b)
  • Browser prerequisite and existing installer pattern: The A–K selector includes browser plugin tests, including a test that launches a persistent Chromium context. The media runner image installs media utilities but no Chromium. The sibling native-live-test job already uses the same Playwright installation command; root and UI Playwright versions are both pinned to 1.63.0. (extensions/browser/src/browser/pw-tools-core.download-current-document.live.test.ts:61, 932440bf30cd)
  • Release necessity check: The latest supplied release contains a Chromium installation restricted to native-live-test, which does not cover the separately hosted A–K row. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml, c074824a27c9)
  • Focused regression guard: The added assertion protects the A–K restriction, installed command, and ordering between harness setup and credential hydration. It extends the existing release-workflow contract test without adding process boots or timers. (test/scripts/package-acceptance-workflow.test.ts:10443, 932440bf30cd)
  • Captured validation evidence: The supplied PR body reports a passing focused assertion, workflow checks, diff checks, and prior scoped review, and explicitly says no live workflow was redispatched. The linked Full Release Validation run is confirmed failed, but its top-level job metadata does not independently establish the Chromium failure trace. No tests or target code were executed during this review. (932440bf30cd)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 9ce1498 into main Oct 2, 2026
152 checks passed
@RomneyDa
RomneyDa deleted the fix/release-live-chromium branch October 2, 2026 02:54
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
RomneyDa added a commit that referenced this pull request Oct 6, 2026
* ci(release): install Chromium for A-K live tests (#163178)

(cherry picked from commit 9ce1498)

* ci(release): pin reachable live provider models (#163177)

(cherry picked from commit 0fa2ddd)

* test(opencode): refresh free live tool model (#163470)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit cd7c2d2)

* test: synchronize Telegram recorder failure admission

Gate the synthetic control timeline on the recorder's durable failure receipt so slow filesystem publication cannot overtake the intended failure precondition. Preserve every assertion and align the touched fixture with the existing lint rules.

(cherry picked from commit 0dfb96f)

* fix(ui): reconcile end after layout correction (#166261)

(cherry picked from commit 51f772a)

* fix(ci): forward live video provider credentials (#164317)

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit d0ce76b)

* fix(security): backport MCP dependency advisory fix

(cherry picked from commit c39d9b0)

* fix(test): make live qualification waits event driven

* fix(test): Gateway e2e connect fails with 1006 when another fixture takes the instance port (#163003)

gateway-cold-agent-abort intermittently failed with `gateway closed during connect (1006)` about 260 ms into the test, too early for its own cold Gateway child to have answered readiness.

OpenClawTestInstance claims its port block and releases its reservation listener right before spawning the child. In-process Gateway fixtures picked ports with getGatewayE2ePortBlock(), a probe that released its claim before returning, and then started a Gateway whose listener retries EADDRINUSE every 500 ms. A fixture that probed the same candidate just before the instance claimed it won the port at the handoff, and the instance's /readyz was answered by that foreign Gateway (1006 while it closed, token mismatch while alive).

getGatewayE2ePortBlock is removed. acquireGatewayE2ePortBlock (beside startClaimedGateway) returns a held claim, and every caller keeps it until the Gateway or server bound to that port has closed, including same-port restarts, unstarted-claim guards, and listener-specific release in the MCP App conformance fixture. Kernel-assigned port-0 binders stay out of scope (the Linux pool excludes the ephemeral range). The test instance gains bounded post-start diagnostics (diagnose(), responder uptime vs child age, Linux listener owners, handshake stage in the close error).

Regression: an instance whose first candidate is an in-process Gateway E2E port must allocate a different port (fails on the probe-only helper).
(cherry picked from commit 8095d77)

---------

Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
* ci(release): install Chromium for A-K live tests (#163178)

(cherry picked from commit 9ce1498)

* ci(release): pin reachable live provider models (#163177)

(cherry picked from commit 0fa2ddd)

* test(opencode): refresh free live tool model (#163470)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit cd7c2d2)

* test: synchronize Telegram recorder failure admission

Gate the synthetic control timeline on the recorder's durable failure receipt so slow filesystem publication cannot overtake the intended failure precondition. Preserve every assertion and align the touched fixture with the existing lint rules.

(cherry picked from commit 0dfb96f)

* fix(ui): reconcile end after layout correction (#166261)

(cherry picked from commit 51f772a)

* fix(ci): forward live video provider credentials (#164317)

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit d0ce76b)

* fix(security): backport MCP dependency advisory fix

(cherry picked from commit c39d9b0)

* fix(test): make live qualification waits event driven

* fix(test): Gateway e2e connect fails with 1006 when another fixture takes the instance port (#163003)

gateway-cold-agent-abort intermittently failed with `gateway closed during connect (1006)` about 260 ms into the test, too early for its own cold Gateway child to have answered readiness.

OpenClawTestInstance claims its port block and releases its reservation listener right before spawning the child. In-process Gateway fixtures picked ports with getGatewayE2ePortBlock(), a probe that released its claim before returning, and then started a Gateway whose listener retries EADDRINUSE every 500 ms. A fixture that probed the same candidate just before the instance claimed it won the port at the handoff, and the instance's /readyz was answered by that foreign Gateway (1006 while it closed, token mismatch while alive).

getGatewayE2ePortBlock is removed. acquireGatewayE2ePortBlock (beside startClaimedGateway) returns a held claim, and every caller keeps it until the Gateway or server bound to that port has closed, including same-port restarts, unstarted-claim guards, and listener-specific release in the MCP App conformance fixture. Kernel-assigned port-0 binders stay out of scope (the Linux pool excludes the ephemeral range). The test instance gains bounded post-start diagnostics (diagnose(), responder uptime vs child age, Linux listener owners, handshake stage in the close error).

Regression: an instance whose first candidate is an in-process Gateway E2E port must allocate a different port (fails on the probe-only helper).
(cherry picked from commit 8095d77)

---------

Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>

(cherry picked from commit 8aa6d7c)

Release adaptation: Select only live-shard evidence handling for disabled llama.cpp, Meta, and Mistral URL/key prerequisites. Re-home regression cases in the stable evidence helper; no workflow credentials, dependencies, or fixture ownership changes.

Companion audit: Historical release bundle is not on pinned main and #166341 has no pinned-main PR mentions. Recorded backports for Chromium, provider routes, workflow secrets, MCP versions, UI and Gateway fixtures are unrelated to the evidence slice; no additional commit.

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant