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

chore: fix CI on Node 20 #8528

Merged
merged 3 commits into from Apr 26, 2023
Merged

chore: fix CI on Node 20 #8528

merged 3 commits into from Apr 26, 2023

Conversation

baseballyama
Copy link
Member

I think on Node20, we need to use pnpm@8.3.1.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with npm test and lint the project with npm run lint

@vercel
Copy link

vercel bot commented Apr 23, 2023

@baseballyama is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@baseballyama baseballyama marked this pull request as ready for review April 23, 2023 06:01
@benmccann
Copy link
Member

Why do you think this is necessary? The CI appears to me to be passing on Node 20. For example: https://github.com/sveltejs/svelte/actions/runs/4751810813/jobs/8441389746

@benmccann benmccann changed the title chore: Fix CI on Node20 chore: fix CI on Node20 Apr 24, 2023
@benmccann benmccann changed the title chore: fix CI on Node20 chore: fix CI on Node 20 Apr 24, 2023
@Conduitry
Copy link
Member

pnpm/pnpm#6424 I was having this exact issue with pnpm and Node 20 in other unrelated projects. It was apparently caused by something in node-fetch and was resolved in pnpm 8.3.1 by forking node-fetch. I'm not sure why CI was passing without it. Does that still build the compiler in one version of Node and then run tests in another? I seem to recall that happening at one point when we wanted to use a version of Rollup that didn't run on Node 8.

@Conduitry
Copy link
Member

Looking more closely at the GH action run you linked to, I do see some Node 18 floating around in the logs. I don't actually see Node 20 mentioned anywhere, but I haven't looked extremely closely.

@baseballyama
Copy link
Member Author

Copy link
Member

@benmccann benmccann left a comment

Choose a reason for hiding this comment

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

Aha! No wonder we didn't see it on the CI. I sent a fix for that here: #8530

The other way of addressing this would be to drop support for Node 14 and then just use pnpm 8 everywhere. Node 14 will be EOL in a week, so that might be preferable

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@benmccann benmccann added this to the 4.x milestone Apr 24, 2023
@benmccann
Copy link
Member

benmccann commented Apr 24, 2023

#8530 passed on Node 20, so it appears pnpm 7.32.0 works with Node 20 and this PR isn't actually necessary

@Conduitry
Copy link
Member

As I commented on #8530, I'm seeing the same issue on 7.32.0 locally as I am with 8 prior to 8.3.1. I suspect there's something being cached (either in the downloading or the installing of the packages) in GitHub actions that is concealing the issue. I would bet that if we tried upgrading any of the dependencies, we'd run into this same issue in CI in Node 20.

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
@benmccann benmccann merged commit 0677d89 into sveltejs:version-4 Apr 26, 2023
13 of 14 checks passed
@gtm-nayan gtm-nayan mentioned this pull request Jun 17, 2023
5 tasks
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

4 participants