Avoid unnecessary versioned library checks in cc_helper #871
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.19) × (1 − Review Confidence (0.89)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.19 · 13 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.158
Real PR Conversation Timeline
3 items
is_versioned_shared_library_extension_valid already checks for isdigit. Same, probably, with length.
Changes Requested
Requested changes.
lilygorsheneva
dzbarsky
_get_public_hdrsnow checksextensions.DISALLOWED_HDRS_FILESthrough a dictionary, avoiding repeated linear membership scans._check_file_extensioncallsis_versioned_shared_library_extension_validonly whenfile.extensionbegins with a digit, as required by versioned.soand.dylibnames.Validation:
buildifier -mode=check cc/common/cc_helper.bzl;bazel test //tests/cc/common:cc_library_configured_target_tests //tests/cc/common:cc_import_configured_target_tests(19 tests passed).