covr icon indicating copy to clipboard operation
covr copied to clipboard

bug: `covr::codecov()` should throw an error if unable to upload coverage results to codecov.io

Open ALanguillaume opened this issue 10 months ago • 3 comments

Description

covr::codecov() should throw an error if unable to upload coverage results to codecov.io

Actual Behaviour

If covr::codecov() fails to upload coverage results to codecov.io it does not throw an error, the corresponding github action is thus marked as successful in github.

The devs are not notify that there was a failure in the workflow.

See this workflow

image

Expected Behaviour

covr::codecov() throws an error if unable to upload coverage results to codecov.io. -> gh action workflow fails -> devs are notified

Additional context

Related to https://github.com/r-lib/actions/issues/822

ALanguillaume avatar Apr 11 '24 13:04 ALanguillaume

@ALanguillaume I'm facing this issue. I can see that your test repo has the coverage badge despite the upload failing in the latest test-coverage action. Did you figure out how to solve the issue, or was there another issue?

roaldarbol avatar Aug 26 '24 14:08 roaldarbol

@roaldarbol I am not sure I understand your question. What is the problem you encountered aside from the silent upload failure ?

ALanguillaume avatar Sep 22 '24 15:09 ALanguillaume

Never mind. :-) My issue was that given it was the first time I attempted to use codecov and it failed, I got no badge at all. That resolved after ~10 minutes once codecov caught on to my project.

roaldarbol avatar Sep 25 '24 13:09 roaldarbol