Skip to content

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

@revit13

Description

@revit13

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 👍.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions