Skip to content

ci: fix browser-test workflow by setting PUPPETEER_EXECUTABLE_PATH#2721

Merged
mroderick merged 1 commit into
mainfrom
fix-browser-test
Jun 2, 2026
Merged

ci: fix browser-test workflow by setting PUPPETEER_EXECUTABLE_PATH#2721
mroderick merged 1 commit into
mainfrom
fix-browser-test

Conversation

@mroderick

Copy link
Copy Markdown
Member

Problem

The browser-test job started failing with:

Error: Could not find Chrome (ver. 147.0.7727.57). This can occur if either
 1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
 2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).

Failed run

Cause

Puppeteer v24 (installed via puppeteer@^24.42.0) no longer falls back to the system-installed google-chrome-stable when the cached browser is missing. The workflow sets PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1, so nothing is downloaded during npm ci, and Puppeteer exits immediately.

Fix

Set PUPPETEER_EXECUTABLE_PATH to the system Chrome binary so Puppeteer uses it instead of looking in its cache. This env var is read by Puppeteer's getConfiguration() and is picked up by both @mochify/driver-puppeteer (used in test-coverage) and direct puppeteer.launch() calls (used in test-headless / test-webworker).

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (49bf019) to head (8faa5c1).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2721   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files          39       39           
  Lines        1810     1810           
=======================================
  Hits         1763     1763           
  Misses         47       47           
Flag Coverage Δ
unit 97.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mroderick mroderick marked this pull request as ready for review June 2, 2026 20:42
@mroderick mroderick merged commit 6255b73 into main Jun 2, 2026
18 checks passed
@mroderick mroderick deleted the fix-browser-test branch June 2, 2026 20:42
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