Closed stijntratsaertit closed 4 months ago
Same error that was commented here: https://github.com/kubeflow/pipelines/issues/9366
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still a bug
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.
Environment
KFP version: 2
KFP SDK version: 2.0.1
All dependencies version:
Steps to reproduce
Previously, in KFP SDK v1.8.*, the following worked when the
my_component
component accepted 2 arguments, the first beingint
and the second being astr
.When upgrading to KFP SDK v2.0.1, this is now thrown as an error when compiling the pipeline:
Expected result
No error and a correct passage of
first_param
as an integer parameter tomy_component
.Materials and Reference
It could be that I'm misusing the arguments to
dsl.ParallelFor
as I couldn't find very much more similar examples other than the main docs.A possible angle to the issue could be regarding this: https://github.com/kubeflow/pipelines/blob/6dfcd533f495bf19019bb09baf5ec0d3775e0f1c/sdk/python/kfp/components/for_loop.py#L46
The type that comes in here is
dict
, no regex match is found and None is returned. Because of that, an automatic fallback toString
is done here: https://github.com/kubeflow/pipelines/blob/6dfcd533f495bf19019bb09baf5ec0d3775e0f1c/sdk/python/kfp/components/for_loop.py#L243-L244Impacted by this bug? Give it a 👍.