-
Notifications
You must be signed in to change notification settings - Fork 94
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
repeatable flaky test #3048
Comments
At first glance (and maybe second glance) I can't see how this test could fail. Tests 3 and 5 simply |
(Occasionally 1/5 tests fail when run alone, instead of 0/5; and occasionaily 1/5 fail when run with the other test, instead of 2/5 ... so it is "flaky"). |
Ah, in failing cases,
|
Is the |
Mentioning #2894 issue here so we have a reference in GitHub, just in case it may be helpful later 👍 |
And have confirmed, the exact same behaviour in my environment with the
|
I know what's going on here...
Yes, reliably every time! In
So this test was, by design always going to be flaky. In the new ZMQ implementation the port is not chosen at random, ZMQ picks the lowest available port in the range so it's gone from being slightly flaky to reliably flaky. There is no real reason for picking the port this way, it was slightly nicer during the debug phase. I think there is a TODO in there somewhere. I think there might be a nice way of doing random selection in ZMQ itself. |
I guess this is a case where auto-rerunning failed tests isn't always the most helpful thing to do. |
Ah, brilliant- it all makes sense. That's a relief, thanks @oliver-sanders 🍺 |
(I had forgotten you'd switched to sequential port acquisition). |
It was just a stopgap I never got rid of. |
#3004 will reduce the flakyness of this test proportionate to the number of suites divided by the number of ports. Not good but much better, is this enough to close the issue for now. |
I think that's good enough, with a comment in the test to indicate exactly why it might occasionally fail. |
On current master, in my environment,
tests/shutdown/18-client-on-dead-suite.t
seems to always pass on its own:But if I run it with another test, it seems to always fail, like this:
The text was updated successfully, but these errors were encountered: