Skip to content

Remove Playwright browser caching from CI workflows#149

Merged
mcclowes merged 1 commit intomainfrom
claude/fix-pdf-build-LjKjG
Jan 26, 2026
Merged

Remove Playwright browser caching from CI workflows#149
mcclowes merged 1 commit intomainfrom
claude/fix-pdf-build-LjKjG

Conversation

@mcclowes
Copy link
Copy Markdown
Owner

Summary

Simplifies the CI workflow by removing the Playwright browser caching logic and conditional installation steps. The workflows now always perform a fresh installation of Playwright browsers with dependencies.

Changes

  • Removed actions/cache@v4 step that cached Playwright browsers at ~/.cache/ms-playwright
  • Removed conditional logic based on cache hits (steps.playwright-cache.outputs.cache-hit)
  • Simplified browser installation to always run npx playwright install chromium --with-deps
  • Removed separate npx playwright install-deps chromium step that only ran on cache hits
  • Applied changes to both the test coverage job and the build job in the CI workflow

Rationale

This change trades caching complexity for simplicity and reliability. While caching can improve CI performance, it introduces conditional logic that can be error-prone. Always performing a fresh installation ensures consistent behavior across runs and eliminates potential issues with stale cached browsers or missing system dependencies.

Remove cache-based conditional logic for Playwright browser installation.
The cache path (~/.cache/ms-playwright) didn't match where Playwright
was looking for browsers (node_modules/playwright-core/.local-browsers/),
causing build failures when cache was hit but browsers weren't found.

Always running 'npx playwright install chromium --with-deps' ensures
the correct browser version is installed for the current Playwright
version in both test and build jobs.
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
cv Ready Ready Preview, Comment Jan 26, 2026 2:41pm

Request Review

@mcclowes mcclowes merged commit 06fe337 into main Jan 26, 2026
5 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.

2 participants