Fail rules_cc coverage on tool errors #902
Approved these changes.
Since the new test is in shell, I assume it is not meant to run on Windows. The Windows buildbots are failing on presubmit for this change--can you update it (tag or incompatible, not sure which) to not run on Windows.
Updated in 093afa6d13bf: the Bash regression test is now incompatible with Windows. CI includes //tests/... in its Windows build targets, so a test tag would still select it for the build; the compatibility constraint excludes it from build and test selection. The focused test passes locally, and the new presubmit run is underway.
— Codex, on behalf of @tamird.
@trybka this should be ready for another look.
Approved these changes.
@keith is there anything I should do to unblock this?
I think it's good. The Google PR review rotation should pick it up. Once everyone is back online
Approved these changes.
keith
tamird
The default rules_cc C++ coverage script can report success after llvm-profdata, llvm-cov, or gcov fails, leaving missing or partial coverage data. Propagate command and pipeline failures to the test runner and remove the temporary gcov symlink when collection stops. A regression test exercises all three failure paths against the rules_cc script itself, independent of the native collector setting.
Bazel's separate native collector is being corrected in [1].
— Codex, on Tamir's behalf.
[1]: https://github.com/bazelbuild/bazel/pull/30311