-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
coverage: use lcov to merge multi-binary coverage report #10909
Conversation
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
…rage Signed-off-by: Lizan Zhou <[email protected]>
…rage Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
…rage Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
…rage Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
d3222fb
to
7dc3d6b
Compare
Signed-off-by: Lizan Zhou <[email protected]>
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.
Thank you so much! The fuzz wrapper is unbelievably clean, TIL about --run_under
.
Will look into stat merger fuzzing issue discussed offline https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21460
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Support for coverage with clang in Bazel was half working because the report produced was in a binary format and it wasn't be utilized by the LCOV merger and therefore didn't show up in the final LCOV report. This CL uses llvm-cov as was used by Envoy in envoyproxy/envoy#10909 to produce an LCOV report. To run this the following environment variable and build flags are needed: BAZEL_USE_LLVM_NATIVE_COVERAGE=1 GCOV={path to llvm_profdata} CC=clang \ BAZEL_LLVM_COV={path to llvm_cov} bazel coverage --experimental_generate_llvm_lcov PiperOrigin-RevId: 338254344
Description:
Use bazel lcov merger to merge coverage generated by
llvm-cov export
from multiple binary run. This improves coverage test stability by run them in separate sandbox.Risk Level: Low (test only)
Testing: CI
Docs Changes: N/A
Release Notes: N/A