← Back to Pull requests

loading: reuse driver-validated cache files (backport #62586 to 1.13) #63624

Closed
unknown closed this pull request without merging on Oct 08, 2026 14:17 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 00:31 UTC
Author

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 PrecompileSession or cache_lock. Its precompilepkgs runs one @async task 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 with Precompiled 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:

  • 1.13.1: fails 3/3

  • this branch: passes 5/5

  • without the touching, both pass
  • 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.

    Diff: 215 lines (+161 / -54) across 2 files Reviewer: KristofferC Review duration: 2265m
    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
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.6% (MEDIUM) · Higher = larger blast radius
    41.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18% · Safe to merge
    18%