Repository navigation
Skip the Playwright browser download in CI - #644
Open
nodeselector wants to merge 1 commit into
Open
nodeselector wants to merge 1 commit into
nodeselector wants to merge 1 commit into
Conversation
@vscode/test-web depends on @playwright/browser-chromium, whose postinstall downloads Chromium. CI never runs a browser, and on the ubuntu-26.04 runner image the download fails with "Playwright does not support chromium on ubuntu26.04-x64", which breaks npm ci.
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed workflow updates consistently skip Playwright’s unnecessary Chromium download in CI while leaving local browser development behavior unchanged, with no active review issues identified.
No open issues 🎉
What changed in this PR
Updates GitHub Actions workflows to skip Playwright's Chromium download during CI dependency installation, avoiding failures on unsupported Ubuntu runner images while preserving browser availability for local development.
Changes:
- Sets
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1at workflow scope. - Applies the setting to build, preview, publish, and release workflows.
- Leaves the local
open-in-browserscript unaffected.
| File | Description |
|---|---|
| .github/workflows/release.yml | Skips Playwright's Chromium download during release-related dependency installation. |
| .github/workflows/publish.yml | Skips Playwright's Chromium download during the publishing workflow's package installation. |
| .github/workflows/build.yml | Skips the unnecessary Playwright Chromium download during the main build workflow. |
| .github/workflows/build-preview.yml | Skips Playwright's Chromium download during preview dependency installation and packaging. |
Review effort: Lite (adaptive)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
buildfails on theubuntu-26.04runner image:npm ciruns the@playwright/browser-chromiumpostinstall (pulled in by@vscode/test-web), which exits withPlaywright does not support chromium on ubuntu26.04-x64.open-in-browserscript needs Chromium, so the workflows now setPLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1instead of pinningruns-onto an older image.build,build-preview,publishandrelease.Testing: reproduced the failure in an
ubuntu:26.04container with Node 16. Re-running the Chromium postinstall with the variable set skips the download and succeeds. Build, lint and tests pass locally, and CI on this PR runs on the new image.