GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — test: fix flaky test-http-client-timeout-option-with-agent by oyyd · Pull Request #22083 · nodejs/node Conversation
Contributor
The timeout event cannot be precisely timed and the actual timeout may be longer in some situations. So that we need to loose the asserting. Fixes: #22041
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
lpinca
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SGTM
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Trott
requested changes
|
|
Here's a stress test on current master branch to hopefully get an idea of how often this fails: https://ci.nodejs.org/job/node-stress-single-test/1975/nodes=ubuntu1604_sharedlibs_debug_x64/console [EDIT: No failures.] |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Trying on master again but increasing both the simultaneous number of test processes (from 4 to 8) and the number of times the test is run (from 800 to 3200). https://ci.nodejs.org/job/node-stress-single-test/1976/nodes=ubuntu1604_sharedlibs_debug_x64/console [EDIT: No failures.] |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
On master again, 16 simultaneous test processes running the test 16K times: https://ci.nodejs.org/job/node-stress-single-test/1977/nodes=ubuntu1604_sharedlibs_debug_x64/console [EDIT: No failures.] |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Oh, I see, this fails in a debug build, which is certainly one way to induce timing issues... Will need to try something else for the stress test.... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We'll see if it works, but here is my attempt to persuade the CI server to run the test on a debug build with 96 test processes running the test 192 times: https://ci.nodejs.org/job/node-test-commit-custom-suites/410/default/console [EDIT: Lots of failures. Awesome! We are able to replicate the problem! Now to compare the fix here with moving to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Trott As my increasing tolerance won't fix this fundamentally, moving to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The timeout event cannot be precisely timed and the actual timeout may be longer in some situations. Here we move this test into the sequential folder to make it happens less likely. Fixes: nodejs#22041
|
@Trott does this LGTY with the move to sequential? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes. There may be more to be done to make it reliable, but this is a fine way to go unless and until that can be done, so LGTM. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The CI did not start (infrastructure related) but it does not seem to require one. Moving a test from parallel to sequential should not have impact on the test result. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
landed in: f8fda89 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The timeout event cannot be precisely timed and the actual timeout may be longer in some situations. Here we move this test into the sequential folder to make it happens less likely. PR-URL: #22083 Fixes: #22041 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: George Adams <[email protected]>
|
(closing this since it's been merged :)) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The timeout event cannot be precisely timed and the actual timeout may be longer in some situations. Here we move this test into the sequential folder to make it happens less likely. PR-URL: #22083 Fixes: #22041 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: George Adams <[email protected]>
The timeout event cannot be precisely timed and the actual timeout may be longer in some situations. Here we move this test into the sequential folder to make it happens less likely. PR-URL: nodejs/node#22083 Fixes: nodejs/node#22041 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: George Adams <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.