Uh oh!
There was an error while loading. Please reload this page.
test: refactor coverage logic - #35767
Conversation
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly.
| ```text | ||
| $ make coverage-clean | ||
| $ NODE_V8_COVERAGE=coverage/tmp python tools/test.py test/parallel/test-stream2-transform.js |
There was a problem hiding this comment.
You can just set NODE_V8_COVERAGE, and then run tests any which way.
| $(RM) out/$(BUILDTYPE)/obj.target/embedtest/src/*.gcno | ||
| $(RM) out/$(BUILDTYPE)/obj.target/embedtest/test/embedding/*.gcno | ||
| $(RM) -r coverage/tmp | ||
| $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -delete |
There was a problem hiding this comment.
I was having trouble on OSX with left over gcno and gcda files, I believe it's safe to simply remove all files generated by gcov.
| | sed 's/<[^>]*>//g'| sed 's/ //g' | ||
| COV_REPORT_OPTIONS = --reporter=html \ | ||
| --temp-directory=out/$(BUILDTYPE)/.coverage --omit-relative=false \ |
There was a problem hiding this comment.
these options are encapsulated in the .nycrc file.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #35767 +/- ##
========================================
Coverage 87.90% 87.91% ========================================
Files 477 477 Lines 113172 113090 -82 Branches 25428 24628 -800 ========================================
- Hits 99480 99419 -61 + Misses 7991 7956 -35 - Partials 5701 5715 +14 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Trott
left a comment
There was a problem hiding this comment.
LGTM with or without my suggestions/comments addressed
Co-authored-by: Rich Trott <rtrott@gmail.com>
This comment has been minimized.
This comment has been minimized.
Trott
commented
Oct 23, 2020
@nodejs/build-files |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Rich Trott <rtrott@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Trott
commented
Oct 25, 2020
It sure seems as if the Raspberry Pi build failures are related to the Makefile changes here, but I'm not sure how? |
nodejs-github-bot
commented
Oct 25, 2020
Trott
commented
Oct 25, 2020
In the same vein as "quit and restart the program to see if the problem goes away", I've kicked off a CI with Rebuild rather than Resume Build to see if that fixes it.... |
bcoe
commented
Oct 25, 2020
@Trott odd, I don't think any of the coverage rules should be being executed right? |
bcoe
commented
Oct 25, 2020
@Trott restarting worked, but I'm slightly concerned it took so many restarts? |
Perhaps the other times were all Resume Builds and not Rebuilds and that is why the results were the same? |
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly. PR-URL: #35767 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
bcoe
commented
Oct 25, 2020
Landed in ba907ff |
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly. PR-URL: #35767 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly. PR-URL: #35767 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly. PR-URL: #35767 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly. PR-URL: #35767 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly. PR-URL: #35767 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Cleanup logic in Makefile for coverage. Update BUILDING.md accordingly.
The coverage logic in the Makefile had become a bit crufty:
nyc, the coverage tool we were using prior toc8.CC: @nodejs/testing
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes