Open jsilva opened 5 months ago
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 looks like it's still relevant
This bug is still present in SDK 2.2.0.
Since presumably only tasks are needed to be checked here, pipeline parameters can probably be ignored: https://github.com/kubeflow/pipelines/blob/9cb5913d4757132e2c6e5f1c5fa2cdb7ad541f97/sdk/python/kfp/compiler/compiler_utils.py#L762-L765
Like so:
upstream_tasks_that_downstream_consumers_from = [
channel.task.name for channel in task._channel_inputs if channel.task is not None
]
Environment
KFP version: N/A - it does not compile
KFP SDK version: kfp 2.7.0
All dependencies version:
kfp 2.7.0 kfp-pipeline-spec 0.3.0 kfp-server-api 2.0.5
or adding the following test
to the python sdk
compiler_test.py
will do the trick.With the above I get the following error:
Expected result
Materials and Reference
This issue is related to changes in https://github.com/kubeflow/pipelines/pull/10257 Doing a check
if channel.task
in https://github.com/kubeflow/pipelines/blob/master/sdk/python/kfp/compiler/compiler_utils.py#L763 will make the above test pass.Impacted by this bug? Give it a 👍.