-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
builds: increase git check timeout exponentially #9124
Conversation
LGTM |
if err != nil { | ||
if _, ok := err.(*git.TimeoutError); ok { | ||
nextTimeout := timeout * timeoutIncrementFactor | ||
glog.Infof("WARNING: timed out waiting %s for git server, will wait %s", timeout, nextTimeout) |
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.
Don't display the first timeout duration, it's redundant. Just indicate the next interval.
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.
fixed
IGTM |
[merge] |
[Test]ing while waiting on the merge queue |
The check will either succeed or the build will timeout
[test] |
Evaluated for origin test up to c469964 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4395/) |
Evaluated for origin merge up to c469964 |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4395/) (Image: devenv-rhel7_4310) |
Repeatedly tries the git ls-remote call by growing the timeout exponentially. The git check will either succeed or the build will time out completely.