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

DevOps: fix codecov uploading #5345

Merged
merged 18 commits into from
May 3, 2023

Conversation

onetechnical
Copy link
Contributor

@onetechnical onetechnical commented May 1, 2023

Summary

While open source repositories should be able to upload without a token, Codecov support will often break with Github's API access. The recommended solution to this is to implement a codecov repository token in the implementation, even if open source.

This PR updates the bash uploader to latest as well as makes this change. The bash script is actually deprecated, but CircleCI orb usage cannot be implemented until codecov offers multi-platform support (arm64, darwin). Additionally, dropping in the new uploader would add about 100 MB of binary to the repository, so was not desired.

Since the update check was removed, we could make this a breaking change for CI - right now, if there are errors executing this, then it's ignored, which means that we do not block PRs for failing code coverage execution.

Test Plan

Verify that codecov results are uploaded.

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #5345 (01c4440) into master (f4f5ec6) will increase coverage by 1.22%.
The diff coverage is 3.33%.

@@            Coverage Diff             @@
##           master    #5345      +/-   ##
==========================================
+ Coverage   53.78%   55.00%   +1.22%     
==========================================
  Files         450      450              
  Lines       56201    62881    +6680     
==========================================
+ Hits        30226    34588    +4362     
- Misses      23626    25906    +2280     
- Partials     2349     2387      +38     
Impacted Files Coverage Δ
cmd/algocfg/profileCommand.go 8.19% <0.00%> (+0.64%) ⬆️
cmd/goal/clerk.go 8.63% <0.00%> (-0.47%) ⬇️
daemon/algod/api/server/v2/handlers.go 0.89% <ø> (+0.06%) ⬆️
daemon/algod/api/server/v2/utils.go 12.91% <0.00%> (+1.99%) ⬆️
ledger/ledger.go 71.53% <0.00%> (+1.44%) ⬆️
ledger/tracker.go 75.00% <0.00%> (+1.31%) ⬆️
libgoal/libgoal.go 2.28% <0.00%> (-0.23%) ⬇️
node/follower_node.go 35.54% <50.00%> (+9.45%) ⬆️

... and 439 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@onetechnical onetechnical changed the title WIP: Debug codecov DevOps: fix codecov uploading May 2, 2023
@onetechnical onetechnical marked this pull request as ready for review May 2, 2023 20:30
@onetechnical onetechnical requested review from a team, excalq and algobarb May 2, 2023 20:32
algobarb
algobarb previously approved these changes May 3, 2023
Copy link
Contributor

@algobarb algobarb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love that we have to do this, but I get it. Do we want to add a comment in .circleci/config.yml too?

@onetechnical
Copy link
Contributor Author

I don't love that we have to do this, but I get it. Do we want to add a comment in .circleci/config.yml too?

Yep. In fact, I accidentally didn't even use the variable in that version. Updated.

@onetechnical onetechnical marked this pull request as draft May 3, 2023 13:17
@onetechnical onetechnical marked this pull request as ready for review May 3, 2023 15:48
@onetechnical onetechnical requested a review from a team as a code owner May 3, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants