Add BCR downstream test script and pipeline #2875
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 228 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2875"
general
weight: 0.35
Wyverald
Adds
bcr_downstream.pyand theBCR Downstream Testpipeline. The pipeline tests whether a new BCR module version breaks the modules that directly depend on it.run-downstream-testlabel, or a manual build withTARGET_MODULE(e.g.protobuf@latest). A build tests one target module version. If a PR changes several, setTARGET_MODULEto pick one.//tools:module_analyzer --dependents_of).bazel vendorand adds--override_module=<target>=<vendored_path>to the downstream module's.bazelrc. This covers both anonymous module andbcr_test_moduletasks.presubmit.yml. Tasks on a major version that the target doesn't test are skipped. IfUSE_BAZEL_VERSIONis set, all tasks run with that version instead. The target is vendored with each task's Bazel version, or7.xfor Bazel 6, which has nobazel vendor.SELECT_TOP_BCR_MODULES,MODULE_SELECTIONS,SMOKE_TEST_PERCENTAGE,EXCLUDE_DEV_DEPSandUSE_BAZEL_VERSIONcan be set as environment variables, or in lowercase underbcr_downstream_testin the target'spresubmit.yml. Environment variables take precedence.CI_RESOURCE_PERCENTAGE), in a separatebcr-downstream-test-queue-<queue>concurrency group so they don't starvebcr-presubmit. Job priority is -50, or -100 with thelow-ci-prioritylabel.The pipeline is added in terraform and documented in the README.
Uses
--dependents_offrom https://github.com/bazelbuild/bazel-central-registry/pull/10649.