-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
if a side container in a taskrun failes, entire taskrun should fail #729
Comments
@chmouel So… it's a bit trickier. As we don't use
This can be a bit confusing as it will |
I see thanks for taking the time to describes how it works, I guess then it's a UI problem, to check if the containers have failed or not. Is it a pattern that we are going to keep ? if it is then perhaps we can document it ? (I would not mind doing it) |
Right… Good question 😅. I'm not a huge fan of " it's a UI problem, to check if the containers have failed or not." as it means each UI implementation will have to have this knowledge (and if it changed or evolve, well. we break them). I think that:
|
Perhaps as a first step, we can maybe fix that the status is not set as "Succeeded" when there is a failure ? For example : status:
conditions:
- lastTransitionTime: 2019-04-04T22:06:04Z
message: 'build step "build-step-error" exited with code 1 (image: "docker.io/library/ubuntu@sha256:f2557f94cac1cc4509d0483cb6e302da841ecd6f82eb2e91dc7ba6cfd0c580ab");
for logs run: kubectl -n tekton-pipelines logs echo-hello-world-task-run-pod-cfd7fd
-c build-step-error'
status: "False"
type: Succeeded the that would make explicit that there is an issue for UI to then go digg into the issue ? |
@chmouel as discussed on Slack, this conditions are "standard", and it is kinda explicit for the consumer that this is a failure : condition of type Succeeded is false — hence it's a failure. Also this is what knative/serving is looking for and it would be a huge API changes just to rename it 😓 |
fair enough, so let's try to document this, then. (there is a nice github tag for this?) |
I just want to double check @chmouel @vdemeester do we want to keep this open so we update the docs? or did that already happen? |
@bobcatfish we may want to keep it opened until docs are clearer about it, indeed |
I think we can "close" this 👼 @imjasonh proposal on API spec should help with making it more clear but it's "standard" conditions 👼 /close |
@vdemeester: Closing this issue. In response to this:
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. |
Reusing the title from #682 since they are the same but this time we are using side container instead of init ones
Expected Behavior
When you have one step that fails it should be marked as fail and not continue to the next step
Actual Behavior
Continue to the next steps and show as Completed/Succeeded
Steps to Reproduce the Problem
Sample task
First step should success, second shoudl error and third should work as seen from the containerStatuses :
but third step should have not been started since the second one has failed and should show as completed/success :
Additional Info
The text was updated successfully, but these errors were encountered: