Add daily VM image refresh for Git mirrors, Docker containers, and Bazel repo cache #3027
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 346 lines diff across 4 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.350
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3027"
general
weight: 0.35
ted-xie
Adds refresh mode
BAZEL_REFRESH_VM_IMAGEtoCreate VM Imagespipelines and schedule it to run beside the full image build from scratch.Instead of reinstalling the OS and toolchains and packages from scratch (the full build), the refresh boots from the current production VM image and updates three caches:
1. Git mirrors: Fetches the latest commits for all mirrored Git repos so CI jobs only download a tiny delta from GitHub during
git clone.2. Docker containers (Linux): Pulls the latest container digests so Linux CI jobs start containers immediately from local disk without waiting on registry pulls.
3. Bazel repository cache (
repo_cache): Pre-warms and updates the external dependencies of Bazel's own CI (downloaded archives only, no repo contents cache) by runningbazel fetch //src:bazel //src:test_repos(Linux with--config=ci-linux), so Bazel presubmit and postsubmit jobs don't have to re-download them on every run, avoiding network timeouts and download flakes. Windows jobs use the cache directly; Linux jobs will use it once bazel#32768 stops deleting it at the start of each job.| | Full build | Daily refresh |
|---|---|---|
| When | 1st of the month (Linux 04:00 UTC, Windows 05:00 UTC) | Mon–Thu (Linux 04:00 UTC, Windows 05:00 UTC), skipped on the 1st |
| Starts from | Clean base OS image | Current prod image |
| OS packages, SDKs, tools | Installed from scratch | Unchanged (skipped) |
| Git mirrors | Seeded from the GCS tarball (refreshed monthly) |
git fetchfrom GitHub for each existing mirror || Docker images (Linux) | Pulled | Pulls the current list, removes images no longer in it |
| Bazel repository cache | Pre-warmed (downloads only) | Pre-warmed (downloads only) |
| Testing | Bazel presubmits in bazel-testing | Bazel presubmits in bazel-testing |
| Promotion | Manual (Confirm + Promote) | Automatic |
| If presubmits fail | Choose: roll back or continue | Choose: roll back or continue |
Extra changes:
update-git-mirror-tar-balljob now runs monthly at 03:00 UTC on the 1st, one hour before the monthly full build that uses it, instead of weekly. The refresh doesn't use the tarball; it fetches mirrors directly from GitHub.