-
Notifications
You must be signed in to change notification settings - Fork 477
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
Conversation
Codecov Report
@@ 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
... and 439 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
611bd21
to
cec73e6
Compare
There was a problem hiding this 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?
Yep. In fact, I accidentally didn't even use the variable in that version. Updated. |
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.