Skip to content

Cache Playwright browsers in CI#452

Merged
nitrobass24 merged 1 commit into
developfrom
ci/cache-playwright
May 2, 2026
Merged

Cache Playwright browsers in CI#452
nitrobass24 merged 1 commit into
developfrom
ci/cache-playwright

Conversation

@nitrobass24
Copy link
Copy Markdown
Owner

Summary

  • Cache Playwright browser binaries (~150 MB) between CI runs using actions/cache
  • Cache npm deps via setup-node cache option
  • Use npm ci instead of npm install for deterministic installs
  • On cache hit, skip browser download and only install system deps (apt packages)
  • Cache key includes package-lock.json hash so it invalidates on Playwright version bumps

Test plan

  • First run: cache miss, full install (same speed as before)
  • Second run: cache hit, skips browser download (faster)
  • E2E tests still pass

🤖 Generated with Claude Code

- Cache npm deps via setup-node cache option
- Use npm ci instead of npm install for deterministic installs
- Cache Playwright browser binaries (~150 MB) in ~/.cache/ms-playwright
- On cache hit, only install system deps (apt packages) since browsers
  are already cached
- Cache key includes package-lock.json hash so it invalidates on
  Playwright version bumps

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 2, 2026

Warning

Rate limit exceeded

@nitrobass24 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 40 minutes and 51 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 23e07081-0cef-4615-a356-85376188742b

📥 Commits

Reviewing files that changed from the base of the PR and between 55d77c6 and 6665337.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/cache-playwright

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 40 minutes and 51 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@nitrobass24 nitrobass24 merged commit c3f8a91 into develop May 2, 2026
17 of 18 checks passed
@nitrobass24 nitrobass24 deleted the ci/cache-playwright branch May 2, 2026 00:20
nitrobass24 added a commit that referenced this pull request May 2, 2026
The Playwright caching added in #452 references src/e2e-playwright/package-lock.json, but the root .gitignore was filtering all package-lock.json files except the angular and website ones. With no lockfile in the repo, actions/setup-node failed at "Some specified paths were not resolved, unable to cache dependencies" and the npm ci step would have failed too.

Add an allow-list entry for src/e2e-playwright and check in the generated lockfile.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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