avast / wanna-ml

Complete MLOps framework for Vertex-AI
MIT License
17 stars 3 forks source link

[Bug]: if the pipeline does not exist, wanna-ml returns 0 status code #105

Closed racinmat closed 3 months ago

racinmat commented 5 months ago

Contact Details

No response

What happened?

I got this:

❌ pipeline with name wanna-hmic-cc not found in your wanna-ml yaml config.
Process exited with code 0

when wanna build was used with non-existing pipeline, it should exit with non-0.

wanna.yaml file

private repo in https://git.int.avast.com/mlops/wanna-hmic-cc/blob/d2ce2565234c03de6aef9ef04ace62975e7bbd68/wanna.yaml

wanna-ml CLI command

set -e

export BUILD_NUMBER="%build.number%"

export DOCKER_BUILDKIT=1
echo "Executing push task:"
echo "pip install -U poetry
poetry run pip install --upgrade pip wheel setuptools cmake
poetry install
alias wanna="poetry run wanna"
export WANNA_ENV_PIPELINE_PARAMS=pipeline/params.prod.yaml
export WANNA_PIPELINE_NETWORK=projects/469869537719/global/networks/vpc-network

wanna pipeline push --name wanna-hmic-cc-gvma --version ${WANNA_PUSH_VERSION} --mode containers
pip install -U poetry
poetry run pip install --upgrade pip wheel setuptools cmake
poetry install
alias wanna="poetry run wanna"
export WANNA_ENV_PIPELINE_PARAMS=pipeline/params.prod.yaml
export WANNA_PIPELINE_NETWORK=projects/469869537719/global/networks/vpc-network

wanna pipeline push --name wanna-hmic-cc-fileinfo-v4 --version ${WANNA_PUSH_VERSION} --mode containers"

pip install -U poetry
poetry run pip install --upgrade pip wheel setuptools cmake
poetry install
alias wanna="poetry run wanna"
export WANNA_ENV_PIPELINE_PARAMS=pipeline/params.prod.yaml
export WANNA_PIPELINE_NETWORK=projects/469869537719/global/networks/vpc-network

wanna pipeline push --name wanna-hmic-cc-gvma --version ${WANNA_PUSH_VERSION} --mode containers
pip install -U poetry
poetry run pip install --upgrade pip wheel setuptools cmake
poetry install
alias wanna="poetry run wanna"
export WANNA_ENV_PIPELINE_PARAMS=pipeline/params.prod.yaml
export WANNA_PIPELINE_NETWORK=projects/469869537719/global/networks/vpc-network

wanna pipeline push --name wanna-hmic-cc-fileinfo-v4 --version ${WANNA_PUSH_VERSION} --mode containers

Relevant log output

No response

jsilva commented 3 months ago

Fixed in 0.3.1