Skip to content

fix(qa): provision ffmpeg for Playwright scenarios - #119064

Merged
steipete merged 1 commit into
mainfrom
codex/qa-98-playwright-ffmpeg
Aug 4, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-98-playwright-ffmpeg

Conversation

@steipete

@steipete steipete commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #119058

What this fixes

The shared QA Playwright scenario runner opted out of installing Playwright's ffmpeg binary even though registered scenarios can require it through recordVideo. On a clean runner, those scenarios failed before opening a page.

This restores the setup helper's normal contract for Playwright scenarios: ensure the runnable browser and the managed ffmpeg binary before executing the selected test. The separate QA web runtime does not record video and keeps its existing opt-out.

Root cause and scope

  • extensions/qa-lab/src/test-file-scenario-runner.ts passed --skip-ffmpeg for every Playwright scenario.
  • Playwright rejects browserContext.newPage() when recordVideo is configured and its managed ffmpeg binary is absent.
  • Five registered Playwright scenario files currently record video unconditionally, so changing only the first failing UI test would leave the catalog runner broken.

Diff: 2 files, +2/-2. Production delta: +1/-1. No product runtime, scenario schema, config, protocol, dependency, or changelog change.

Reproduction

Current-main baseline 25e3b6c9b79dadb912195d86fbff968602d58798 failed twice on clean Testbox tbx_01kz57r042hwwxqt4p3dfqf6hr:

Proof

Candidate Testbox tbx_01kz58enw6h1dd4swytz0s399g, run https://github.com/openclaw/openclaw/actions/runs/30870884320:

  • focused runner suite: 45/45 passed
  • cold-cache control-ui-shell-routing: passed after the setup log downloaded Playwright ffmpeg v1011 (2.3 MiB), then launched the same real Chromium assertion
  • registered unconditional-video scenario matrix: 5/5 passed (control-ui-shell-routing, device pairing, token/password auth, static-asset recovery, update status)
  • path-scoped full changed gate: passed
  • OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build: passed, including all 149 public plugin-sdk subpaths and Control UI performance checks
  • final exact-base Codex autoreview: clean, no accepted/actionable findings, confidence 0.99
  • git diff --check: passed
  • public model identifier gate: passed; no identifiers added or changed

Exact pushed head 126020b9b2b459d1c1252847ee8c54f50d3ed3c3 was then verified from a clean branch-pinned checkout on Testbox tbx_01kz59eyds27mpd7jq3p9qbywp, run https://github.com/openclaw/openclaw/actions/runs/30871762572:

  • remote HEAD matched the PR SHA and git status --porcelain was empty
  • focused runner suite: 45/45 passed
  • cold-cache control-ui-shell-routing: downloaded Playwright ffmpeg v1011 and passed the same Chromium assertion in 21.9 seconds

Best-fix judgment

The generic Playwright scenario runner owns dependency readiness for every registered Playwright scenario. Keeping its global opt-out and weakening individual video-producing tests would duplicate policy and leave sibling scenarios dependent on warm caches. Restoring the helper default is the smallest complete owner-boundary fix.

Changelog

Not required: internal QA runner repair; release-note context is in this PR.

AI assistance

AI-assisted implementation and testing. No agent transcript is attached.

@steipete
steipete merged commit cd50780 into main Aug 4, 2026
129 of 133 checks passed
@steipete
steipete deleted the codex/qa-98-playwright-ffmpeg branch August 4, 2026 02:40
@steipete

steipete commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main:
  test(qa): prove agent tool approval controls (#119029)
  docs(agents): require exact-head ClawSweeper re-review after post-review pushes (#119069)
  fix(qa): provision ffmpeg for Playwright scenarios (#119064)
  test(qa): repair scenario catalog baselines (#119062)
  test(qa): prove agent session scope continuity (#119032)
  test(qa): prove workspace mutation tools (#119021)
  fix(cli): honor local port in gateway call (#119046)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
osolmaz pushed a commit to abarsegov/openclaw that referenced this pull request Aug 4, 2026
* origin/main:
  test(qa): prove agent tool approval controls (openclaw#119029)
  docs(agents): require exact-head ClawSweeper re-review after post-review pushes (openclaw#119069)
  fix(qa): provision ffmpeg for Playwright scenarios (openclaw#119064)
  test(qa): repair scenario catalog baselines (openclaw#119062)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* origin/main:
  test(qa): prove agent tool approval controls (openclaw#119029)
  docs(agents): require exact-head ClawSweeper re-review after post-review pushes (openclaw#119069)
  fix(qa): provision ffmpeg for Playwright scenarios (openclaw#119064)
  test(qa): repair scenario catalog baselines (openclaw#119062)
  test(qa): prove agent session scope continuity (openclaw#119032)
  test(qa): prove workspace mutation tools (openclaw#119021)
  fix(cli): honor local port in gateway call (openclaw#119046)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* origin/main:
  test(qa): prove agent tool approval controls (openclaw#119029)
  docs(agents): require exact-head ClawSweeper re-review after post-review pushes (openclaw#119069)
  fix(qa): provision ffmpeg for Playwright scenarios (openclaw#119064)
  test(qa): repair scenario catalog baselines (openclaw#119062)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QA Playwright scenarios skip required ffmpeg on clean runners

1 participant