Skip to content

Conversation

@dario-piotrowicz
Copy link
Contributor

No description provided.

@dominikg
Copy link
Collaborator

i tried executing this locally and it failed because pnpm playwright install-deps tried to sudo something. Is that required?

looks to be coming from here https://github.com/cloudflare/workers-sdk/blob/59eda4af54f8eada5324bbd3014c41c934e566ac/packages/vite-plugin-cloudflare/playground/package.json#L9

@dario-piotrowicz
Copy link
Contributor Author

i tried executing this locally and it failed because pnpm playwright install-deps tried to sudo something. Is that required?

mh... at the very least it is recommended by the playwright docs itself: https://playwright.dev/docs/browsers#install-system-dependencies 🤔

I don't think I've seen that error or sudo things 🤔 (I did test this workflow earlier today too)

what's the specific issue you're seeying?

@dominikg
Copy link
Collaborator

I'm running an arch based distribution locally and playwright isn't geared towards that. However many other tests here use pnpm playwright install chromium without deps or other browsers, so unless your tests need the other browsers and their dependencies i would prefer you change the script to only install chromium without dependencies as to avoid downloading unused things all over.

@dario-piotrowicz
Copy link
Contributor Author

I'm running an arch based distribution locally and playwright isn't geared towards that. However many other tests here use pnpm playwright install chromium without deps or other browsers, so unless your tests need the other browsers and their dependencies i would prefer you change the script to only install chromium without dependencies as to avoid downloading unused things all over.

Ok, that's a good point, I'll look into that, thanks 🙂

@dario-piotrowicz
Copy link
Contributor Author

@dominikg it should be fixed now 🙂

@dominikg
Copy link
Collaborator

great, ran the test locally and it passed 👍

@dominikg dominikg merged commit b4cb110 into vitejs:main Feb 14, 2025
1 check passed
@dario-piotrowicz dario-piotrowicz deleted the dario/vite-plugin-cloudflare branch February 17, 2025 09:58
@dario-piotrowicz
Copy link
Contributor Author

I just now realized you merged the PR, thanks a bunch @dominikg 😄

@dominikg
Copy link
Collaborator

np, unfortunately sth failed from corepack with pnpm, will investigate later

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