status: Add more details for a broken dc trigger#6224
status: Add more details for a broken dc trigger#6224openshift-bot merged 1 commit intoopenshift:masterfrom 0xmichalis:promote-info-marker
Conversation
|
|
Without -v I wouldn't expect to see the list of warnings On Mon, Dec 7, 2015 at 7:00 AM, Michail Kargakis notifications@github.com
|
Ok, can you describe the distinction between warnings and errors? Right now, warnings mean "this thing isn't behaving how you think it will". The two examples shown above (bad dc trigger and bad tls termination on route), do you see them as errors or warnings? |
|
Two axis: Usability: only nag me about fixing things that I must fix, or should Warning vs Error: An error is "this is broken and we have no doubt". A On Tue, Dec 8, 2015 at 8:15 AM, David Eads notifications@github.com wrote:
|
|
@deads2k @ironcladlou @smarterclayton PTAL, I have added a couple of more cases and suggestions for dc triggers. Fixing #6281 too |
|
Needs a new unit test and another fixed |
|
[test] |
|
@deads2k @ironcladlou this is ready for reviewing. |
|
#6065 flake [test] |
pkg/deploy/graph/analysis/dc.go
Outdated
There was a problem hiding this comment.
Why wouldn't I attach this sort of marker to the build config, instead of the deployment config?
There was a problem hiding this comment.
Right, I updated both this error and the warning re a bc with no builds. ptal so I can squash
|
implementation looks fine, just not sure of where I'd want the marker. Seems like I'd want it on the build config. |
pkg/deploy/graph/analysis/dc.go
Outdated
There was a problem hiding this comment.
I mean, wouldn't it make more sense to move this entire check to pkg/build/graph/analysis and make the marker there? Both the error and the help make sense there. The other marker (TagNotAvailable), will still make sense too, but that way I'll get help when all I have are builds or chained builds.
There was a problem hiding this comment.
Moved build related issues
|
pkg/build/graph/analysis/bc.go
Outdated
There was a problem hiding this comment.
Why don't I see this suggestion in your output?
There was a problem hiding this comment.
I have a running build there. Will post two more (one with this and one with a failed build).
There was a problem hiding this comment.
I have a running build there. Will post two more (one with this and one with a failed build).
Hmmm... I hadn't considered that. Think we should skip the warning if a build is in progress?
There was a problem hiding this comment.
Sounds fine. How about the dc trigger warning? Should we detect that a build is running and print something like Waiting on build/%s to complete for triggering a new deployment
There was a problem hiding this comment.
Sounds fine. How about the dc trigger warning? Should we detect that a build is running and print something like Waiting on build/%s to complete for triggering a new deployment
Yes. Your choice on this pull or another pull.
|
So my build just failed I delete it and now I have none |
|
@openshift/ui-review Adding more linkage checking and debugging help to |
|
@stevekuznetsov take a pass? |
pkg/build/graph/analysis/bc.go
Outdated
There was a problem hiding this comment.
Why do we need to use this syntax? continue will jump to the next iteration of the for loop as-is.
There was a problem hiding this comment.
Every time we hit a marker for an object, there is no need to continue inspecting it (assuming markers in the same unit are placed in order of precedence).
There was a problem hiding this comment.
@stevekuznetsov you are right, the label was primarily used in other places where we are using nested loops. Will remove it here.
There was a problem hiding this comment.
Every time we hit a marker for an object, there is no need to continue inspecting it (assuming markers in the same unit are placed in order of precedence).
I wouldn't expect a continue inside a switch to require the label. break would, but I don't think continue does.
|
If all |
eh, wrong jungle. |
pkg/build/graph/analysis/bc.go
Outdated
There was a problem hiding this comment.
Godoc with list of precedence would be nice here
|
Two small nits, but otherwise LGTM. @deads2k understood |
|
I have updated the build analysis to take into account {new,pending,running} builds and not warn for them. Have another look in |
pkg/build/graph/analysis/bc.go
Outdated
There was a problem hiding this comment.
Should we raise a warning here as well telling them to re-start the build?
There was a problem hiding this comment.
When the build is complete we should have the tag populated so we should never hit this. Or even if we do, it's probably a race and we should do nothing I think.
pkg/build/graph/analysis/bc.go
Outdated
There was a problem hiding this comment.
Shouldn't this return a *buildgraph.BuildConfigNode?
There was a problem hiding this comment.
I don't really care about these helpers, will change to specific node kinds.
|
Comments addressed, squashed I will update the dc trigger warning in a follow-up |
pkg/build/graph/analysis/bc.go
Outdated
There was a problem hiding this comment.
nit: rename to latestBuild? That helps me remember which build we're attaching the marker to.
|
Minor comments on types and anonymous inclusion. lgtm otherwise. |
If there is no build running for an istag where the user has placed an ICT, suggest oc start-build or oc logs.
|
Evaluated for origin test up to 7f1d28e |
|
lgtm [merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4397/) (Image: devenv-rhel7_2983) |
|
Evaluated for origin merge up to 7f1d28e |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7914/) |
Merged by openshift-bot
Builds on changes from #6078
@deads2k @ironcladlou @smarterclayton