-
Notifications
You must be signed in to change notification settings - Fork 31
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
CI: Disable failing on code coverage report upload, Codecov has issues #451
Conversation
Codecov occasionally responds with: 404 Not Found: Unable to locate build via Github Actions API. Some workaround-like mitigations have been tried, but to no avail. Reference: #451
79060aa
to
cb2d904
Compare
@thomasrockhu / @thomasrockhu-codecov just created a tracking post on their forum at [1]. Thank you! When this is resolved, we may want to revert this patch. With f5aedc8, I am trying to explicitly configure a [1] https://community.codecov.com/t/unable-to-locate-build-via-github-actions-api-for-the-public-repository/3894 |
708d160
to
f5aedc8
Compare
It looks like adding |
… problems Reference: #451
b780104
to
cd1e027
Compare
Another occurrence on behalf of codecov/codecov-action#458? The error message is different.
-- https://github.com/crate/crate-python/actions/runs/3275823201/jobs/5391136840#step:5:44 |
-- https://github.com/crate/crate-python/actions/runs/3276395895/jobs/5392400640#step:5:43 |
Problem
Code coverage report upload to Codecov started failing intermittently. Example: https://github.com/crate/crate-python/actions/runs/3177244114/jobs/5177463683
References
Others are observing the same issue. Apparently, https://codecov.io occasionally responds with
404 Not Found
.Debugging
Trying different approaches like 67d63cc or da27772.
Supposed solution
The patch da27772 explicitly adds the use of the
with.token
option, as confirmed by others to improve the behaviour even on public repos.The token is not required for public repos, but it makes the workflow less likely to randomly fail because of a limit in codecov CI capabilities [1]. However, the secret token does not always save from erratic behaviour [2-4].
[1] codecov/codecov-action#557 (comment)
[2] codecov/codecov-action#557 (comment)
[3] codecov/codecov-action#598 (comment)
[4] https://github.com/orgs/community/discussions/25701
Still croaks
Example: https://github.com/crate/crate-python/actions/runs/3177539843/jobs/5178341299
Solution
Using cb2d904 instead now, using
fail_ci_if_error: false
. C'est la vie. 🌧️