-
Notifications
You must be signed in to change notification settings - Fork 509
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
common: add coverage scan #5806
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5806 +/- ##
==========================================
+ Coverage 70.97% 70.99% +0.01%
==========================================
Files 131 131
Lines 19175 19175
Branches 3193 3192 -1
==========================================
+ Hits 13610 13613 +3
+ Misses 5565 5562 -3 |
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.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @janekmi)
a discussion (no related file):
Shall we remove COVERAGE=1
from ubuntu.yml
?
.github/workflows/scan_coverage.yml
line 5 at r1 (raw file):
on: workflow_dispatch:
Let's make it simply sub-workflow
.github/workflows/scan_coverage.yml
line 19 at r1 (raw file):
OS_VER: 22.04 COVERAGE: 1 TEST_BUILD: DEBUG
debug
??
Code quote:
DEBUG
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.
Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @grom72)
a discussion (no related file):
Previously, grom72 (Tomasz Gromadzki) wrote…
Shall we remove
COVERAGE=1
fromubuntu.yml
?
Actually, we agreed to keep it there since we still would like to see coverage change per pull request.
.github/workflows/scan_coverage.yml
line 5 at r1 (raw file):
Previously, grom72 (Tomasz Gromadzki) wrote…
Let's make it simply sub-workflow
I recognize that sometimes we might need to run it manually to update the coverage after a more impactful change so pull requests coming later the same day would yield more accurate coverage results.
.github/workflows/scan_coverage.yml
line 19 at r1 (raw file):
Previously, grom72 (Tomasz Gromadzki) wrote…
debug
??
Good point. I think we can discuss it tomorrow. Till now coverage was always produced using debug builds.
But we know that these builds introduce additional logic e.g. more checks which may impact the final result.
I would say in a negative way. However, I would not expect a significantly different result when coverage would be measured using a nondebug build.
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.
Reviewed 1 of 2 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @grom72)
a discussion (no related file):
Preview: https://github.com/pmem/pmdk/actions/runs/5589044785/jobs/10216738281
Result: https://app.codecov.io/github/pmem/pmdk/commit/b6f63c6b52b1dac961d3debc80cdb30bc7c62119
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @janekmi)
a discussion (no related file):
Previously, janekmi (Jan Michalski) wrote…
Actually, we agreed to keep it there since we still would like to see coverage change per pull request.
In that case, what is the added value of this scan?
.github/workflows/scan_coverage.yml
line 19 at r1 (raw file):
Previously, janekmi (Jan Michalski) wrote…
Good point. I think we can discuss it tomorrow. Till now coverage was always produced using debug builds.
But we know that these builds introduce additional logic e.g. more checks which may impact the final result.
I would say in a negative way. However, I would not expect a significantly different result when coverage would be measured using a nondebug build.
I mean debug
(lowercase) instead of DEBUG
(uppercase).
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @janekmi)
.github/workflows/scan_coverage.yml
line 5 at r1 (raw file):
Previously, janekmi (Jan Michalski) wrote…
I recognize that sometimes we might need to run it manually to update the coverage after a more impactful change so pull requests coming later the same day would yield more accurate coverage results.
But in such case, we have a long All workflows list on Actions (https://github.com/pmem/pmdk/actions) page.
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.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @janekmi)
b6f63c6
to
abed441
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.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @grom72 and @osalyk)
a discussion (no related file):
Previously, grom72 (Tomasz Gromadzki) wrote…
In that case, what is the added value of this scan?
Oh, it turned out to be a really good question. I thought that since the main.yml is not triggered by push event the codecov.io report on the master branch is not being updated. But I am not 100% sure this is the case.
Let's discuss it offline.
.github/workflows/scan_coverage.yml
line 5 at r1 (raw file):
Previously, grom72 (Tomasz Gromadzki) wrote…
But in such case, we have a long All workflows list on Actions (https://github.com/pmem/pmdk/actions) page.
Can we discuss functionality before aesthetics?
.github/workflows/scan_coverage.yml
line 19 at r1 (raw file):
Previously, grom72 (Tomasz Gromadzki) wrote…
I mean
debug
(lowercase) instead ofDEBUG
(uppercase).
Done.
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @janekmi)
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @janekmi)
.github/workflows/scan_coverage.yml
line 15 at r2 (raw file):
PMDK_CC: gcc PMDK_CXX: g++ VALGRIND: 0
We have to remember to use the same VALGRIND
value for a similar workflow on pull_request.
Can we reuse this file there? I mean as an extension to #5807
Code quote:
VALGRIND: 0
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.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @osalyk)
.github/workflows/scan_coverage.yml
line 15 at r2 (raw file):
Previously, grom72 (Tomasz Gromadzki) wrote…
We have to remember to use the same
VALGRIND
value for a similar workflow on pull_request.
Can we reuse this file there? I mean as an extension to #5807
We can consider using fromJSON()
function providing the JSON e.g. from the repository variable.
Ref: https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson
Ref: https://github.com/pmem/pmdk/settings/variables/actions/new
FYI @osalyk
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.
Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @grom72)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @janekmi)
.github/workflows/scan_coverage.yml
line 15 at r2 (raw file):
Previously, janekmi (Jan Michalski) wrote…
We can consider using
fromJSON()
function providing the JSON e.g. from the repository variable.Ref: https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson
Ref: https://github.com/pmem/pmdk/settings/variables/actions/newFYI @osalyk
I mean add something like this to main.yml
:
call-coverage:
uses: ./.github/workflows/scan_coverage.yml
name: Coverage
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @janekmi)
abed441
to
9fd3750
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @janekmi)
9fd3750
to
f16d884
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.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @janekmi)
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.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @janekmi)
Signed-off-by: Jan Michalski <jan.michalski@intel.com>
This change is