Skip to content
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

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

Open
ALanguillaume opened this issue Apr 11, 2024 · 3 comments

Comments

@ALanguillaume
Copy link

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 r-lib/actions#822

@roaldarbol
Copy link

@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?

@ALanguillaume
Copy link
Author

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

@roaldarbol
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants