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

ci: bump codecov-action to v4 #3215

Merged
merged 5 commits into from
May 24, 2024
Merged

Conversation

AJPfleger
Copy link
Contributor

@AJPfleger AJPfleger commented May 24, 2024

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:

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.

@AJPfleger AJPfleger added the 🚧 WIP Work-in-progress label May 24, 2024
@AJPfleger AJPfleger added this to the next milestone May 24, 2024
@github-actions github-actions bot added the Infrastructure Changes to build tools, continous integration, ... label May 24, 2024
Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.51%. Comparing base (2e0ebfe) to head (5dffa49).
Report is 268 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3215      +/-   ##
==========================================
- Coverage   49.14%   47.51%   -1.63%     
==========================================
  Files         499      499              
  Lines       29253    28292     -961     
  Branches    13870    13832      -38     
==========================================
- Hits        14375    13442     -933     
- Misses       4969     4970       +1     
+ Partials     9909     9880      -29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AJPfleger AJPfleger marked this pull request as ready for review May 24, 2024 13:33
@AJPfleger AJPfleger removed the 🚧 WIP Work-in-progress label May 24, 2024
@asalzburger asalzburger merged commit 50fc28f into acts-project:main May 24, 2024
37 of 54 checks passed
@asalzburger
Copy link
Contributor

Force merged - as it will fail CI.

@AJPfleger AJPfleger deleted the coverage branch May 24, 2024 14:57
kodiakhq bot referenced this pull request May 24, 2024
Follow up to `https://github.com/acts-project/acts/pull/3215`.

The base did not get uploaded to codecov. Therefore, the difference-problem is handed over to the next PR. We need to provide the token to successfully upload. We increase the accepted threshold to update the codecov-BASE over the course of 2 PRs, to get PRs (including this one) in until the upload problem is solved.
EleniXoch pushed a commit to EleniXoch/acts that referenced this pull request May 31, 2024
## 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.
EleniXoch referenced this pull request in EleniXoch/acts May 31, 2024
…t#3222)

Follow up to `https://github.com/acts-project/acts/pull/3215`.

The base did not get uploaded to codecov. Therefore, the difference-problem is handed over to the next PR. We need to provide the token to successfully upload. We increase the accepted threshold to update the codecov-BASE over the course of 2 PRs, to get PRs (including this one) in until the upload problem is solved.
@andiwand andiwand modified the milestones: next, v35.1.0 Jun 1, 2024
Matthewharri pushed a commit to Matthewharri/acts that referenced this pull request Jun 18, 2024
## 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.
Matthewharri referenced this pull request in Matthewharri/acts Jun 18, 2024
…t#3222)

Follow up to `https://github.com/acts-project/acts/pull/3215`.

The base did not get uploaded to codecov. Therefore, the difference-problem is handed over to the next PR. We need to provide the token to successfully upload. We increase the accepted threshold to update the codecov-BASE over the course of 2 PRs, to get PRs (including this one) in until the upload problem is solved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Changes to build tools, continous integration, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants