-
Notifications
You must be signed in to change notification settings - Fork 148
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
lookup: add next #1044
base: main
Are you sure you want to change the base?
lookup: add next #1044
Conversation
- Closes nodejs#1017
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1044 +/- ##
==========================================
- Coverage 96.33% 95.04% -1.29%
==========================================
Files 28 28
Lines 2181 2181
==========================================
- Hits 2101 2073 -28
- Misses 80 108 +28 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good assuming you can get CI to pass. That might be something that needs fixing on the Next side, though, if some of the tests are flaky; maybe a different test command can be created that’s essentially “run the tests that we think should always pass.”
@GeoffreyBooth It looks like windows has been failing on main for awhile https://github.com/nodejs/citgm/commits/main Furthermore, I'm not sure if citgm actually runs any tests against the lookup.json file that I modified. |
@GeoffreyBooth does the CI run |
I’m not very knowledgeable of how CITGM works. Perhaps @targos knows? |
Here's a first test run: https://github.com/nodejs/citgm/actions/runs/7466807218 |
CI doesn't run |
Looks like it didn't install correctly: https://github.com/nodejs/citgm/actions/runs/7466807218/job/20319001003#step:5:12 |
This should fix it: vercel/next.js#60443 |
The postinstall script was failing In the case when you download [a zip](https://codeload.github.com/vercel/next.js/zip/refs/heads/canary) of the repo. This PR fixes it so that `git config` can fail silently in that case when the repo is not using git. - Related to nodejs/citgm#1044 Closes NEXT-2036
@targos Can you try once more now that its fixed? |
Looks like we may need to skip on windows. Otherwise it seems to have passed on mac and linux 🎉 |
@targos I added skip win32. Please run once more (Third time's the charm ☘️ ) |
OK, let's do a full run in Jenkins. |
@targos Looks like pnpm support isn't quite working. Its not selecting the correct version of pnpm
I think we need to make sure |
|
@targos Interesting. Then perhaps |
Why does it need to use a precise version of pnpm? Surely 8.14.0 and 8.14.1 aren’t that different? |
@GeoffreyBooth Next.js is a highly visible project that receives many PRs. We lock down the package manager version so that contributors fail fast when they have the wrong pnpm installed rather than then submitting an issue saying it doesn't work and we have to ask for system details, etc. In theory, a patch version should't matter, but in practice it can and there is no reason to leave it open for interpretation. Thats probably the same reason why the Thankfully, there is a tool to solve this now: corepack. So most of the |
Okay, do you want to update CITGM accordingly? |
Would that be this workflow file? citgm/.github/workflows/test-module.yml Line 59 in 44548b7
|
I can’t seem to find the place where package managers are installed? Can you share the line of code? |
They're just dependencies of CITGM, so they'd get installed via that. |
Should I add corepack support to citgm? Perhaps right before install here? citgm/lib/package-manager/install.js Line 99 in 12e6902
|
Checklist
npm test
passeshere
Related
Co-authored-by: Ethan Arrowood [email protected]