diff --git a/sdk/RELEASE.md b/sdk/RELEASE.md index cc6a2562c2..a0e2cd0ec0 100644 --- a/sdk/RELEASE.md +++ b/sdk/RELEASE.md @@ -11,6 +11,7 @@ ## Bug fixes and other changes * Enables output definitions when compiling components as pipelines. [\#8848](https://github.com/kubeflow/pipelines/pull/8848) +* Fix bug when passing data between tasks using f-strings [\#8879](https://github.com/kubeflow/pipelines/pull/8879) ## Documentation updates diff --git a/sdk/python/kfp/compiler/pipeline_spec_builder.py b/sdk/python/kfp/compiler/pipeline_spec_builder.py index d70dc321e0..216aa61534 100644 --- a/sdk/python/kfp/compiler/pipeline_spec_builder.py +++ b/sdk/python/kfp/compiler/pipeline_spec_builder.py @@ -262,7 +262,7 @@ def build_task_spec_for_task( additional_input_name].task_output_parameter.producer_task = ( utils.sanitize_task_name(channel.task_name)) pipeline_task_spec.inputs.parameters[ - input_name].task_output_parameter.output_parameter_key = ( + additional_input_name].task_output_parameter.output_parameter_key = ( channel.name) else: # Dependent task not from the same DAG. diff --git a/sdk/python/test_data/pipelines/pipeline_with_params_containing_format.yaml b/sdk/python/test_data/pipelines/pipeline_with_params_containing_format.yaml index 4715ce0b2d..80cc5644b0 100644 --- a/sdk/python/test_data/pipelines/pipeline_with_params_containing_format.yaml +++ b/sdk/python/test_data/pipelines/pipeline_with_params_containing_format.yaml @@ -74,7 +74,7 @@ deploymentSpec: - -c - "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\ \ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\ - \ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.0.0-beta.8'\ + \ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.0.0-beta.12'\ \ && \"$0\" \"$@\"\n" - sh - -ec @@ -101,7 +101,7 @@ deploymentSpec: - -c - "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\ \ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\ - \ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.0.0-beta.8'\ + \ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.0.0-beta.12'\ \ && \"$0\" \"$@\"\n" - sh - -ec @@ -128,7 +128,7 @@ deploymentSpec: - -c - "\nif ! [ -x \"$(command -v pip)\" ]; then\n python3 -m ensurepip ||\ \ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\ - \ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.0.0-beta.8'\ + \ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.0.0-beta.12'\ \ && \"$0\" \"$@\"\n" - sh - -ec @@ -186,6 +186,7 @@ root: parameters: pipelinechannel--print-op-Output: taskOutputParameter: + outputParameterKey: Output producerTask: print-op text: runtimeValue: @@ -200,4 +201,4 @@ root: isOptional: true parameterType: STRING schemaVersion: 2.1.0 -sdkVersion: kfp-2.0.0-beta.8 +sdkVersion: kfp-2.0.0-beta.12