Skip to content

[CI] Cache the apt packages of the browser install - #229

Merged
smnandre merged 2 commits into
playwright-php:mainfrom
smnandre:ci/install-retry-lock
Nov 24, 2026
Merged

smnandre merged 2 commits into
playwright-php:mainfrom
smnandre:ci/install-retry-lock

Conversation

@smnandre

Copy link
Copy Markdown
Member

playwright-install --with-deps installs 173 system packages (136 MB) from the Ubuntu mirror on every job. When the mirror is slow (about 100 kB/s), the first attempt hits the 5-minute timeout, its apt-get keeps running and holds the dpkg lock, and the retries fail on that lock.

The downloaded packages are now cached, keyed by runner image and Playwright version. With a cache hit, apt downloads nothing ("Need to get 0 B"). Only apt-get update still reaches the mirror.

The installer also runs with --verbose, so a stalled install shows where it stops.

@smnandre smnandre changed the title Cache the apt packages of the browser install [CI] Cache the apt packages of the browser install Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@smnandre
smnandre merged commit 790ebb9 into playwright-php:main Nov 24, 2026
10 checks passed
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