-
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
Added Skip Logic: Matrix parameters cannot be empty arrays #6140
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
ac24741
to
5e39dfb
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.
|
5c26aae
to
0180ffc
Compare
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.
Thank you @EmmaMunley!
- Please update the documentation: https://github.com/tektoncd/pipeline/blob/main/docs/matrix.md
- You referenced issue
timeouts
is not working as expected. #6137 but it should be PipelineRun reconciler panics for a matrix parameter with an empty array value #6071
cc @abayer |
thanks @EmmaMunley for the PR, I have updated the PR description with the right issue number. @abayer and @jerop, please review the comment at #6071 (comment) |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
8e3113c
to
f30249a
Compare
The following is the coverage report on the affected files.
|
Thank you @pritidesai. I've updated the matrix documentation. |
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.
|
The following is the coverage report on the affected files.
|
54d985a
to
cc1fd14
Compare
/test pull-tekton-pipeline-alpha-integration-tests |
1c7969b
to
ce90b71
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
ce90b71
to
d47b321
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/assign @dibyom |
Overall LGTM! Just one question around adding another unit test |
d47b321
to
9031421
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
9031421
to
ba67df1
Compare
If a matrix parameter contains an empty array it will be skipped - no PipelineTask will be created - this follows the same logic for when expressions.
ba67df1
to
a13f53f
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom 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 |
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
Changes
Added a check in Pipeline validation to verify that matrix parameters are not just arrays, but that they are not empty arrays. This won't change existing functionality/capabilities, but will get rid of the panic in the reconciler.
This addresses issues: #6071
/kind bug
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