-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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-agent #5184
Comments
And another: |
Can anyone copy the test output? Thanks |
@santigimeno I've excluded some
|
Ref: nodejs#5184 PR-URL: nodejs#5209 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
Another one: |
Another one: |
Stress test confirming failure on current master branch. (Mostly useful to show that it's flaky in stress tests. It's possible for a test to be flaky in CI but not in stress test.) https://ci.nodejs.org/job/node-stress-single-test/510/nodes=pi2-raspbian-wheezy/console |
Stress test showing that adding a https://ci.nodejs.org/job/node-stress-single-test/509/nodes=pi2-raspbian-wheezy/console |
Stress test showing that switching to |
Stress test showing similar results for |
Lastly (for now), test showing that eliminating the timer altogether doesn't fix things either: https://ci.nodejs.org/job/node-stress-single-test/513/nodes=pi2-raspbian-wheezy/console |
For good measure, here's a stress test (results pending as of this writing) that changes the timeout value from https://ci.nodejs.org/job/node-stress-single-test/514/nodes=pi2-raspbian-wheezy/console EDIT: That one failed too. |
@Trott do you think reducing |
@santigimeno That is a very good question. I've reduced both from 10 to 5. Stress test: https://ci.nodejs.org/job/node-stress-single-test/515/nodes=pi2-raspbian-wheezy/console UPDATE: Fails. Same thing, it loses one connection somewhere. |
So this is interesting: I added some logging to keep track of the value of
EDIT: Here it is (currently in progress, but what I write above is valid for the first 11 failures at least): https://ci.nodejs.org/job/node-stress-single-test/516/nodes=pi2-raspbian-wheezy/console |
Now that there's at least an interesting/curious observation: /cc @nodejs/testing |
So, given the above observation, here's a stress test with 124 runs so far and no failures, so we have a winner, I think. If it makes it to 999 tests, I'll submit a PR. It's not perfect, but it's better than a flaky test, in my opinion at least. And there's nothing magical about the 100 clients in this case. It was just an arbitrary number. |
Reduce number of clients from 100 to 16 as Raspberry Pi in CI starts to exhibit flakiness around 22 or so clients. Fixes: nodejs#5184
Ref: nodejs#5184 PR-URL: nodejs#5209 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
@mhdawson That does not appear to be output from the current version of the test. That looks like output from the previous version of the test. The current version should only show 16 lines of output. The old version showed 100 lines of output. The relevant commit you want to make sure has landed in the ref/branch/whatever you're testing is 76657c5. |
@mhdawson Confirmed that the branch being tested (https://github.com/stefanmb/node/commits/test-runner-fix) does not have the fix committed. I guess node-test-pull-request does not rebase against current master the way node-accept-pull-request does/did. I wonder if it ought to? /cc @nodejs/build @nodejs/testing Closing this for now. Feel free to re-open if you think that's not right. But I don't believe the test is currently flaky on master. |
It's supposed to, but it's a parameter and rebasing can be skipped. Let me know if you think it's not working as expected. |
Reduce number of clients from 100 to 16 as Raspberry Pi in CI starts to exhibit flakiness around 22 or so clients. Fixes: nodejs#5938 Refs: nodejs#5184
Reduce number of clients from 100 to 16 as Raspberry Pi in CI starts to exhibit flakiness around 22 or so clients. PR-URL: nodejs#5939 Fixes: nodejs#5938 Refs: nodejs#5184 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Failure:
The text was updated successfully, but these errors were encountered: