-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: add windows and c++ coverage #35670
Conversation
aaa926e
to
df981ea
Compare
.github/workflows/coverage-linux.yml
Outdated
@@ -23,14 +21,22 @@ jobs: | |||
python-version: ${{ env.PYTHON_VERSION }} | |||
- name: Environment Information | |||
run: npx envinfo | |||
- name: Clone gcovr reporter | |||
run: git clone -b 3.4 --depth=1 --single-branch https://github.com/gcovr/gcovr.git | |||
- name: Clone patch for gcovr |
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.
@mhdawson do you remember why we're running gcovr from a branch and floating a patch? It would be nice to simplify this.
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.
It been long enough that I don't remember the specifics. I assume it failed to run properly with out that patch. It's possible a later version of gcovr may have fixed it.
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.
@mhdawson I've managed to get gcovr@4.2
working, installed directly from pip
.
The trick was to continue running from the out/
folder, but to specify a --root
pointing to the root project directory.
@richardlau @Trott @watilde @mhdawson , I think this is ready for review:
Why the drop in coverage?This is the first time we've combined C++ and JavaScript coverage, and our C++ coverage is a bit below the JavaScript thresholds -- I also noticed that codecov.io's numbers are a bit lower than our uploaded reports, I think this is because it treats partial line misses the same as misses. What's nextOnce this has been running for a week or two, and we're happy, I think we should:
|
Does |
@mhdawson did you manage to open the reports? perhaps I can open an issue with codecov.io independently of this PR, since I don't believe this behavior is new. I've noticed myself in the past, that when looking at Node.js' nightly reports, I sometimes get prompted to authenticate -- I wonder if it happens to folks who have a prior session with codecov.io that's expired. |
@@ -9,7 +9,7 @@ | |||
"reporter": [ | |||
"html", | |||
"text", | |||
"lcov" | |||
"cobertura" |
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'm hoping this gives us better partial coverage (I noticed C++ reports branch level coverage).
@bcoe It also asks me to authenticate, even in an incognito window. |
@thomasrockhu sorry to keep bothering you (I think we're on the right track to getting this configured appropriately for the project). Folks are reporting that codecov.io is prompting them to authenticate to see the public reports:
Ideally there'd never be an authentication step for our users to view detailed reports, as the Node.js project is open source. Is there a configuration setting I'm missing? |
@targos @mhdawson is the authentication issue a blocker, or is it okay if I open a tracking issue on codecov.io? I seem to not be getting the authentication screen myself, either in an incognito window, or in another browser -- but, I have seen the behavior you're describing before -- I was hoping it was a bug that had been addressed, since I haven't been seeing a login prompt myself. |
It's not a blocker to me |
Thanks for following up on the auth. As long as its not something that will be required long term it's not a blocker for me. |
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.
LGTM
This comment has been minimized.
This comment has been minimized.
Landed in 7657f62 |
Collect Windows and C++ coverage. Configure codecov so that comments are more concise and are only left when coverage varies. PR-URL: #35670 Fixes: #35696 Refs: #35653 Refs: #35646 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Hi @bcoe, I noticed you opened this ticket so I'll address the issue there. Users shouldn't be seeing any problems viewing open source reports, so there's definitely an issue. Thanks for raising it up! |
Collect Windows and C++ coverage. Configure codecov so that comments are more concise and are only left when coverage varies. PR-URL: #35670 Fixes: #35696 Refs: #35653 Refs: #35646 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Collect Windows and C++ coverage. Configure codecov so that comments are more concise and are only left when coverage varies. PR-URL: #35670 Fixes: #35696 Refs: #35653 Refs: #35646 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Collect Windows and C++ coverage. Configure codecov so that comments are more concise and are only left when coverage varies. PR-URL: #35670 Fixes: #35696 Refs: #35653 Refs: #35646 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Experiment to see if collecting coverage for Windows will "just work".
Refs: #35653
Refs: #35646
Fixes: #35696
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes