← Back to Pull requests

Exclude cpp_module_codegen from source_compile_actions #897

Open
fmeum opened this pull request with 5 lines diff across 2 files
View on GitHub
fmeum fmeum commented on Sep 18, 2026 21:11 UTC
Author

Module codegen actions compile a precompiled module into an object file and never preprocess. Bazel's legacy include_paths, includes and preprocessor_defines features accordingly don't cover the cpp_module_codegen action, but their rules-based counterparts (//cc/toolchains/args/include_flags and //cc/toolchains/args/preprocessor_defines, as well as the corresponding variables) apply to source_compile_actions, which does. Every module codegen action thus receives the include paths and defines of compile actions, and Clang warns about each include path as an unused argument (clang++: warning: argument unused during compilation: '-iquote .' [-Wunused-command-line-argument]).

This excludes the action from source_compile_actions like lto_backend already is, which restores parity with the legacy features.

Diff: 5 lines (+4 / -1) across 2 files Reviewer: lilygorsheneva Review duration: 12023m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.15) × (1 − Review Confidence (0.50)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.15 · 5 lines diff across 2 files
0.15
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
0.00
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
50%
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
Shallow Review Depth shallow_review_depth
0.350
Diff Size diff_size
0.107
Real PR Conversation Timeline
3 items
lilygorsheneva lilygorsheneva approved these changes on Sep 21, 2026 14:21 UTC
Approved Reviewer

Approved these changes.

keith keith approved these changes on Sep 21, 2026 18:15 UTC
Approved Reviewer

Approved these changes.

Assignees
fmeum fmeum
Labels
risk: low confidence: 50% 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: 15.2% (LOW) · Higher = larger blast radius
15.2%
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: 50% · Lower = rushed or shallow review
50%
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: 7.6% · Safe to merge
7.6%