Skip to content

Improve: cache the browsers' system packages in the end-to-end job - #574

Merged
SandObserver merged 3 commits into
mainfrom
chore/e2e-cache-apt-packages
Oct 27, 2026
Merged

SandObserver merged 3 commits into
mainfrom
chore/e2e-cache-apt-packages

Conversation

@SandObserver

@SandObserver SandObserver commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Cache the Debian packages that playwright install --with-deps downloads, keyed by runner image and package-lock.json.
  • On a cache hit, install them with dpkg -i and install only the browsers. When the cached set does not fit the runner image, repair with apt-get -f install and fall back to the full --with-deps install.
  • Keep downloaded packages during the full install so the cache can be saved.

Testing
All green. The first e2e run filled the cache; the next installed from it in 17 s.

Changelog

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.

@SandObserver SandObserver added the github_actions Pull requests that update GitHub Actions code label Oct 27, 2026
@SandObserver
SandObserver merged commit 40948d9 into main Oct 27, 2026
8 checks passed
@SandObserver
SandObserver deleted the chore/e2e-cache-apt-packages branch October 27, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant