-
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
Investigate flaky test-http-client-timeout-option-with-agent #22041
Labels
flaky-test
Issues and PRs related to the tests with unstable failures on the CI.
http
Issues or PRs related to the http subsystem.
test
Issues and PRs related to the tests.
Comments
maclover7
added
test
Issues and PRs related to the tests.
flaky-test
Issues and PRs related to the tests with unstable failures on the CI.
http
Issues or PRs related to the http subsystem.
labels
Jul 31, 2018
This was referenced Aug 2, 2018
The main cause of failure here is almost certainly that it's a debug build, which makes everything run slooooowwwwer..... |
oyyd
added a commit
to oyyd/node
that referenced
this issue
Aug 9, 2018
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
rvagg
pushed a commit
that referenced
this issue
Aug 15, 2018
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 <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: George Adams <george.adams@uk.ibm.com>
Alas, still flaky. 00:15:46 not ok 2230 sequential/test-http-client-timeout-option-with-agent
00:15:46 ---
00:15:46 duration_ms: 5.26
00:15:46 severity: fail
00:15:46 exitcode: 1
00:15:46 stack: |-
00:15:46 assert.js:84
00:15:46 throw new AssertionError(obj);
00:15:46 ^
00:15:46
00:15:46 AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
00:15:46
00:15:46 4 !== 3
00:15:46
00:15:46 at ClientRequest.req.on.common.mustCall (/home/iojs/build/workspace/node-test-commit-linux-containered/nodes/ubuntu1604_sharedlibs_shared_x64/test/sequential/test-http-client-timeout-option-with-agent.js:46:12)
00:15:46 at ClientRequest.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux-containered/nodes/ubuntu1604_sharedlibs_shared_x64/test/common/index.js:460:15)
00:15:46 at ClientRequest.emit (events.js:182:13)
00:15:46 at Socket.emitRequestTimeout (_http_client.js:670:40)
00:15:46 at Object.onceWrapper (events.js:273:13)
00:15:46 at Socket.emit (events.js:182:13)
00:15:46 at Socket._onTimeout (net.js:449:8)
00:15:46 at ontimeout (timers.js:454:11)
00:15:46 at tryOnTimeout (timers.js:326:5)
00:15:46 at listOnTimeout (timers.js:300:5)
00:15:46 ... |
Trott
changed the title
test: possible flaky test-http-client-timeout-option-with-agent
Investigate flaky test-http-client-timeout-option-with-agent
Aug 19, 2018
Trott
added a commit
to Trott/io.js
that referenced
this issue
Aug 19, 2018
There is no guarantee that a timeout won't be delayed considerably due to unrelated activity on the host. Instead of checking that the timeout happens within a certain tolerance, simply check that it did not happen too soon. Fixes: nodejs#22041
Proposed fix in #22403 |
2 tasks
targos
pushed a commit
that referenced
this issue
Aug 21, 2018
There is no guarantee that a timeout won't be delayed considerably due to unrelated activity on the host. Instead of checking that the timeout happens within a certain tolerance, simply check that it did not happen too soon. Fixes: #22041 PR-URL: #22403 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos
pushed a commit
that referenced
this issue
Sep 3, 2018
There is no guarantee that a timeout won't be delayed considerably due to unrelated activity on the host. Instead of checking that the timeout happens within a certain tolerance, simply check that it did not happen too soon. Fixes: #22041 PR-URL: #22403 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
flaky-test
Issues and PRs related to the tests with unstable failures on the CI.
http
Issues or PRs related to the http subsystem.
test
Issues and PRs related to the tests.
https://ci.nodejs.org/job/node-test-commit-linux-containered/5882/nodes=ubuntu1604_sharedlibs_debug_x64/console
This test asserts the elapsed time of
timeout
in second units. But the actualtimeout
may be longer in some situations.It seems that other related tests avoid measuring the elapsed time. I would like to modify this test to make it less likely fail and keep the consistency of these tests.
The text was updated successfully, but these errors were encountered: