← Back to Pull requests

Fix cpp_modules + features=parse_headers/c=opt #876

Open
rdong8 opened this pull request with 38 lines diff across 2 files
View on GitHub
rdong8 rdong8 commented on Sep 13, 2026 08:26 UTC
Author

Combining --features=cpp_modules with either --features=parse_headers or --compilation_mode opt was broken, this seems to fix it. This adds an early exit copied from _create_cc_compile_actions that was missing in _create_cc_compile_actions_with_cpp20_module_helper:

https://github.com/bazelbuild/rules_cc/blob/c1ba7a0d5a5f51f6539eb94f32ef8d9fedd0250d/cc/private/compile/compile.bzl#L1249-L1254

I tested the changes in my personal monorepo + added a test for parse_headers.

This was found with the help of an LLM

Diff: 38 lines (+37 / -1) across 2 files Reviewer: fmeum Review duration: 55041m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.38) × (1 − Review Confidence (0.79)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.38 · 38 lines diff across 2 files
0.38
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.68 · 5 substantive comment(s)
0.68
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
78%
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.219
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
10 items
google-cla[bot] google-cla[bot] commented on Sep 13, 2026 08:26 UTC
Bot

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

fmeum fmeum approved these changes on Sep 13, 2026 08:28 UTC
Approved Reviewer

@lilygorsheneva

PikachuHyA PikachuHyA commented on Sep 14, 2026 06:38 UTC
Contributor

LGTM

This is what I missed earlier. Thanks

rdong8 rdong8 commented on Sep 20, 2026 21:03 UTC
Author

Bump!

lilygorsheneva lilygorsheneva approved these changes on Sep 21, 2026 15:29 UTC
Approved Reviewer

Approved these changes.

rdong8 rdong8 commented on Sep 26, 2026 20:50 UTC
Author

Is there something I can do to fix the copybara check?

PikachuHyA PikachuHyA commented on Oct 20, 2026 11:49 UTC
Contributor

hi @lilygorsheneva , just following up on this pr, is there anything still blocking it from being merged? thanks.

lilygorsheneva lilygorsheneva commented on Oct 20, 2026 15:49 UTC
Contributor

Sorry; I've been busy, will try to get it in this week.

PikachuHyA PikachuHyA commented on Oct 21, 2026 02:47 UTC
Contributor

No worries, thanks for your help

Reviewers
Assignees
rdong8 rdong8
Labels
risk: low confidence: 78.5% 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: 38.4% (MEDIUM) · Higher = larger blast radius
38.4%
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: 78.5% · Lower = rushed or shallow review
78.5%
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: 8.2% · Safe to merge
8.2%