Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bump codecov-action to v4 (acts-project#3215)
## Issue For about a week, we did not get any coverage reports added to PRs. Reason was a failing upload, due to the codecov rate limit. `[2024-05-24T09:08:19.271Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 429 - {'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 2453s.', code='throttled')}` ## Solution - Update from `codecov-action@v3` to `codecov-action@v4`. To keep the same coverage, we need to add the flag `disable_search: true`. Otherwise, around 1500 coverage files would be uploaded and increase our coverage from 50% to 85%. This solution was suggested in: - codecov/codecov-action#1354 Maybe we need to add the token as `token: ${{ secrets.CODECOV_TOKEN }}`, when we run into the rate-limit again. But it might not necessary, since they enabled token-free uploads for forks of open-source repositories. ## Coverage Change -1.63% The change seems to be due to 2 reasons: - The old HEAD lies 14 commits in the past - Ending `}` are not counted as "covered" and just ignored. Therefore the relative amount of uncovered parts is increased.
- Loading branch information