Skip to content

Install Playwright Chromium without --with-deps in CI - #2607

Merged
spaceninja merged 3 commits into
mainfrom
ci/drop-playwright-with-deps
Oct 26, 2026
Merged

spaceninja merged 3 commits into
mainfrom
ci/drop-playwright-with-deps

Conversation

@spaceninja

@spaceninja spaceninja commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Overview

About 1 in 15 CI runs takes 6–11 minutes instead of 1–2. The slowdown is always in the Install Playwright Chromium step, and specifically the --with-deps part, which installs about 25 MB of system packages (mostly fonts, plus xvfb) from Ubuntu's package mirror. That mirror sometimes slows to 40–60 kB/s. The Chromium download itself, which comes from Playwright's CDN, takes a few seconds even in the slow runs.

The ubuntu-latest runner image already ships Google Chrome, so the libraries Chromium needs to launch are already installed. This PR drops --with-deps so the step skips apt entirely. A CI run on this branch passed every browser test with no missing-dependency warnings, and the install step took 7 seconds. Since the test job no longer depends on the mirror, this PR also lowers its cap from #2606 from 15 minutes to 10, matching the other jobs.

Screenshots

Testing

  • Open the Checks tab on this PR and click into the test job
  • Expand the Install Playwright Chromium step. It should finish in seconds, with no apt-get output and no "Host system is missing dependencies" warning
  • Expand the Run Tests step. The browser test files (names ending in .browser.test.ts) should all pass

The ubuntu-latest image already ships Google Chrome, so the system
libraries Chromium needs are present. --with-deps only added ~25 MB of
fonts from Ubuntu's package mirror, which sometimes slows to tens of kB/s
and has stretched this step from ~16 seconds to 6-10 minutes.
@changeset-bot

changeset-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 579def3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cloudfour-patterns ready!

Name Link
🔨 Latest commit 579def3
🔍 Latest deploy log https://app.netlify.com/projects/cloudfour-patterns/deploys/6adf9f1c9df8a44f788c9561
😎 Deploy Preview https://deploy-preview-2607--cloudfour-patterns.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…th-deps

* origin/main:
  Cap CI job run time with timeout-minutes (#2606)
The test job's 15-minute cap left room for a slow Ubuntu package
mirror during `playwright install --with-deps`. Without that flag the
job no longer touches the mirror, so it gets the same 10-minute cap as
the other jobs, and the explanation moves above `jobs:` to cover all four.
@spaceninja
spaceninja marked this pull request as ready for review October 26, 2026 20:30
@spaceninja
spaceninja merged commit ed680fa into main Oct 26, 2026
8 checks passed
@spaceninja
spaceninja deleted the ci/drop-playwright-with-deps branch October 26, 2026 20:32
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