Exit code is 0 even in case of fatal error
avandecreme opened this issue · 0 comments
avandecreme commented
For example if I have a corrupted profraw file, the following is printed to stderr:
warning: /tmp/.tmp9VFcUq/foo-1-11510002822451752252_0_1.profraw: invalid instrumentation profile data (file header is corrupt)
error: no profile can be merged
14:55:09 [ERROR] Error while executing llvm tools: Failure while running "/usr/local/rustup/toolchains/1.74.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata" "merge" "-f" "-" "-sparse" "-o" "/tmp/.tmp9VFcUq/0/grcov.profdata"
However, grcov still returns with exit code 0 so in my case, the CI doesn't detect the error.