Skip to content
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

Merged
merged 1 commit into from
Jun 3, 2016

Conversation

csrwng
Copy link
Contributor

@csrwng csrwng commented Jun 2, 2016

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.

@csrwng
Copy link
Contributor Author

csrwng commented Jun 2, 2016

@gabemontero @stevekuznetsov ptal

@stevekuznetsov
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@csrwng csrwng force-pushed the git_check_backoff branch from 95421f0 to 2902d08 Compare June 2, 2016 14:15
@gabemontero
Copy link
Contributor

IGTM

@csrwng
Copy link
Contributor Author

csrwng commented Jun 2, 2016

[merge]

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

The check will either succeed or the build will timeout
@csrwng csrwng force-pushed the git_check_backoff branch from 2902d08 to c469964 Compare June 2, 2016 21:46
@csrwng
Copy link
Contributor Author

csrwng commented Jun 2, 2016

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to c469964

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4395/)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to c469964

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 3, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4395/) (Image: devenv-rhel7_4310)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants