Skip to content

Commit 889f58d

Browse files
joyeecheungUlisesGascon
authored andcommittedDec 11, 2023
test: skip test-diagnostics-channel-memory-leak.js
There is currently no reliable way to detect this leak because: 1. We cannot reliably get a reference to the channel from the API to detect finalization without creating another strong reference. 2. This test does gc() and then checks memory usage - however the use of gc() disables code aging which can actually lead to increased memory usage overall, as it is not intended to be used to lower memory usage in the first place. 3. The implementation of diagnostics channels relies on ephemeron gc which is inefficient, it's not reliable to use the typical "create a lot of objects and see if it crashes" trick to check leaks. Skip the test for now until we find a way to test it reliably. To avoid flakiness in the CI, it's better to remove an unreliable test altogether. PR-URL: #50327 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
1 parent 41644ee commit 889f58d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎test/parallel/parallel.status

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ prefix parallel
55
# sample-test : PASS,FLAKY
66

77
[true] # This section applies to all platforms
8+
# https://github.com/nodejs/node/pull/50327
9+
# Currently there's no reliable way to test it.
10+
test-diagnostics-channel-memory-leak: SKIP
811

912
[$system==win32]
1013
# https://github.com/nodejs/node/issues/41206

0 commit comments

Comments
 (0)
Please sign in to comment.