-
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
TEP-0103: Skipping Reason #4800
TEP-0103: Skipping Reason #4800
Conversation
Hi @chitrangpatel. 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 |
Closed by mistake |
/assign @jerop |
Add unit test with large result for setTaskRunStatusBasedOnStepStatus.
/ok-to-test |
[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 |
/retest |
1 similar comment
/retest |
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.
@chitrangpatel - thank you!
Please squash the commits into one and write a description, as described in the commit messages standards - this could be the summary from TEP-0103.
Today, we add the when
expressions to skippedTasks
when a PipelineTask
is skipped regardless of the reason - this is useful for users to deduce whether the reason was its when
expressions or not. Now that the reason is explicit, we can add the when
expressions only when it's skipped because of when
expressions evaluating to false. This ensures that we provide the necessary information only, and helps keep the PipelineRun
status minimal as described in TEP-0100. This can be done as follow up work after this PR is merged.
(cc @pritidesai)
Closes #4738 |
@@ -676,6 +676,7 @@ Conditions: | |||
Type: Succeeded | |||
Skipped Tasks: | |||
Name: skip-this-task | |||
Reason: WhenExpressionsSkip |
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.
please update lines 666-668 as well to indicate that a Reason field will be added
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.
Done.
87a21df
to
63ae1e7
Compare
63ae1e7
to
55f56a3
Compare
…tatus`. Prior to this, users only knew that a `PipelineTask` was skipped but not the exact reason for skipping the task leading to confusion when debugging `Pipelines`. This commit adds a field `Reason` of type [`SkippingReason`][reasons] (a string alias) to the [`SkippedTasks`][skipped-tasks] field in `PipelineRunStatus`.
55f56a3
to
5d631fb
Compare
Closing this PR due to merge commits affecting a squash-down. |
Hello @chitrangpatel and thank you for your PR. Opening a new PR is fine, however it has the downside of dispersing the context across multiple PRs. For next time, if you have an issue on your local branch, you can still use the existing PR. git push <fork remote name> <local branch name:existing pr branch> --force In the case of this PR, the existing pr branch would be |
Thanks @afrittoli! I will do that next time. |
Changes
Add
SkippingReason
toSkippedTasks
field ofPipelineRunStatus
.Prior to this, users only knew that a
PipelineTask
was skipped but notthe exact reason for skipping the task leading to confusion when
debugging
Pipelines
.This PR addresses the TEP and issue. It adds a field
Reason
of typeSkippingReason
(a string alias) to theSkippedTasks
field inPipelineRunStatus
. The tests have been updated to validate skipping reason.Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes