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

switch e2e tests to use corepack #1632

Merged
merged 3 commits into from
Aug 8, 2022
Merged

Conversation

chris-olszewski
Copy link
Contributor

A quick and dirty switch to use corepack for managing package managers for our e2e tests.
A few things to note:

  • Running these tests on a local machine will enable corepack on that machine, this could be undesired for some devs.
  • I found that it is necessary to forcibly add the corepack install dir to the top of $PATH in case a dev has a package manager installed elsewhere that would take priority.

At the moment this is only useful for the Yarn/Berry split, but it would simplify #1612 which adds pnpm6 to e2e tests quite a bit.

A quick and dirty switch to use corepack for managing package managers for our e2e tests.
A few things to note:
 - Running these tests on a local machine will enable corepack on that machine, this could be undesired for some devs.
 - I found that it is necessary to forcibly add the corepack install dir to the top of $PATH in case a dev has a package manager installed elsewhere that would take priority.
@vercel
Copy link

vercel bot commented Aug 4, 2022

@chris-olszewski is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@chris-olszewski chris-olszewski force-pushed the e2e_corepack branch 14 times, most recently from 3f2db08 to 5a026ad Compare August 5, 2022 23:00
# higher we can remove the second install command.
run: pnpm install; echo $PATH; npm install --force --global corepack@latest

- name: Debug CI @donotmerge
Copy link
Member

Choose a reason for hiding this comment

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

Leaving this in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this will be taken out. I've been resorting to print debugging for some issues that only show up on Windows CI 🙃

@chris-olszewski chris-olszewski force-pushed the e2e_corepack branch 2 times, most recently from 10157ca to c50aa15 Compare August 8, 2022 15:56
@kodiakhq kodiakhq bot merged commit a5017b2 into vercel:main Aug 8, 2022
kodiakhq bot pushed a commit that referenced this pull request Aug 8, 2022
An action I was using to debug CI jobs in #1632 accidentally got merged
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.

None yet

3 participants