Skip to content
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

[frontend] Default pipeline input params are missing from the GUI #11515

Closed
revit13 opened this issue Jan 15, 2025 · 1 comment · Fixed by #11518
Closed

[frontend] Default pipeline input params are missing from the GUI #11515

revit13 opened this issue Jan 15, 2025 · 1 comment · Fixed by #11518

Comments

@revit13
Copy link
Contributor

revit13 commented Jan 15, 2025

When default pipeline input parameters, such as False or an empty string, are used, the GUI displays a Missing parameter error when attempting to run the pipeline. This issue does not occur with a True value. It prevents the pipeline from running unless the values are manually filled.

Environment

  • How did you deploy Kubeflow Pipelines (KFP)?
    Running on openshift 4.16.23
  • KFP version:
    kubeflow image: gcr.io/ml-pipeline/api-server:2.3.0

Steps to reproduce

Run the following pipeline:

import kfp.compiler as compiler
import kfp.dsl as dsl

def print_params(
    bool_param: bool,
    str_param: str
) -> None:
    print(bool_param)
    print(str_param)

print_params_op = dsl.component_decorator.component(func=print_params, base_image='python:3.9')

@dsl.pipeline(
    name="example",
    description="Pipeline for default values task",
)
def example(bool_param: bool = False, str_param: str = ''):
    print_params_op(bool_param=bool_param, str_param=str_param)


if __name__ == "__main__":
    # Compiling the pipeline
    compiler.Compiler().compile(example, __file__.replace(".py", ".yaml"))

Trying to run the pipeline gives an error in the GUI:

Image

Expected result

Materials and Reference


Impacted by this bug? Give it a 👍.

@ElayAharoni
Copy link
Contributor

/assign

ElayAharoni pushed a commit to ElayAharoni/pipelines that referenced this issue Jan 15, 2025
Signed-off-by: Elay Aharoni (EXT-Nokia) <elay.aharoni.ext@nokia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants