Repository navigation
ci: disable codecov for pull requests from forks to prevent CI failures - #12
Merged
Merged
Conversation
Since Codecov now does tokenless uploads, it easily hits the GitHub
rate limits, causing the codecov step, and by extension the CI itself,
to spuriously fail.
```
error - 2024-05-14 13:57:26,203 -- Commit creating failed: {"detail":"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 379 seconds."}
```
This could be worked around by setting `fail_ci_if_error` to false as
well. However, that is not a better solution for two reasons.
1. The Codecov CI step can spend an indeterminate amount of time waiting
waiting for the token to be available per GitHub's rate limit,
causing unnecessarily long CI running times.
Timing out this step isn't a better option either, since there is
no deterministic amount of time that this step is guaranteed to
always take.
2. Disabling `fail_ci_if_error` would mean that whenever codecov does
run (i.e., on `main`/`master`, etc), if coverage reporting failed
then CI would not report it appropriately, leaving underlying
issues undiagnosed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since Codecov now does tokenless uploads, it easily hits the GitHub rate limits, causing the codecov step, and by extension the CI itself, to spuriously fail.
This could be worked around by setting
fail_ci_if_errorto false as well. However, that is not a better solution for two reasons.fail_ci_if_errorwould mean that whenever codecov does run (i.e., onmain/master, etc), if coverage reporting failed then CI would not report it appropriately, leaving underlying issues undiagnosed.