piperider icon indicating copy to clipboard operation
piperider copied to clipboard

Return non-zero exit code if test failed

Open popcornylu opened this issue 2 years ago • 1 comments

Summary

Currently, when there are failed test, it still return zero exit-code.

If we would like to integrate pipeline in workflow system (e.g. airflow) or CI system (e.g. jenkins, github action), it would be better to failed with non-zero exit code so that we can make the job with failed condition

Intended Outcome

When there is any test failed, return non-zero (1 would be good enugh)

How will it work?

In the command piperider run, call exit(1) if there is any test failed.

sc-28851

popcornylu avatar Sep 27 '22 05:09 popcornylu

reference: how dbt handles exit codes https://docs.getdbt.com/reference/exit-codes

hlb avatar Sep 29 '22 01:09 hlb