Skip to content

Commit 51b7812

Browse files
ci(canary): install Chrome Beta via apt + note Firefox-Beta cannot be a lane (#124)
npx playwright install chrome-beta downloads the browser and intermittently hangs for the full timeout on GitHub-hosted runners (the flake ci.yml sidesteps with the Playwright container) -- the dispatch validation hung on exactly that step. Install Chrome Beta from Google's apt repo instead; Playwright's chrome-beta channel drives the system binary. Also document why there is no Firefox-Beta lane (Playwright ships its own patched Firefox tracking Stable and cannot drive a branded/beta Firefox).
1 parent 21bb8dc commit 51b7812

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/browser-canary.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
# CI browser. The pinned, blocking CI in ci.yml stays the source of truth; this is
1010
# signal only.
1111
#
12+
# Chromium-only: Playwright ships its own patched Firefox that tracks Firefox *Stable*
13+
# and cannot drive a branded/beta Firefox (there is no `firefox` channel, only
14+
# `chrome*`/`msedge*`), so there is no Firefox-Beta lane to add here. Firefox is covered
15+
# by the pinned e2e in ci.yml plus deliberate Playwright-version bumps.
16+
#
1217
# Non-blocking by construction: it runs on a schedule + manual dispatch, never on
1318
# pull_request, so it is never a required status context and can never red-wall a merge.
1419
# A failure here is a heads-up to investigate, not a gate.
@@ -41,7 +46,15 @@ jobs:
4146
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
4247

4348
- name: Install Chrome Beta
44-
run: npx playwright install --with-deps chrome-beta
49+
# Install via Google's apt repo, NOT `npx playwright install chrome-beta`, which
50+
# downloads the browser and intermittently hangs for the whole timeout on
51+
# GitHub-hosted runners (the flake ci.yml sidesteps with the Playwright container).
52+
# Playwright's `chrome-beta` channel then drives this system binary.
53+
run: |
54+
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg
55+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
56+
sudo apt-get update
57+
sudo apt-get install -y google-chrome-beta
4558
4659
- name: Build
4760
run: npm run build

0 commit comments

Comments
 (0)