-
Notifications
You must be signed in to change notification settings - Fork 250
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
reflect state of started pipeline/task when using --showlog #2155
Conversation
Hi @ileixe. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I'm not sure how to add test for this logic so please let me know if required. One thing I did not consider well is possible race condition (status is not yet updated from pipeline). If it's possible case, we may have to add loop to wait for completion. |
/ok-to-test |
4b9db99
to
f404317
Compare
f404317
to
1840871
Compare
- 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>
1840871
to
dc29814
Compare
For revision 2: I misused wrong API Integration test did show some race condition issue, so I add 10 sec loop to wait for actual completion. I'm not not very inclined to do, so comments are welcome. |
ps) I made a pull request for latest release branch as I'm using it, but if it's right approach I will make a PR from main. |
@ileixe: The following test failed, say
Full PR test history. Your PR dashboard. 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. |
The failed integration test I manually ran the first PipelienRun
And it succeed well. Not sure why test just have string Second one also looks strange as the expected string is different from actual one
None of the cases above seems to be related with this change though, let me know if any possible actions are there. |
This seems duplicate PR of #1880 any reason for this, the original author seems working on it |
cc @avinal ^^^ |
Ah I did not aware that he made a PR (so I just picked his branch), but we already talked in #1820 (comment) |
It is fine, please go ahead. |
@ileixe Are you working on this or is it good to review? Also can you check the failing test please. Thanks |
@piyush-garg Unfortunately, we found this PR lifted the exit problem a bit, but still have unsound behavior in many cases (not exit at all etc..) We've switched tkn-watch to ensure to have valid exit code in time. I'm not sure how CLI side can ensure correctly, so may not work this PR anymore. |
Changes
task, clustertask and pipeline start command now returns each run status when completed if user specify
--show-log
. It provides better usability for tkn CLI to be used in Task or CI.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes