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

Upgrade Codecov action #5024

Merged
merged 3 commits into from
Apr 8, 2024
Merged

Upgrade Codecov action #5024

merged 3 commits into from
Apr 8, 2024

Conversation

samdoran
Copy link
Contributor

@samdoran samdoran commented Apr 8, 2024

Description

This is more direct than relying on option parsing in the Codecov action.

Unfortunately, Codecov has moved to requiring a token for uploads. In practice, this breaks coverage uploads from PRs from forks since they do not have access to secrets even though they have stated this should work for public repos.

We don't have OIDC setup so that's not feasible for us at the moment.

Related to
codecov/feedback#112
codecov/feedback#315

Release Notes

  • proposed release note
* [COST-####](https://issues.redhat.com/browse/COST-####) Fix some things

Copy link

codecov bot commented Apr 8, 2024

Codecov Report

Merging #5024 (cba67f5) into main (67bb9f3) will increase coverage by 0.0%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #5024   +/-   ##
=====================================
  Coverage   94.1%   94.1%           
=====================================
  Files        377     377           
  Lines      31243   31243           
  Branches    3710    3710           
=====================================
+ Hits       29399   29403    +4     
+ Misses      1174    1170    -4     
  Partials     670     670           

This is more direct than relying on option parsing in the Codecov CLI.

Unfortunately, Codecov has moved to required a token for uploading. In practice, this breaks coverage
uploads from PRs from forks since they do not have access to secrets.
This uses the new Python CLI uploader.
Removes dumb attempts to run tools that don’t exist and are unnecessary.
@samdoran samdoran changed the title Set Codecov token using environment variable Upgrade Codecov action Apr 8, 2024
@samdoran samdoran marked this pull request as ready for review April 8, 2024 18:27
@samdoran samdoran requested review from a team as code owners April 8, 2024 18:27
@maskarb maskarb merged commit 81f259e into main Apr 8, 2024
11 checks passed
@maskarb maskarb deleted the ci/codecov-update branch April 8, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants