-
Notifications
You must be signed in to change notification settings - Fork 247
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
Switches to codecov GH action #1118
Switches to codecov GH action #1118
Conversation
Skipping CI for Draft Pull Request. |
a203f05
to
d2b1ecd
Compare
@@ -13,10 +13,13 @@ jobs: | |||
unit: | |||
runs-on: ubuntu-latest | |||
steps: | |||
- uses: actions/checkout@v2 | |||
- uses: actions/checkout@v3 |
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 wanted to update it with rest of the actions in #1117, but .github/workflows/codecov.sh
fails with v3. As far a s I understand, bash script relies on older version of node which was provided by actions/checkout@v2
and no longer works with Node 16.
Codecov Report
@@ Coverage Diff @@
## master #1118 +/- ##
==========================================
+ Coverage 52.64% 53.80% +1.15%
==========================================
Files 108 108
Lines 9703 10163 +460
==========================================
+ Hits 5108 5468 +360
- Misses 3653 3734 +81
- Partials 942 961 +19 |
d01e47a
to
1e11eb2
Compare
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: coverage.out | ||
fail_ci_if_error: true |
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.
Equivalent of -Z
from the bash script.
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
1e11eb2
to
5c43e7b
Compare
with: | ||
files: coverage.out | ||
fail_ci_if_error: true | ||
functionalities: fixes |
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.
This is to avoid things like on the screenshot which decrease code coverage (bash uploader was doing it by default).
I believe this doc is related: https://docs.codecov.com/docs/fixing-reports#go
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.
Alternatively we can remove this line and estabilish a new baseline in master without enabling these fixes.
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.
Honestly, good with either approach. Using 'fixes' right now seems generally good?
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.
Yeah, I think fixes
gives exactly the same result as it was with the previous uploader. After adding fixes
the diff between master
coverage and this PR is empty (see results here).
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.
After adding
fixes
the diff betweenmaster
coverage and this PR is empty (see results here).
Ah, interesting. Yesterday after running the tests the diff was empty and now it says +1.16%. Probably codecov was still processing when I opened the link.
Anyway - I think we should keep fixes
for now.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: grokspawn, m1kola The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
b854557
into
operator-framework:master
Description of the change:
Switches the repo to use codecov GH action.
Motivation for the change:
In #639 (after Codecov bash uploader vulnerability) this repo was switched to use copy-pasted bash script.
Since then many things changed:
codecov/codecov-action
no longer uses bash uploaderI think it is safe to switch back to this GH action.
Reviewer Checklist
/docs