Uh oh!
There was an error while loading. Please reload this page.
test: fix flaky timeout in test-pipe-file-to-http - #53595
Conversation
Uh oh!
There was an error while loading. Please reload this page.
lpinca
commented
Jun 27, 2024
Are you still able to get timeouts on main without this patch? |
jakecastelli
commented
Jun 27, 2024
Yes, I can still get timeout on main - it is reproducible in every 1000 run. |
lpinca
commented
Jun 27, 2024
When the test times out, is the res.on('end',()=>{console.log('end');server.close();}); |
jakecastelli
commented
Jun 27, 2024
Can I ask how to ask the |
lpinca
commented
Jun 27, 2024
It will do it automatically for failed tests. You should see something like "TIMEOUT" and then the |
jakecastelli
commented
Jun 27, 2024
|
lpinca
commented
Jun 27, 2024
Ok, then it is not related to the file size either. The process for some reason (#52964 (comment), #52959 (comment)) does not exit. |
jakecastelli
commented
Jun 28, 2024
I tried a few more runs - sometimes the my code snippet for conosle logres.on('end',()=>{console.log('end called');assert.strictEqual(count,fileSize);console.log('closing the server');server.close();console.log('server should be closed')});Error logsI have also tried the |
jakecastelli
commented
Jun 29, 2024
Do you have any idea why |
lpinca
commented
Jun 29, 2024
No, I don't know. |
jakecastelli
commented
Jul 1, 2024
Some update: Been running this test on a Linux ubuntu x64 machine, more than 100k+ runs, no failure. But running on my m1 arm64 will have a quite consistent 0.1% failure rate. With May I ask what environment you are using @lpinca? Will be looking into this for another day, I think we can probably add this test to the flaky test status until we can find more clues. Any suggestions? |
lpinca
commented
Jul 1, 2024
|
lpinca
commented
Jul 1, 2024
The last CI failure occurred on ARM on 2024-06-22 (nodejs/reliability#903). I think we mark it flaky on that platform. |
jakecastelli
commented
Jul 7, 2024
Marked as flaky in 53751, hopefully we can find what the root cause is. |
The original issue is likely the same as other tests that time out. Refs: nodejs#54918 Refs: nodejs#53595 Refs: nodejs#53751
Attempt to fix: #52963
There are a few places could cause the test to timeout, first of all rely on
process.exitwas probably not a great idea.Timeout was never cleared,
10mbmight be a bit heavy on lower power machine.Tried another 4000 runs, no failures, should be stable now?
Will actively monitor the issue once this PR lands to see if there is still any failure in CI.
Previous attempt PR was closed and cannot re-opened.