Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable playwright browser cache in CI #1450

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

swrichards
Copy link
Collaborator

@swrichards swrichards commented Oct 17, 2024

As per the Playwright docs, caching browsers is not recommended, both because downloading the binary is not much slower, but also because system dependencies are required, and these cannot be cached. Even worse, the system dependencies can become stale as the CI images get upgraded. This seems to have happened recently, with persistent "It looks like you are using Playwright Sync API inside the asyncio loop." errors sporadically appearing (in this case, for webkit only) and this being fixed, without further code changes, by disabling the browser cache.

As per the Playwright docs, caching browsers is not recommended, both
because downloading the binary is not much slower, but also because
system dependencies are required, and these cannot be cached. Even
worse, the system dependencies can become stale as the CI images
get upgraded. This seems to have happened recently, with persistent
"It looks like you are using Playwright Sync API inside the asyncio
loop." errors sporadically appearing (in this case, for webkit only)
and this being fixed, without further code changes, by disabling the
browser cache.
@swrichards swrichards requested a review from pi-sigma October 17, 2024 08:01
@swrichards swrichards marked this pull request as ready for review October 17, 2024 08:08
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.59%. Comparing base (224f34b) to head (728a457).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1450   +/-   ##
========================================
  Coverage    94.59%   94.59%           
========================================
  Files         1071     1071           
  Lines        39704    39704           
========================================
  Hits         37557    37557           
  Misses        2147     2147           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alextreme alextreme merged commit 2f79b73 into develop Oct 17, 2024
20 checks passed
@alextreme alextreme deleted the disable-playwright-browser-cache branch October 17, 2024 08:35
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.

4 participants