test: stabilize eventloopdelay test#41716
Conversation
This change makes the eventloopdelay test less flakey on some platforms by replacing a blocking-wait with a busy-wait which means the eventloop will always be positive increase. This is a partial revert of nodejs#30787 that returns the test to the state it had originally.
|
@nodejs/testing, especially @cjihrig |
This comment has been minimized.
This comment has been minimized.
|
should we do a stress test? |
|
I'm not so sure about this fix. It's good if we can get the test passing, but I think either Node's event loop monitoring needs to be able to handle this scenario, or something else in this test is incorrect.
I think so, yes. |
Me neither - if there is a way to synthetically get the histogram to report event loop delay that would be preferable. |
|
I'm curious how long this test has been flaky for. I've definitely noticed it lately, but the change being partially reverted here landed over two years ago. Maybe I just missed the failures in the past, but is it possible that a recent change introduced the flakiness? |
It seemed to start appearing around 22 December 2021 #41286 (comment). |
23637e9 landed three days prior to that and could be worth investigating. |
#41286 (comment) added some debug and it looks like in the failing case we end up with |
dismissing my review while this is discussed
|
Adding 'blocked' so this doesn't land before other avenues have been explored. |
This change makes the eventloopdelay test less flakey on some platforms
by replacing a blocking-wait with a busy-wait which means the eventloop
will always be positive increase.
This is a partial revert of #30787 that returns the test to the state it
had originally.
Example failure:
https://ci.nodejs.org/job/node-test-commit-linuxone/30460/nodes=rhel7-lto-s390x/testReport/junit/(root)/test/sequential_test_performance_eventloopdelay_/