loading: reuse driver-validated cache files (backport #62586 to 1.13) #63624
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 215 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.322
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #63624"
general
weight: 0.35
KristofferC
This stops precompile workers from failing when the depot holds several builds of a dependency and the newest one changes part-way through precompiling, by having precompilepkgs tell workers which build it validated. PkgEval's shared cache triggers this, but any depot with multiple parallel contributing julia processes can.
JuliaCI/PkgEval.jl#316 stops PkgEval's shared cache from shifting under running jobs in the first place: other jobs' loads no longer change which build is picked, and rebuilds no longer overwrite shared files. That avoids both the error and the extra recompiles, on any Julia version.
Claude:
---
Manual backport of #62586 for the 1.13.2 backports branch. Release 1.13 has no
PrecompileSessionorcache_lock. Itsprecompilepkgsruns one@asynctask per package, all on one thread, so the list of validated cache files can be built without a lock.Since #59765, precompile workers run
--compiled-modules=strict. When a depot holds several builds of one package version (as PkgEval's shared cache does), a worker can pick a newer build of a shared dependency than the driver compiled against and fail withPrecompiled image ... not available with flags. That causes flaky failures in 1.13 PkgEval runs (JuliaCI/PkgEvalFarm.jl#28).Local repro through
Pkg.precompile, with two builds of a dependency in one depot and the other build touched while a dependent compiles:This only covers precompile workers. A plain process that loads the shared dependency first (
using D; using B) still takes the newest build, rejects the dependent's cache and recompiles it, as before 1.13.