← Back to Pull requests

Fail rules_cc coverage on tool errors #902

Open
tamird opened this pull request with 89 lines diff across 4 files
View on GitHub
tamird tamird commented on Sep 24, 2026 15:42 UTC
Author

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

Diff: 89 lines (+86 / -3) across 4 files Reviewer: keith Review duration: 38291m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.34) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.34 · 89 lines diff across 4 files
0.34
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 5 substantive comment(s)
0.55
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
71%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.269
Real PR Conversation Timeline
9 items
keith keith approved these changes on Sep 24, 2026 16:36 UTC
Approved Reviewer

Approved these changes.

trybka trybka commented on Sep 24, 2026 19:25 UTC
Contributor

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.

tamird tamird commented on Sep 24, 2026 20:01 UTC
Author

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.

tamird tamird commented on Sep 28, 2026 10:14 UTC
Author

@trybka this should be ready for another look.

keith keith approved these changes on Sep 28, 2026 17:12 UTC
Approved Reviewer

Approved these changes.

tamird tamird commented on Oct 16, 2026 10:13 UTC
Author

@keith is there anything I should do to unblock this?

keith keith commented on Oct 16, 2026 10:22 UTC
Contributor

I think it's good. The Google PR review rotation should pick it up. Once everyone is back online

lilygorsheneva lilygorsheneva approved these changes on Oct 19, 2026 21:46 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
tamird tamird
Labels
risk: low confidence: 71.9% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 34.3% (LOW) · Higher = larger blast radius
34.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 71.9% · Lower = rushed or shallow review
71.9%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 9.6% · Safe to merge
9.6%