-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Build failure: nodePackages_latest.nodejs #355919
Comments
Could you share the output of this test? |
Could you point me how to do that? I am not familiar with nodePackages, just got the log from the Nix build command. |
As it says on the output:
From there, you can search for |
Got it.
|
OK that's definitely interesting! Could you confirm if the test passes if you revert nodejs/node@a094a81? |
Does niceness on NixOS work differently than on most Unix systems? The If it's indeed different, what's the returned value of |
Well this patch does not apply. JohnRTitor@24c5cc0 |
Ah right, my bad, that commit didn't make it into 23.2.0. nixpkgs/pkgs/development/web/nodejs/nodejs.nix Lines 312 to 314 in 4f93e62
In any case, we should probably amend the Node.js test to not fail on |
Nice, can we cherry-pick the commit here or will it be part of a minor patch release? |
Looks like this does not directly apply either, we will either need to rebase and vendor the patch or disable the test, while we wait for a release. |
Well you would need to first apply nodejs/node@a094a81 and confirm it's still an issue with that patch applies, then cherry-pick my commit on top of it. It should make its way to a future minor or patch release yes. |
I don't think it is. But I am not entirely sure.
EDIT: I tried running |
I mean this fails to apply. 🥲 diff --git a/pkgs/development/web/nodejs/v23.nix b/pkgs/development/web/nodejs/v23.nix
index a34e53375e69..6a5b7626eb54 100644
--- a/pkgs/development/web/nodejs/v23.nix
+++ b/pkgs/development/web/nodejs/v23.nix
@@ -53,5 +53,10 @@ buildNodejs {
hash = "sha256-gmIyiSyNzC3pClL1SM2YicckWM+/2tsbV1xv2S3d5G0=";
revert = true;
})
+ # possible fix for https://github.com/NixOS/nixpkgs/issues/355919
+ (fetchpatch2 {
+ url = "https://github.com/nodejs/node/commit/a094a8166cd772f89e92b5deef168e5e599fa815.patch?full_index=1";
+ hash = "sha256-Jwf5D/QvoKNN36IqWKnWYXIpHdkm/o1rmq+G+n05EG0=";
+ })
];
} |
You need to fix the hash, you should get a different hash depending if you pass |
Yep, this seems to be the issue. Before nodejs/node@a094a81 the test niceness was hardcoded to |
The hash you should be using is |
Yeah I was just building the package. Looks like we need both nodejs/node@a094a81 and nodejs/node@f60cc58 for the test failure to be fixed. |
Can you clarify what's the behavior without nodejs/node@f60cc58? Same error as without nodejs/node@a094a81? |
The test indeed failed with just nodejs/node@a094a81 applied and needed nodejs/node@f60cc58 to work. |
I guess we should indeed skip this test in case of Does the following JS snippet throw? const os = require('node:os');
console.log(`initial priority: ${os.getPriority()}`);
console.log(`setting priority: ${os.constants.priority.PRIORITY_LOW}`);
os.setPriority(os.constants.priority.PRIORITY_LOW);
console.log(`new priority: ${os.getPriority()}`); Or this in command line? nice
renice --priority 19 $$
nice |
@JohnRTitor Thanks! The patch is https://github.com/nodejs/node/commit/7f40deae6fee1534512ce25b25f9b89ec7e96aee.patch?full_index=1, it can be be applied on top of nodejs/node@a094a81 instead of nodejs/node@f60cc58. |
PR-URL: #55908 Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#55908 Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#55908 Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #55908 Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #55908 Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Steps To Reproduce
Steps to reproduce the behavior:
nodePackages_latest.nodejs
from masterBuild log
Build Log
Additional context
Found it while building
zed-editor
on master.Metadata
❯ nix-info -m
"x86_64-linux"
Linux 6.11.7-cachyos, NixOS, 24.11 (Vicuna), 24.11.20241109.76612b1
yes
yes
nix-env (Nix) 2.24.10
/nix/store/gg86rfp39vc7chqsszk32q7995hz4943-source
Notify maintainers
@aduh95 @Ma27
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: