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

start the next serial build immediately after a build is canceled #12699

Merged
merged 1 commit into from
Jan 28, 2017

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Jan 27, 2017

No description provided.

@bparees
Copy link
Contributor Author

bparees commented Jan 27, 2017

[testextended][extended:core(builds)]

@bparees
Copy link
Contributor Author

bparees commented Jan 27, 2017

@csrwng ptal

@bparees
Copy link
Contributor Author

bparees commented Jan 27, 2017

[test]

@@ -273,6 +276,19 @@ func (bc *BuildController) resolveOutputDockerImageReference(build *buildapi.Bui
return ref, nil
}

func handleBuildCompletion(build *buildapi.Build, runPolicies []policy.RunPolicy) {
runPolicy := policy.ForBuild(build, runPolicies)
Copy link
Contributor

Choose a reason for hiding this comment

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

looking at this code again, should we not determine if the build is complete first before getting the run policy and calling onComplete on it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that does seem like a logical optimization.

@csrwng
Copy link
Contributor

csrwng commented Jan 27, 2017

Just one question, otherwise LGTM

@bparees
Copy link
Contributor Author

bparees commented Jan 27, 2017

@csrwng updated

@csrwng
Copy link
Contributor

csrwng commented Jan 27, 2017

LGTM

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 647f328

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13383/) (Base Commit: e4e69b2)

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to 647f328

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/1044/) (Base Commit: ae7e34f) (Extended Tests: core(builds))

@bparees
Copy link
Contributor Author

bparees commented Jan 28, 2017

[merge]

1 similar comment
@bparees
Copy link
Contributor Author

bparees commented Jan 28, 2017

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 647f328

@openshift-bot
Copy link
Contributor

openshift-bot commented Jan 28, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13403/) (Base Commit: 33c36f4) (Image: devenv-rhel7_5807)

@openshift-bot openshift-bot merged commit 5ee0737 into openshift:master Jan 28, 2017
@bparees bparees deleted the build_cancel branch January 30, 2017 15:53
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.

3 participants