-
Notifications
You must be signed in to change notification settings - Fork 835
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 grpc flakiness in python unit tests #1816
fix grpc flakiness in python unit tests #1816
Conversation
Mon May 11 11:26:34 UTC 2020 impatient try |
Mon May 11 11:26:35 UTC 2020 impatient try |
/retest |
/test pr-build |
/test |
/test ? |
/test all edit... not exactly what I wanted... |
Mon May 11 11:50:52 UTC 2020 impatient try |
Mon May 11 11:52:14 UTC 2020 impatient try |
Mon May 11 11:52:20 UTC 2020 impatient try |
Mon May 11 11:52:33 UTC 2020 impatient try |
/test this |
Mon May 11 12:43:40 UTC 2020 impatient try |
/test this |
Mon May 11 13:03:49 UTC 2020 impatient try |
Mon May 11 15:02:22 UTC 2020 impatient try |
Mon May 11 15:02:26 UTC 2020 impatient try |
Mon May 11 16:38:40 UTC 2020 impatient try |
Mon May 11 16:40:14 UTC 2020 impatient try |
Mon May 11 16:50:18 UTC 2020 impatient try |
Mon May 11 16:52:41 UTC 2020 impatient try |
Mon May 11 16:59:32 UTC 2020 impatient try |
Mon May 11 16:59:33 UTC 2020 impatient try |
Merging as discussed with @adriangonz |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RafalSkolasinski The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Mon May 11 20:31:36 UTC 2020 impatient try |
Mon May 11 20:31:37 UTC 2020 impatient try |
@RafalSkolasinski: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
Interesting... had
in tests of Java Engine... |
Mon May 11 20:38:36 UTC 2020 impatient try |
Closes #1745.
It seems that problem is related to the fact that grpc
server
and andstub
starts too close to each other (time-wise).In principle this should be solved with wait_for_ready flag but this is still experimental and does not seem to cover this specific case - it didn't solve the issue for me but it did help me to reproduce the problem locally by adding
wait_for_ready=True
tostub.Predict
and commenting outThe helper
retry_method
that I introduced to fix the problem repeats a given functionn
times usingtenacity
and sleeps with exponentially growing time in between attempts. If not successful it raises the last exception.