Closed
Description
🐞 bug report
Affected Rule
py_test
Is this a regression?
Yes, bug was introduced in #2409
Description
No coverage report is generated for --@rules_python//python/config_settings:bootstrap_impl=script
🔬 Minimal Reproduction
Steps to reproduce the issue:
-
Clone the repository:
git clone git@github.com:bazelbuild/rules_python.git cd rules_python/examples/bzlmod
-
Run the following command to clean and generate a coverage report:
bazelisk clean && \ bazelisk coverage //tests:version_default_test --combined_report=lcov \ --@rules_python//python/config_settings:bootstrap_impl=script \ --cache_test_results=no --instrument_test_targets && \ lcov --list bazel-out/_coverage/_coverage_report.dat
-
Error Observed:
lcov: ERROR: no valid records found in tracefile bazel-out/_coverage/_coverage_report.dat (use "lcov --ignore-errors empty ..." to bypass this error)
-
Checkout a specific commit regression:
git checkout 4a55ef4c2363f7ffc1ec9ba511fba7b2547ccefc bazelisk clean && \ bazelisk coverage //tests:version_default_test --combined_report=lcov \ --@rules_python//python/config_settings:bootstrap_impl=script \ --cache_test_results=no --instrument_test_targets && \ lcov --list bazel-out/_coverage/_coverage_report.dat
-
Output Observed:
|Lines |Functions |Branches Filename |Rate Num|Rate Num|Rate Num ============================================================ [tests/] version_test.py | 0.0% 5| - 0| - 0 ============================================================ Total:| 0.0% 5| - 0| - 0
🔥 Exception or Error
When running the initial command, the following error is observed:
lcov: ERROR: no valid records found in tracefile bazel-out/_coverage/_coverage_report.dat
(use "lcov --ignore-errors empty ..." to bypass this error)
Metadata
Metadata
Assignees
Labels
No labels