-
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
Add Failed Validation
group in message for the status message in PipelineRun
#8356
Conversation
1fa8d5d
to
d408bcc
Compare
/kind bug |
/cc @afrittoli @vdemeester |
/cc @vdemeester |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
cc @afrittoli
- message: "Tasks Completed: 2 (Failed: 1, Cancelled 0), Skipped: 0" | ||
reason: Failed | ||
- message: "Tasks Completed: 1 (Failed: 1, Cancelled 0), Skipped: 0" | ||
reason: PipelineValidationFailed |
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.
NIT: I find this slightly confusing. The PipelineRun
, made of two tasks, is finished, with 1 Task
completed (failed) and nothing else. The reason "PipelineValidationFailed" helps a bit to explain what happens, but not fully.
Perhaps we could consider the second TaskRun
as failed or add a new group "Validation Failed" e.g.
Tasks Completed: 1 (Failed: 1, Cancelled 0), Skipped: 0, Failed Validation: 1
If we wanted to avoid adding another group, we could count the failed validation as failed:
Tasks Completed: 2 (Failed: 2, Cancelled 0), Skipped: 0
@divyansh42 @vdemeester wdyt?
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.
Ah makes sense ! I do like the idea of having the Failed Validation
group.
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.
Thanks for bringing this up @afrittoli. I also had this thought earlier.
So from the example that @afrittoli is referencing the complete count is 1 and the Failed task is the one that failed in the validation.
I included validationFailed in the failed task as I see in the code IgnoredFailed
is also included in the Failed
count so followed the same approach.
I do like the idea of adding the FailedValidation count.
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.
@afrittoli I have made the required changes. Could you please take a look?
d408bcc
to
61205af
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Signed-off-by: divyansh42 <[email protected]>
61205af
to
b7f19e1
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Failed Validation
group in message for the status message in PipelineRun
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
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.
Thank you!
/lgtm
/cherry-pick release-v0.65.x |
/cherry-pick release-v0.62.x |
@vdemeester: once the present PR merges, I will cherry-pick it on top of release-v0.65.x in a new PR and assign it to you. 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. |
@vdemeester: once the present PR merges, I will cherry-pick it on top of release-v0.62.x in a new PR and assign it to you. 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. |
/cherry-pick release-v0.59.x |
@vdemeester: once the present PR merges, I will cherry-pick it on top of release-v0.59.x in a new PR and assign it to you. 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. |
/cherry-pick release-v0.56.x |
@vdemeester: once the present PR merges, I will cherry-pick it on top of release-v0.56.x in a new PR and assign it to you. 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. |
@vdemeester: new pull request created: #8371 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. |
@vdemeester: new pull request created: #8372 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. |
@vdemeester: new pull request created: #8373 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. |
@vdemeester: new pull request created: #8374 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. |
Changes
Following up on the #8314, this PR adds more specific error on the ValidationFailure and also remove the ValidationFailure task from the completed task as there will be no TaskRun created for the same. Validation Failed is added to the another group in the message.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes