Skip to content

Commit e1036e4

Browse files
authored
nodejs: fix flaky test (#358227)
2 parents f38a03f + f634fa2 commit e1036e4

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

pkgs/development/web/nodejs/nodejs.nix

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ let
299299
"FLAKY_TESTS=skip"
300300
# Skip some tests that are not passing in this context
301301
"CI_SKIP_TESTS=${lib.concatStringsSep "," ([
302+
# Tests don't work in sandbox.
302303
"test-child-process-exec-env"
303304
"test-child-process-uid-gid"
304305
"test-fs-write-stream-eagain"

pkgs/development/web/nodejs/v20.nix

+5
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,10 @@ buildNodejs {
4444
stripLen = 1;
4545
hash = "sha256-6y3aEqxNC4iTQEv1oewodJrhOHxjp5xZMq1P1QL94Rg=";
4646
})
47+
# fixes test failure, remove when included in release
48+
(fetchpatch2 {
49+
url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch?full_index=1";
50+
hash = "sha256-KoKsQBFKUji0GeEPTR8ixBflCiHBhPqd2cPVPuKyua8=";
51+
})
4752
] ++ gypPatches;
4853
}

pkgs/development/web/nodejs/v22.nix

+5
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,10 @@ buildNodejs {
2424
url = "https://github.com/nodejs/node/commit/32f7d5ad1cf79e7e731e1bb7ac967f4f2a3194cf.patch?full_index=1";
2525
hash = "sha256-dyUr3caGfetrXgfAl+CLE1LKKetDZCpPwMg4EM98rqI=";
2626
})
27+
# fixes test failure, remove when included in release
28+
(fetchpatch2 {
29+
url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch?full_index=1";
30+
hash = "sha256-KoKsQBFKUji0GeEPTR8ixBflCiHBhPqd2cPVPuKyua8=";
31+
})
2732
];
2833
}

pkgs/development/web/nodejs/v23.nix

+5
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ buildNodejs {
3535
url = "https://github.com/nodejs/node/commit/f270462c09ddfd770291a7c8a2cd204b2c63d730.patch?full_index=1";
3636
hash = "sha256-Err0i5g7WtXcnhykKgrS3ocX7/3oV9UrT0SNeRtMZNU=";
3737
})
38+
# fixes test failure, remove when included in release
39+
(fetchpatch2 {
40+
url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch?full_index=1";
41+
hash = "sha256-KoKsQBFKUji0GeEPTR8ixBflCiHBhPqd2cPVPuKyua8=";
42+
})
3843
];
3944
}

0 commit comments

Comments
 (0)