pipelines
pipelines copied to clipboard
[sdk] Create version command requires both pipeline_id and pipeline_name
Environment
- KFP version: 2.7.0
- KFP SDK version: 2.0.5
- All dependencies version: kfp 2.7.0 kfp-kubernetes 1.2.0 kfp-pipeline-spec 0.3.0 kfp-server-api 2.0.5
Steps to reproduce
kfp pipeline create-version -n some-pipeline pipeline.yaml
Usage: kfp pipeline create-version [OPTIONS] PACKAGE_FILE
Try 'kfp pipeline create-version --help' for help.
Error: Missing option '-v' / '--pipeline-version'.
Expected result
The correct behaviour should be allowing creation of the pipeline by providing pipeline-version
OR pipeline-name
option.
Materials and Reference
create-version
function utilize upload_pipeline_version
under the hood which has potential bug:
here
Potential fix:
if not any([pipeline_id, pipeline_name]):
raise ValueError('Either pipeline_id or pipeline_name is required.')
Impacted by this bug? Give it a 👍.