-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 PipelineParam pattern bug #1300
Conversation
Hi @elikatsis. Thanks for your PR. I'm waiting for a kubeflow 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. |
1 similar comment
Hi @elikatsis. Thanks for your PR. I'm waiting for a kubeflow 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. |
348ea1f
to
93f3031
Compare
But for this PR |
/approve cancel |
Sorry, can you please add a test demonstrating the issue that you've fixed? It might be an |
* Generate a pattern in the constructor if one is not provided * Add compiler tests Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com>
Oh yes, good idea! |
For future reference: Here is the error:
|
/lgtm Thanks again for the catch! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun 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 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun 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 |
If a
PipelineParam
was found twice in an Op, e.g. inarguments
and involumes
, having different patterns (None
vs anything) messed theinputs
attribute (which usesset()
on the extractedPipelineParam
s).The different
pattern
s may occur sincearguments
(as well ascommand
) gets thestr()
representation of thePipelineParam
before it gets sanitized.I chose to generate a
pattern
in the constructor, if one is not provided.Otherwise, we could use the
pattern
attribute in__hash__
method, but it messes tests because it generally leads to duplicate entries.This change is