-
Notifications
You must be signed in to change notification settings - Fork 253
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
Fix bug about Complete logs not shown for failed TaskRun #691
Conversation
related issue is tektoncd#587 When pod status is failed hasTaskRunFailed method returns error immediately, so pod's logs can't be shown up. This fix stop returning error immediately, if pod status is failed just logging error on standard error.
Hi @16yuki0702. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
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.
So, when I use the example task/taskrun you used for testing, (i.e., tt
, diff-tt
), tkn v0.7.1
does already have this behavior without this change.
Really??
it seems pod's log didn't show up... |
I updated
Umm... why the results are different 🤔?? |
Interestingly, it appears there is a difference between |
Yes, it looks like the difference occurs between going through |
Ahh...!! I totally understood! thank you very much!! Actually |
What version of kubernetes/openshift do you use ? I have seen some differences between servers version (or at least openshift 4.2 and 4.3) |
I use kubernetes v.1.15.5 (Docker Desktop on Mac).
Oops... what kind of difference 🤔?? |
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.
/lgtm
I do wonder if there's more to #587 than this, but I think there's no doubt that this helps to address it.
@16yuki0702 sorry i miss-understood the issue with tektoncd/pipeline#2028 |
/lgtm Thanks 👍🏼🔥 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chmouel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
Related issue is #587
This bug seems to be happen from When pod status is failed
hasTaskRunFailed
method returns error immediately,so pod's logs can't be shown up.
This fix stop returning error immediately, if pod status is failed just logging error on standard error.
Test yaml files is
from this fix, logs can be shown like below.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make docs
andmake man
if needed.make check
See the contribution guide
for more details.
Release Notes