Skip to content

Skip Playwright OS dependency install in CI - #40

Open
kbond wants to merge 1 commit into
playwright-php:mainfrom
kbond:skip-with-deps
Open

Skip Playwright OS dependency install in CI#40
kbond wants to merge 1 commit into
playwright-php:mainfrom
kbond:skip-with-deps

Conversation

@kbond

@kbond kbond commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

The ubuntu-latest runner image already ships every shared library chromium needs — a CI run logs is already the newest version for all 26 of them. The only thing --with-deps actually installs is nine font packages (fonts-ipafont-gothic, xfonts-cyrillic, fonts-wqy-zenhei, …), which this suite doesn't need: it asserts on DOM text and takes no screenshots.

Measured with an A/B matrix inside a single CI run, so both arms hit the same runner image and the same Chromium build — the playwright install step drops from 23.1s to 10.4s. Most of the saving is apt-get update (4.3s) plus the font download and dpkg work.

This is safe here specifically because the suite is chromium-only. On the same runner --with-deps installs 40 packages for firefox (codecs) and 181 for webkit (GStreamer, glib-networking), so it must not be skipped for those.

Worth revisiting if we ever add visual comparison or tests that render non-Latin text.

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