-
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
build controller: fix start of serial builds on cancellation/deletion #17498
build controller: fix start of serial builds on cancellation/deletion #17498
Conversation
@openshift/sig-developer-experience |
glog.V(4).Infof("Build config %s/%s has running builds, will retry", bcNamespace, bcName) | ||
return fmt.Errorf("build config %s/%s has running builds and cannot run more builds", bcNamespace, bcName) | ||
} | ||
if len(nextBuilds) == 0 { | ||
glog.V(4).Infof("Build config %s/%s has no builds to run next, will retry", bcNamespace, bcName) |
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.
will retry? doesn't this mean we could potentially end up spinning forever on a buildconfig that has no builds?
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.
We give up after 15 retries
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.
ah, ok.
/lgtm |
test/extended/builds/run_policy.go
Outdated
|
||
var deleteTime, deleteTime2 time.Time | ||
for { | ||
event := <-buildWatch.ResultChan() |
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.
wrap this in a select timeout like the other TCs do, so we don't want forever if we don't get the next event.
/lgtm cancel |
4189afd
to
18623da
Compare
updated |
/lgtm |
18623da
to
bf128b3
Compare
fixed extended test (missing resource type in oc delete call) |
/lgtm |
bf128b3
to
ccfa1b6
Compare
last push was by mistake, nothing changed |
/lgtm |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
Flake #17330 |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
15 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
1 similar comment
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@csrwng: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
Current code will only retry a buildconfig if there's a running build and there's no pending builds waiting to be started. The conditions should be independent (ored). If there's no pending builds it may be that the cache hasn't caught up.
This fix separates the conditions and logs different messages for each.
When an active build is deleted, we should also poke the buildconfig to start the next build.
Fixes #17353