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

deps: cherry-pick 88260bf from node-gyp upstream #56073

Closed

Conversation

StefanStojanovic
Copy link
Contributor

This change cherry-picks a small change from node-gyp needed for running native tests on ClangCL compiled binaries. The change was already approved here, so this is just the official port after the changes landed in node-gyp. Next is the part of the description regarding this change from the original PR:

Enforce MSVC to be used for node-gyp. As far as I can tell, this is the intended way of using node-gyp on Windows. The issue with running the native suites is that now we use Clang to compile Node.js, so config.variables.clang is set to 1, which makes node-gyp generate project files for ClangCL. While we'd like to enable this, that is currently not the priority so for now enforcing MSVC would be the way to go the way I see it. The changes in create-config-gypi.js would be done as a PR in node-gyp and then floated in Node.js until the next node-gyp update.

Tagging relative teams: @nodejs/platform-windows @nodejs/node-gyp

P.S. Since it's already reviewed, I'll request fast-tracking and I'm planning to land it after the first approval.

Refs: nodejs/node-gyp#3098
Refs: #55784

This change cherry-picks a small change from node-gyp needed for
running native tests on ClangCL compiled binaries.

Refs: nodejs/node-gyp#3098
@StefanStojanovic StefanStojanovic added windows Issues and PRs related to the Windows platform. build Issues and PRs related to build files or the CI. fast-track PRs that do not need to wait for 48 hours to land. labels Nov 29, 2024
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/security-wg

Copy link
Contributor

Fast-track has been requested by @StefanStojanovic. Please 👍 to approve.

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. npm Issues and PRs related to the npm client dependency or the npm registry. labels Nov 29, 2024
@StefanStojanovic StefanStojanovic added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 29, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 29, 2024
@nodejs-github-bot
Copy link
Collaborator

@legendecas
Copy link
Member

Let's release nodejs/node-gyp#3050 as well!

legendecas
legendecas previously approved these changes Dec 2, 2024
@legendecas legendecas self-requested a review December 2, 2024 15:16
@legendecas
Copy link
Member

legendecas commented Dec 2, 2024

Since this is located in the deps/npm, my second think is that this cherry pick would make the npm bundled with nodejs diverged from the one released on npm. I think this might not be a good idea and better to wait npm upgrades. /cc @nodejs/npm

@legendecas legendecas dismissed their stale review December 2, 2024 15:19

dismissed

@wraithgar
Copy link
Contributor

I think this might not be a good idea and better to wait npm upgrades.

Correct. It looks like 10.3.0 was not published yet. Once it is npm can update.

@legendecas
Copy link
Member

legendecas commented Dec 2, 2024

Yes, just noticed that the publish workflow was not working. Fixing at nodejs/node-gyp#3099

@StefanStojanovic
Copy link
Contributor Author

Since this is located in the deps/npm, my second think is that this cherry pick would make the npm bundled with nodejs diverged from the one released on npm. I think this might not be a good idea and better to wait npm upgrades. /cc @nodejs/npm

I understand the concern and it is completely valid. Any idea on the ETA of node-gyp v10.3,0 making its way into the Node.js project (so full journey, node-gyp release, npm update, npm release, and node update)?

Regarding the change itself, although it is not a good practice to get it this way, it would not break anything, as using Clang is AFAIK not supported on Windows anyway, so IMHO this is not risky (although it is a dirty solution).

Knowing an ETA on this would be helpful.

@legendecas
Copy link
Member

@wraithgar
Copy link
Contributor

[email protected] has [email protected]

@lukekarrys
Copy link
Member

Any idea on the ETA of node-gyp v10.3,0 making its way into the Node.js project (so full journey, node-gyp release, npm update, npm release, and node update)?

I can't speak to the full timeline but do want to point out that #56135 has landed which contains the change from this PR. So the only step remaining is the node update which I think means this PR can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. fast-track PRs that do not need to wait for 48 hours to land. needs-ci PRs that need a full CI run. npm Issues and PRs related to the npm client dependency or the npm registry. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants