Description of the bug:
Running bazel coverage --combined_report=lcov does not properly skip incompatible tests.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
BUILD file:
genrule(
name = "generate_example_test",
outs = ["example_test.cc"],
cmd = "echo 'int main() { return 1; }' > $(OUTS)",
)
cc_test(
name = "example_test",
srcs = ["example_test.cc"],
target_compatible_with = ["@platforms//:incompatible"],
)
Empty WORKSPACE file.
$ bazel --nohome_rc coverage //:all --java_runtime_version=remotejdk_11 --combined_report=lcov
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/home/pschrader/.bazelrc
INFO: Using default value for --instrumentation_filter: "^//".
INFO: Override the above default with --instrumentation_filter
INFO: Analyzed 2 targets (0 packages loaded, 0 targets configured).
INFO: Found 1 target and 1 test target...
ERROR: /home/pschrader/work/test_repo/BUILD:7:8: Reporting failed target //:example_test located at /home/pschrader/work/test_repo/BUILD:7:8 failed: Can't build this. This target is incompatible. Please file a bug upstream. caused by //:example_test
INFO: Elapsed time: 0.433s, Critical Path: 0.01s
INFO: 4 processes: 4 internal.
FAILED: Build did NOT complete successfully
//:example_test SKIPPED
Executed 0 out of 1 test: 1 was skipped.
All tests passed but there were other errors during the build.
FAILED: Build did NOT complete successfully
Which operating system are you running Bazel on?
x86 Ubuntu 18.04
What is the output of bazel info release?
release 5.1.1
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
N/A
What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?
Have you found anything relevant by searching the web?
I couldn't find a similar bug report.
Any other information, logs, or outputs that you want to share?
No response
Description of the bug:
Running
bazel coverage --combined_report=lcovdoes not properly skip incompatible tests.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
BUILD file:
Empty WORKSPACE file.
Which operating system are you running Bazel on?
x86 Ubuntu 18.04
What is the output of
bazel info release?release 5.1.1
If
bazel info releasereturnsdevelopment versionor(@non-git), tell us how you built Bazel.N/A
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD?Have you found anything relevant by searching the web?
I couldn't find a similar bug report.
Any other information, logs, or outputs that you want to share?
No response