-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
DVC exits with code 0 even if there was an error #2850
Comments
Hi @peper0 ! Thank you for a very convenient reproducer! Indeed, I can reproduce this bug with binary dvc, but not with dvc installed from pip/brew/conda/etc. As a workaround, could you try installing dvc from one of those sources (i suppose pip will be the most convenient for you) and let us know if that works? |
Looks like even things like |
@efiop Can be reproduced with pip installed version when dvc is used as a python module:
However the wrapper script installed in
However,
|
I'he just created a merge request of a trivial patch that fixes it for the direct python usage ( I couldn't test it for apt version, since I've had problems with building it. |
@peper0 oh wow, amazing investigation! Thank you so much! 🙏 I think you are absolutely right about it. I'll give it a try in a second. EDIT: tested and it works like a charm! 🎉 |
@peper0 I'll trigger a new release today, thank you! |
@peper0 0.71.1 is out, please upgrade and give it a try 🙂 Thank you so much! |
It's good now. Thanks! :) |
Tested with dvc 0.70 from apt on Ubuntu:
Can be easily reproduced with docker. The following example shows pulling from a nonexistent repository but the same problem is with errors of any kind.
Steps to reproduce
Create a following Dockerfile:
Build it:
$ docker build . -t dvc-bug
Run it:
$ docker run -it dvc-bug
Obtained result
Expected result
No
command succesfull, but should not be
text in the output.Mentioned earlier in #2038
The text was updated successfully, but these errors were encountered: