Open EladProject opened 3 weeks ago
How do you deploy Kubeflow Pipelines (KFP)? Installed with poetry
KFP version: 1.7.1
KFP SDK version: kfp 2.9.0 kfp-pipeline-spec 0.4.0 kfp-server-api 2.3.0
I try to run the following test:
from kfp import dsl from kfp import local local.init(runner=local.DockerRunner()) @dsl.component def print_and_return_env_var() -> str: import os val = os.environ.get('ENV1') print("ENV1:", val) return val @dsl.pipeline def env_var_test() -> str: res = print_and_return_env_var() res = res.set_env_variable(name="ENV1", value="yoyo") return res.output def test_env_var_local(): res = env_var_test() assert res.output == "yoyo"
To print "ENV1: yoyo" To return "yoyo" in the pipeline result
When I compile the pipeline, I do see the env var in the pipeline.yaml
/area backend
Impacted by this bug? Give it a 👍.
Environment
How do you deploy Kubeflow Pipelines (KFP)? Installed with poetry
KFP version: 1.7.1
KFP SDK version: kfp 2.9.0 kfp-pipeline-spec 0.4.0 kfp-server-api 2.3.0
Steps to reproduce
I try to run the following test:
Expected result
To print "ENV1: yoyo" To return "yoyo" in the pipeline result
Materials and reference
When I compile the pipeline, I do see the env var in the pipeline.yaml
Labels
/area backend
Impacted by this bug? Give it a 👍.