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

[code-infra] Remove custom playwright installation steps #43881

Merged
merged 11 commits into from
Sep 27, 2024

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Sep 25, 2024

Closes #43880

The caching currently is not working and fixing it decreases performance even more.
In fact it's not even necessary to install those browsers as we use the mcr.microsoft.com/playwright:v1.47.1-focal image which comes with the correct ones preinstalled, just have to remove the custom install location so playwright can find them instead of the ones we install after.

We were basically:

  • downloading stale browsers from cache
  • re-installing latest browsers in a custom location
  • on an image that already has the right browsers installed in the default location

This should reduce runtime of jobs that use a browser with ~40s

Also slightly cleaning up the corepack steps


To investigate next: is it possible to use the regular node image but with a playwright install step, and what would be the performance impact vs. using mcr.microsoft.com/playwright:v1.47.1-focal? See #43883

@Janpot Janpot added the scope: code-infra Specific to the core-infra product label Sep 25, 2024
@mui-bot
Copy link

mui-bot commented Sep 25, 2024

Netlify deploy preview

https://deploy-preview-43881--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 5646b1f

@Janpot Janpot changed the title [code-infra] Remove playwright cache [code-infra] Remove custom playwright installation Sep 25, 2024
@Janpot Janpot changed the title [code-infra] Remove custom playwright installation [code-infra] Remove custom playwright installation steps Sep 25, 2024
@Janpot Janpot marked this pull request as ready for review September 25, 2024 10:57
@Janpot Janpot requested a review from a team September 25, 2024 10:57
@@ -74,25 +73,15 @@ commands:
steps:
- run:
name: Install pnpm package manager
command: |
corepack enable
corepack prepare pnpm@latest-8 --activate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we dont need this anymore because we are defining it in the package.json?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I don't even think it was ever needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants