-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: fix unreliable test-gc-http-client #23145
Conversation
Would like to fast-track this. 👍 if you approve. |
Does it really fix #23066? It's not modifying the test in question. |
Please remove the "Fixes:" link from the commit message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this test is not fixed for me
@targos Just to be clear, your red X is about the |
After applying this change, I ran: The test always fails before the 30th execution. |
might be an improvement, but doesn't fix flakyness
Calling `global.gc()` in multiple places leads to unreliability. Call it in the interval only. Fixes: nodejs#22336
Stress test this PR: https://ci.nodejs.org/job/node-stress-single-test/2031/ Stress test master: https://ci.nodejs.org/job/node-stress-single-test/2032/ |
Given CI stress test results (8 failures in 1000 runs on master vs. 0 failures in 1000 runs with this PR), I'm inclined to believe that "Fixes:" is correct here, except for @targos reporting that it is still happening locally... @targos Is there any chance at all that you were testing against master and not this PR or something like that? Can you share a gist of you at least some of your output and also what platform/OS you're on? |
ARM rebuild: https://ci.nodejs.org/job/node-test-commit-arm/18818/ ✔️ Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/21109/ ✔️ |
I'm certain that I am testing against this PR applied on top of master. My platform is Linux (Fedora 28) If this fixes the issue on CI, I'm not blocking it. |
@targos Thanks! Interesting! I think your gist is different than what we're seeing in CI, I think, because |
Resume CI (just for good measure): https://ci.nodejs.org/job/node-test-commit/21949/ |
Windows timed out so will definitely remove the Fixes, just like @targos suggested. (Stress tests showing failures on master and clean runs with this PR were run on AIX.) ARM rebuild: https://ci.nodejs.org/job/node-test-commit-arm/18888/ Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/21186/ |
Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/21188/ |
Landed in 87ea0ca |
Calling `global.gc()` in multiple places leads to unreliability. Call it in the interval only. PR-URL: nodejs#23145 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: James M Snell <[email protected]>
Calling `global.gc()` in multiple places leads to unreliability. Call it in the interval only. PR-URL: #23145 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: James M Snell <[email protected]>
Calling
global.gc()
in multiple places leads to unreliability. Call itin the interval only.
Fixes: #22336
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes