Skip to content

ci: install Chromium and Firefox without their system packages - #74

Merged
alekswebnet merged 1 commit into
mainfrom
fix/ci-browser-deps
Oct 23, 2026
Merged

alekswebnet merged 1 commit into
mainfrom
fix/ci-browser-deps

Conversation

@alekswebnet

Copy link
Copy Markdown
Contributor

Closes #73.

The test job installs Chromium, and the Firefox browser suite installs Firefox, without --with-deps. WebKit keeps it.

--with-deps made apt fetch 51.6 MB of Ubuntu packages for Firefox and 25.9 MB for Chromium. On some runners the mirror answers at 40 to 100 kB/s, and that step then took 8, 13 and 20 minutes on 2026-10-23, where it usually takes two seconds. The figures are in #73.

Nothing it adds is used:

  • The runner image ships Chrome and Firefox, so the libraries these browsers link against are already there.
  • What apt added is fonts, Xvfb and FFmpeg's codecs (plus libnss3-tools and some upgrades for Chromium).
  • The suites run headless, so Xvfb is never started.
  • No test waits on decoded media.

If a library were missing after all, Playwright would refuse to launch the browser with "Host system is missing dependencies", so this cannot fail quietly.

Changes

.github/workflows/ci.yml:

  • test job: playwright install chromium.
  • engines job: playwright install ${{ matrix.deps }} ${{ matrix.browser }}, with deps: --with-deps added to the WebKit entry only.

Testing

This PR's own CI run is the test.

🤖 Generated with Claude Code

playwright install --with-deps fetched 51.6 MB of Ubuntu packages for
Firefox and 25.9 MB for Chromium. Some runners reach the mirror at 40 to
100 kB/s: on 2026-10-23 that step took 8, 13 and 20 minutes, where it
usually takes two seconds.

Nothing it adds is used. The runner image ships Chrome and Firefox, so
the libraries they link against are there; apt added fonts, Xvfb and
FFmpeg's codecs, and the suites run headless and decode no video. WebKit
keeps --with-deps: it needs GStreamer and the rest.

Closes #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

CI waits up to 20 minutes on Ubuntu's mirror for packages Chromium and Firefox do not use

1 participant