-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix #13166 tioselectors flaky test on freebsd+OSX #14634
fix #13166 tioselectors flaky test on freebsd+OSX #14634
Conversation
638d8cf
to
b143fc6
Compare
@euantorano can you LGTM this? |
Yep, will have a look over it this weekend.
…On Fri, 12 Jun 2020, at 01:11, Timothee Cour wrote:
@euantorano <https://github.com/euantorano> can you LGTM this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14634 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW24NZOI633DAO3LQACL3RWFXEFANCNFSM4N25LHXQ>.
|
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.
This overkill. Just up the timings in the select
call, that's all that is needed here. All these changes here just make the code harder to understand and I cannot see them being necessary.
b143fc6
to
ad231ca
Compare
the extra code helps when investigating this issue so you can run the timer test N times without overhead and get statistical results on how many times it failed without stopping on 1st failure. There are still unknowns here:
|
This should be a separate testing tool IMO. |
done, PTAL |
@Araq I'm merging this as all comments have been addressed and I'm keeping seeing CI errors due to this flaky test in other PR's |
Nice, thanks for taking my feedback on board. |
looks like there is a lag involved, not quite sure why (I thought timers at least on OSX had high resolution).
note that running locally, I can reproduce the flake but only with smaller values close to the t0=100 set in
var timer = selector.registerTimer(100, false, 0)
when running locally, proportion of success increases as t increases:
when running on CI, perhaps there is some extra lag (virtualization?)
here is some research:
/cc @cheatfate