Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Cache Playwright browser dependencies #826

Description

@Rarst

Is your feature request related to a problem? Please describe.

The build image doesn't seem to come with browser binaries, which could be used by Playwright for testing.

They need to be explicitly installed, however their target location .cache/ms-playwright is not cached by Netlify and the dependencies are re-downloaded in every build.

Describe the solution you'd like

Playwright dependencies to be cached by default.

Describe alternatives you've considered

I've tried third party netlify-plugin-cache to cache it, but according to support Netlify has plugin issues with current Node 18 version.

Additional context

8:05:26 PM: > npx playwright install chromium
8:05:27 PM: Downloading Chromium 104.0.5112.20 (playwright build v1012)...
8:05:29 PM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 132.8 Mb
8:05:32 PM: Chromium 104.0.5112.20 (playwright build v1012) downloaded to /opt/buildhome/.cache/ms-playwright/chromium-1012
8:05:32 PM: Downloading FFMPEG playwright build v1007...
8:05:33 PM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.6 Mb
8:05:33 PM: FFMPEG playwright build v1007 downloaded to /opt/buildhome/.cache/ms-playwright/ffmpeg-1007

Can you submit a pull request?

No, fuzzy on nixes scripting, sorry. :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions