Repository navigation
ci: run Playwright on the runner's preinstalled Chrome - #78
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017HETWqE94mR3h7bZLuac8q
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.
npx playwright install --with-deps chromiumdownloads a ~150 MB browser and apt-installs its system libraries on every run. The apt part occasionally stalls for many minutes on GitHub's runners (run 39972539793: the same step took 22s in one job and hung in the other).GitHub's
ubuntu-latestimage already ships Google Chrome with its libraries, so CI now runs the smoke suite on it:playwright.config.js:PLAYWRIGHT_CHANNEL(e.g.chrome) selects an installed browser channel for the chromium project..github/workflows/ci.yaml: both jobs that run the suite ("Build and smoke test" and "Docker image smoke test") drop the install step and setPLAYWRIGHT_CHANNEL: chrome.Local runs are unchanged: Playwright's bundled Chromium by default, or
PLAYWRIGHT_CHROMIUM_EXECUTABLE.Verification
PLAYWRIGHT_CHANNEL=chromeon a machine without Chrome, Playwright fails with "Chromium distribution 'chrome' is not found", which shows the setting reaches the launcher.Generated by Claude Code