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
Return value of tkn pipeline start with --showlog does not depend on state of started pipeline #1820
Comments
/assign |
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com>
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale Work in Progress |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
/remove-lifecycle rotten Please don't give up the implementation here, it is an important feature for us! |
Looks like I need some help here. Apology for delay. I will start working again. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: 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. |
/reopen This is a really important feature in order to trigger a pipeline from another pipeline. Please don't let it die! |
/remove-lifecycle rotten This is a really important feature in order to trigger a pipeline from another pipeline. Please don't let it die! |
I have asked for help on the channel, so far, there is no significant progress. |
+1 for this feature to use tkn cli for CI runner. Now, it's completely inconsistent just to rely on "tkn start --showlog" for the job. We're very happy to have this. |
/reopen |
@avinal: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: 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. |
/reopen Please don't forget this issue here. It is not solved yet but very important for triggering tekton pipelines from other pipelines. |
/remove-lifecycle rotten Please don't forget this issue here. It is not solved yet but very important for triggering tekton pipelines from other pipelines. |
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com>
/reopen |
@avinal: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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. |
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com>
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: 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. |
Please do not close this. It is a very important feature. Without this feature, it is not possible to start a pipeline from another pipeline and track the state. |
Hi @avinal , can I try your branch? Is it completed? |
Ok, I will give it a try. Let me update if there's any problem. Thanks. |
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com>
@avinal
It seems actually not working at all, as status field is is not fetched via API. (I was confused since the failed task emits non-zero after the change, but it was always failed.) I'm not sure it's right approach but we may have to call API (not local view) to check status. |
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com> Signed-off-by: Youseok Yang <yan@furiosa.ai>
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com> Signed-off-by: Youseok Yang <yan@furiosa.ai>
PR updated: #2155 It ran as expected from our simple cases. |
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com> Signed-off-by: Youseok Yang <yan@furiosa.ai>
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com> Signed-off-by: Youseok Yang <yan@furiosa.ai>
- this change fixes an issue where using --showlog with tkn start pipeline/task does not return a non-zero value when created taskrun/pipelinerun fails. - refer tektoncd#1820 Signed-off-by: Avinal Kumar <avinal@redhat.com> Signed-off-by: Youseok Yang <yan@furiosa.ai>
Versions and Operating System
Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
Expected Behavior
When I run a pipeline with
tkn pipeline start <pipeline-name> --showlog
and the pipeline fails, I expect the return value of thetkn
command is also non 0. In this way it is possible to start a pipeline from another pipeline and fail the first one, if the second one has failed.Actual Behavior
The return value of
tkn pipeline start <pipeline-name> --showlog
is 0, if the started pipeline fails.Steps to Reproduce the Problem
tkn pipeline start <pipeline-name> --showlog || echo "run failed"
The "run failed" string is never shown, even if the started pipeline failed.
Additional Info
...
The text was updated successfully, but these errors were encountered: