You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running poly test, before running the tests it will also run the check command. If that fails, poly shows the messages and exits. The exit code however is zero, meaning that it claims that everything is OK. This is especially harmful in CI because it causes that the build succeeds while the tests are not even run.
To Reproduce
Steps to reproduce the behavior:
Create an error in a polylith project; for example create a circular dependency or remove a required component from a project.
In a bash-compatible shell, run poly check; echo "Exit code: $?" and notice that the error is printed correctly, and the exit code is 1 as expected.
Now run poly test; echo "Exit code: $?" and notice that, while the error is printed, the exit code is 0.
Please note that the same happens when running clojure -M:poly instead of running poly from Homebrew.
Expected behavior
The error code should have been 1.
Operating System (please complete the following information):
OS: macOS
Version: 11.6.2
Versions (please complete the following information):
Java: openjdk version "17.0.1" 2021-10-19
Poly: 0.2.13-alpha (2021-10-12)
Brew: 3.3.9-80-g26694fd
The text was updated successfully, but these errors were encountered:
Describe the bug
When running
poly test
, before running the tests it will also run thecheck
command. If that fails, poly shows the messages and exits. The exit code however is zero, meaning that it claims that everything is OK. This is especially harmful in CI because it causes that the build succeeds while the tests are not even run.To Reproduce
Steps to reproduce the behavior:
poly check; echo "Exit code: $?"
and notice that the error is printed correctly, and the exit code is1
as expected.poly test; echo "Exit code: $?"
and notice that, while the error is printed, the exit code is0
.Please note that the same happens when running
clojure -M:poly
instead of running poly from Homebrew.Expected behavior
The error code should have been 1.
Operating System (please complete the following information):
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: