Skip to content

ci: browser tests in Playwright's container image - #36

Merged
eizedev merged 1 commit into
mainfrom
ci/playwright-container
Nov 6, 2026
Merged

eizedev merged 1 commit into
mainfrom
ci/playwright-container

Conversation

@eizedev

@eizedev eizedev commented Nov 6, 2026

Copy link
Copy Markdown
Owner

The browser job ran into its 20 minute timeout twice today before a single test started: npx playwright install --with-deps fetched the system packages from the Ubuntu mirror at a few KB/s (59 packages in 19 minutes). The tests now run in Playwright's own image, which carries the browsers and their libraries; nothing is installed with apt.

  • ci.yml: a job site builds the documentation site (it needs pwsh, which the Playwright image lacks) and uploads it; browser runs in mcr.microsoft.com/playwright:v1.64.1-noble, pinned to its digest, as user 1001 (Playwright's recommendation for Firefox in containers), and downloads the site. Timeout 15 minutes. The browser cache step is gone, the image has the browsers.
  • tests/js/ci.test.js: fails when the image version in ci.yml differs from @playwright/test in package-lock.json. Dependabot raises the npm package only, so its pull request stays red until the image is raised with it.
  • AGENTS.md: says so.

Test plan

  • actionlint on ci.yml
  • npm test 67/67; the new test fails with a mismatched image tag (checked by changing the tag locally)
  • The browser job of this pull request runs in the container and passes

Places checked: README and AGENTS.md (local commands keep npx playwright install, unchanged), CONTRIBUTING.md (no CI details), release.yml (runs no browser tests).

🤖 Generated with Claude Code

…ng system packages with apt

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@eizedev
eizedev merged commit 20c4960 into main Nov 6, 2026
9 checks passed
@eizedev
eizedev deleted the ci/playwright-container branch November 6, 2026 12:17
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