-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Build
-
Fully Compatible
-
ALL
-
2025-01-21
The following reproduces what occurs in CI, for a single test:
bazel coverage //src/mongo/platform:visibility1_test_with_debug \ --test_output=all \ --combined_report=lcov \ --compiler_type=gcc \ --config=local \ --compiler_type=gcc \ --linkstatic=False \ --test_output=all \ --combined_report=lcov \ --test_timeout=600 \ --verbose_failures \ --copt=-Wno-mismatched-new-delete \ --test_tag_filters=mongo_unittest,-intermediate_target,-code_coverage_quarantine
But the test itself is filtered out because the "with_debug" target is tagged with "intermediate_target". Running the non-debug target runs fine, but then doesn't have the right instrumentation to get the coverage results. So running "..." sort of targets never produce any coverage metrics.
- is depended on by
-
SERVER-98923 Bazel code coverage includes directories that should be excluded
- Closed
- is related to
-
SERVER-98925 Bazel coverage failing due to timeouts
- Closed