Skip to content

Use Playwright-managed Chromium for devtools#31

Merged
cbusillo merged 1 commit intomainfrom
harden-devtools-playwright-chromium
May 4, 2026
Merged

Use Playwright-managed Chromium for devtools#31
cbusillo merged 1 commit intomainfrom
harden-devtools-playwright-chromium

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

@cbusillo cbusillo commented May 4, 2026

Summary

  • Replace the xtradeb Launchpad PPA Chromium install in runtime-devtools with pinned Playwright-managed Chromium.
  • Set CHROME_BIN to /usr/local/bin/chromium-playwright and update the devtools smoke test fallback path.
  • Document the Playwright-managed Chromium contract in README.

Refs #23

Why

The xtradeb PPA endpoint has been timing out (ppa.launchpadcontent.net:443), leaving main red even for docs-only changes. Playwright provides multi-arch Chromium downloads with CDN fallbacks and avoids Ubuntu Snap-in-Docker issues.

Local Validation

  • git diff --check
  • shellcheck scripts/smoke-devtools.sh
  • actionlint .github/workflows/*.yml
  • jq empty .github/github-repo-workflow.json
  • docker build -t odoo-docker:verify-devtools-playwright --target runtime-devtools .
  • scripts/smoke-devtools.sh odoo-docker:verify-devtools-playwright
  • docker build --platform linux/amd64 -t odoo-docker:verify-devtools-playwright-amd64 --target runtime-devtools .
  • scripts/smoke-devtools.sh odoo-docker:verify-devtools-playwright-amd64
  • docker run --rm --platform linux/amd64 --entrypoint /bin/bash odoo-docker:verify-devtools-playwright-amd64 -lc 'test -x "${CHROME_BIN}" && "${CHROME_BIN}" --version && readlink -f "${CHROME_BIN}"'\n\n## Notes\n- Local arm64 image inspected at about 1.0 GB.\n- Playwright downloads Chromium plus its ffmpeg helper; only Chromium is exposed through CHROME_BIN.\n- The Chromium executable directory differs by architecture (chrome-linux on arm64, chrome-linux64 on amd64), so the Dockerfile discovers either path.

@cbusillo cbusillo force-pushed the harden-devtools-playwright-chromium branch from 312300e to 4f328e4 Compare May 4, 2026 00:43
@cbusillo cbusillo merged commit f49565f into main May 4, 2026
9 checks passed
@cbusillo cbusillo deleted the harden-devtools-playwright-chromium branch May 4, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant