-
Notifications
You must be signed in to change notification settings - Fork 268
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
update log trailer msg for onError:continue #2229
Conversation
@LyndseyBu What do you think about a visual change to the step list (in TaskRuns) as well? For example when |
@solsson We actually had that implemented originally (yellow warning icon on the step) but received strong feedback that it was unexpected / confusing since the underlying status as recorded/reported by Tekton is still success. With the For TEP-0050 (which is still 'proposed') it may make sense to decorate these cases with a warning icon of some kind on the TaskRun and possibly even the PipelineRun, but that would depend on the behaviour agreed if/when the TEP is marked as implementable. |
Of course the use cases for onError:continue will vary. The distinction between the author and the user is interesting. I have no opinion on TEP-0050. Based on our experience (we opted in to onError:continue well before tektoncd/pipeline#4251), I would argue that as it works now only the author can figure out that they should look at the logs of the previous step. A developer will see that the build failed, fiind the TaskRun that failed and post a message to the team containing the logs from the next step 🙂 Personally I think yellow warning icon was a great idea, but feedback is feedback. Could there be a different symbol, like green but with an arrow down? Or could the next step have an arrow up? Also the text in |
💯 %, and unfortunately it's very difficult to handle them all in a consistent manner. There's been some discussion about potentially expanding the
The purpose of the In the meantime I would suggest either including the relevant info in the logs of the step you're using to fail the run, or that maybe I'll merge this PR as it adds some additional useful info to alert users to the fact that something different happened, and it doesn't prevent us surfacing this or similar states in a more obvious fashion (via different / additional icons etc.) separately as discussion on the current and future features evolve. Thanks for the feedback! 😸 |
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.
Looks great, thanks @LyndseyBu. One minor change needed and this is good to go.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlanGreene 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 |
/lgtm |
Changes
When onError:continue is used in a step:
Update the log trailer message to indicate if the step completed successfully. Or if the step completed with a non 0 exit code
Storybook has also been updated to include the new state for log messages
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.