-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
test-child-process-fork-dgram Intermittent timeout on AIX #8271
Comments
Will look to mark this as flaky for AIX ASAP |
From the test description sounds like it is a good candidate for being flaky: Because it's not really possible to predict how the messages will be |
PR to mark as flaky here: #8274 |
In passing test runs on both AIX and Linux, usually the vast majority of the messages go to the parent, so the test continues until the first message is sent to the child. Every time the test fails on the community machines, all the messages (1 per ms for 60s, or 60,000 messages) go to the child, which almost certainly means that the parent isn't able to receive messages. I have been unable to get this to fail on non-community AIX machines (in about 40,000 runs). |
This change seems to fix the problem, though I'm not sure why it would. I'll investigate further. diff --git a/test/parallel/test-child-process-fork-dgram.js b/test/parallel/test-child-process-fork-dgram.js
index 5a00dca..eaca6e9 100644
--- a/test/parallel/test-child-process-fork-dgram.js
+++ b/test/parallel/test-child-process-fork-dgram.js
@@ -32,10 +32,10 @@ if (process.argv[2] === 'child') {
server.on('message', function() {
process.send('gotMessage');
+ server.close();
});
} else if (msg === 'stop') {
- server.close();
process.removeListener('message', removeMe);
}
}); |
Investigated this as it was leaving lingering processes and did not want to have to clean them up regularly. There were 2 problems:
PR to resolve here: #8697 500 runs on AIX without a failure. @AndreasMadsen as the original author can you take a look at the PR. |
please see #8549 I wrote it back in 2012, and haven't worked in that field since. I really don't feel qualified to review it. |
Missed #8549 (I must really be blind) so some discussion there as well. |
`test-child-process-fork-dgram` is unreliable on some platforms, especially FreeBSD and AIX within the project's continuous integration testing. It has also been observed to be flaky on macos. * Confirm child has received the server before sending packets * Close the server instance on the parent or child after receiving a Refs: nodejs#8697 Fixes: nodejs#8949 Fixes: nodejs#8271
`test-child-process-fork-dgram` is unreliable on some platforms, especially FreeBSD and AIX within the project's continuous integration testing. It has also been observed to be flaky on macos. * Confirm child has received the server before sending packets * Close the server instance on the parent or child after receiving a Refs: #8697 Fixes: #8949 Fixes: #8271 PR-URL: #9098 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
`test-child-process-fork-dgram` is unreliable on some platforms, especially FreeBSD and AIX within the project's continuous integration testing. It has also been observed to be flaky on macos. * Confirm child has received the server before sending packets * Close the server instance on the parent or child after receiving a Refs: nodejs#8697 Fixes: nodejs#8949 Fixes: nodejs#8271 PR-URL: nodejs#9098 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
`test-child-process-fork-dgram` is unreliable on some platforms, especially FreeBSD and AIX within the project's continuous integration testing. It has also been observed to be flaky on macos. * Confirm child has received the server before sending packets * Close the server instance on the parent or child after receiving a Refs: nodejs#8697 Fixes: nodejs#8949 Fixes: nodejs#8271 PR-URL: nodejs#9098 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
`test-child-process-fork-dgram` is unreliable on some platforms, especially FreeBSD and AIX within the project's continuous integration testing. It has also been observed to be flaky on macos. * Confirm child has received the server before sending packets * Close the server instance on the parent or child after receiving a Refs: #8697 Fixes: #8949 Fixes: #8271 PR-URL: #9098 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
`test-child-process-fork-dgram` is unreliable on some platforms, especially FreeBSD and AIX within the project's continuous integration testing. It has also been observed to be flaky on macos. * Confirm child has received the server before sending packets * Close the server instance on the parent or child after receiving a Refs: #8697 Fixes: #8949 Fixes: #8271 PR-URL: #9098 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Noticed this failure in a recent AIX run when investigating intermittent addon issue:
https://ci.nodejs.org/job/node-test-commit-aix/472/->
test-child-process-fork-dgram failed with a timeout
Likely a pre-existing intermittent failure as nothing in the PR looks related to the failure.
The text was updated successfully, but these errors were encountered: