-
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-0118: Update TaskRun Validation for Matrix Include Params #6418
TEP-0118: Update TaskRun Validation for Matrix Include Params #6418
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Also not sure why the code coverage went down. I've compared the code coverage with the last PR to have file changes: #6150 and it looks like it has the exact same code coverage, except for whatever reason it is now highlighting in red this section of code (which is unchanged in this PR)
|
de08dd5
to
6605a41
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
6605a41
to
dc39b2b
Compare
bf005e5
to
a866dc6
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Added additional testing |
a866dc6
to
0b29a67
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
750641e
to
afe0a98
Compare
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.
Thanks Emma! Looks great!
Value: *v1beta1.NewStructuredValues("array", "param"), | ||
}}, | ||
matrix: &v1beta1.Matrix{}, | ||
wantErr: "invalid input params for task : param types don't match the user-specified type: [foo]", |
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.
Suggest including more info in this error message comparing the type received to the type specified; see #6365 (comment) for more detail on why.
Although this might be better in a separate PR
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lbernick 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.
/unhold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerop, lbernick 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 |
This commit updates TaskRun validation to also validate Matrix Include Params. With this change, we validate that all parameters declared in the TaskSpec are present in the TaskRun. It also validates that all parameters have values, parameter types match the specified type and object params have all the keys required. Note: Matrix Include is still in preview mode.
afe0a98
to
d1f8e96
Compare
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.
/lgtm
/test pull-tekton-pipeline-go-coverage |
The following is the coverage report on the affected files.
|
Changes
This PR updates TaskRun validation to also validate Matrix Include Params. With this change, we validate that all parameters declared in the TaskSpec are present in the TaskRun. It also validates that all parameters have values, parameter types match the specified type and object params have all the keys required.
Also added testing to bring test coverage to 100%.
Note: Matrix Include is still in preview mode.
/kind feature
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes