-
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
fix 5569 pipelinerun hang on Unknown status due to duplicated task parameters #5575
fix 5569 pipelinerun hang on Unknown status due to duplicated task parameters #5575
Conversation
Hi @chengjoey. 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. |
/kind bug |
/ok-to-test |
The following is the coverage report on the affected files.
|
/retest |
9e38370
to
38e61c8
Compare
The following is the coverage report on the affected files.
|
38e61c8
to
ab60ee6
Compare
The following is the coverage report on the affected files.
|
Looks good so far - could you make these changes in |
ab60ee6
to
b736e9a
Compare
b736e9a
to
a9bd43d
Compare
The following is the coverage report on the affected files.
|
thanks for your mentions, i've made these change in |
a9bd43d
to
bfb6cff
Compare
The following is the coverage report on the affected files.
|
}, { | ||
Name: "duplicate-param", Value: ParamValue{Type: ParamTypeString, StringVal: "val2"}, | ||
}}, | ||
}}, |
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.
So let's say I add one more param with the same name duplicate-param
. It fails with:
expected exactly one, got both: [0][1].name, [0][2].name",
This is misleading, ErrMultipleOneOf
might not be the best fit here. We can add a generic error saying:
params names must be unique, the same param \""+param.Name+"\" is defined multiple times at: <a list of indexes>
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 @pritidesai , I think your suggestion is clearer to the user
i change the error to params names must be unique, the same param: duplicate-param is defined multiple times at: [0].params[1].name, [0].params[2].name
do you think this is okay
bfb6cff
to
eda03b5
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 @chengjoey 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pritidesai 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 |
/test check-pr-has-kind-label |
@abayer: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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. |
/lgtm |
/retest |
Changes
fix pipelinerun hang on Unknown status when duplicated params definded in PipelienTask
Fix #5569
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