ci: Add opt-in fingerprint-based artifact reuse behind ci:reuse-fprint label #10264
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 391 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.357
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #10264"
general
weight: 0.35
erman-gurses
Motivation
RFC0017 selects reusable CI artifacts by the
THEROCK_FPRINTfingerprints computed when the build is configured. This branch tries that in CI with a standalone workflow, without changing the multi-arch CI workflows, as requested in review. Once it works, those workflows can call it withuses:.GitHub issue: #8651
RFC: #9500 (RFC0017)
Builds on: #10026 (static cache index and
artifact_cache.py lookup)Technical Details
.github/workflows/multi_arch_setup_artifact_cache.yml(new): fetches and configures one build stage (defaultcompiler-runtime) so CMake writesbuild/artifacts/*.fprint, then runssetup_artifact_cache.py. Inputs: stage, dist GPU families, artifact patterns,copy_hits(default off: report only), runner label. Uploads the plan.build_tools/artifact_cache/setup_artifact_cache.py(new):1. Looks up the fingerprints in the index, as
artifact_cache.py lookupdoes.2. Checks every hit in the CI run that produced it: the archive must exist and its
.sha256summust match the index. A group with a failed check is not reused.3. With
copy_hits, copies each hit from its own source run. Hits may come from different runs; there is no singlebaseline_run_id.4. Writes each artifact's result (copied, hit, miss, unverified) and source run to the job summary.
Missing fingerprints and misses are normal results; real errors fail the job.
multi_arch_ci_linux.ymlandconfigure_multi_arch_ci.pyare back to theirmainversions (noci:reuse-fprintlabel).Test Plan
python -m pytest build_tools/artifact_cache/tests(lookup, per-run checks, copying from two source runs, summary; local directory backend, no network).python -m pytest build_tools/github_actions/tests/configure_multi_arch_ci_test.py(CI configuration unchanged).black,mdformat,actionlint.setup_artifact_cache.pyin report-only mode against the prototype index and real S3.Test Result
build_tools/artifact_cache/tests: 61 passed.configure_multi_arch_ci_test.py: 215 passed, 1 skipped. Each of the 7 commits passes on its own.amd-llvmarchives from run 43936062480 exist and match the index checksums.Open items
mainwould allowworkflow_dispatchwith inputs.Submission Checklist