Skip to content

Conversation

TheJulianJES
Copy link
Contributor

@TheJulianJES TheJulianJES commented Apr 7, 2024

This adds the fail_ci_if_error option to the Codecov action.
By default, the Codecov check succeeds, even if the upload fails. This makes the check fail if the upload fails.
Otherwise, the failing Codecov upload is easily missed.

We're now using codecov-action v4 (#17) which should be "completely stable" for runs on the main repo where the CODECOV_TOKEN secret is available.
On PRs made from forks, we might still see rare failures, as those need to use tokenless uploads which are constrained by the GitHub API rate limit.

To notice those (rare) upload failures, we probably want to fail the Codecov upload check to make it clear that the upload failed. The codecov logs include an ETA of when tokenless uploads are available again. So, after 10 minutes or so, the upload job can then easily be restarted.

@TheJulianJES

This comment was marked as outdated.

@TheJulianJES TheJulianJES force-pushed the tjj/codecov_fail_ci_if_error branch from ffb197d to 52681e1 Compare April 11, 2024 19:39
@TheJulianJES TheJulianJES marked this pull request as ready for review April 11, 2024 23:00
@dmulcahey dmulcahey merged commit 8b44054 into zigpy:main Aug 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants