Skip to content

fix: bound Playwright browser install with a timeout and retry - #34

Merged
josephfusco merged 1 commit into
mainfrom
fix/playwright-install-hang
Aug 20, 2026
Merged

fix: bound Playwright browser install with a timeout and retry#34
josephfusco merged 1 commit into
mainfrom
fix/playwright-install-hang

Conversation

@josephfusco

Copy link
Copy Markdown
Collaborator

Summary

  • The Playwright job on main hung for the full 30-minute timeout-minutes budget and got cancelled — a stalled archive.ubuntu.com mirror let playwright install --with-deps sit silently with no timeout of its own.
  • Wraps each browser install attempt in timeout 5m with one retry, so a stalled mirror fails or recovers within ~10 minutes instead of eating the whole job.
  • Restores the Playwright browser cache key fix (keyed on the resolved Playwright version rather than the full lockfile hash) that was written but never actually landed on main.

Test plan

  • CI passes on this PR, including the playwright / Playwright Tests job completing well under 30 minutes
  • Confirm cache hit/miss behavior for Cache Playwright browsers looks correct in the job logs

A hung archive.ubuntu.com mirror let `playwright install --with-deps`
sit silently for 27+ minutes, burning the job's full 30-minute
timeout-minutes budget on a single stalled apt-get fetch instead of
failing fast. Wrap each install attempt in `timeout 5m` and retry once,
so a stalled mirror fails or recovers within ~10 minutes instead of
consuming the whole job.

Also restores the Playwright browser cache key fix (key on the
resolved Playwright version, not the full lockfile hash) that
was written but never actually merged to main -- it only existed on
the stale fix/revert-hanging-globalsetup-warmup branch, which got
squash-merged before that particular commit was cherry-picked over.
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.90%. Comparing base (7b5de63) to head (d5d235e).

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #34   +/-   ##
=========================================
  Coverage     63.90%   63.90%           
  Complexity       35       35           
=========================================
  Files             7        7           
  Lines           266      266           
=========================================
  Hits            170      170           
  Misses           96       96           
Flag Coverage Δ
multisite 63.90% <ø> (ø)
phpunit 64.63% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@josephfusco
josephfusco merged commit dff75ea into main Aug 20, 2026
17 checks passed
@josephfusco
josephfusco deleted the fix/playwright-install-hang branch August 20, 2026 05:23
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