← Back to Pull requests

loading: test more paths, and fix retrying a failed source load #64676

Closed
unknown closed this pull request without merging on Nov 10, 2026 15:27 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 15:43 UTC
Author

Claude:

---

Tests for base/loading.jl paths with no coverage: structured preferences, isprecompilable, the @path coverage helpers, evalfile with arguments, malformed manifests and retry_load_extensions.

Bugs found, fixed in one commit each:

  • Failed source loads: the partly defined module stayed registered, so a second using silently returned it, and retry_load_extensions reported success without rereading the fixed source. It now gets removed, so both retry. This affects --compiled-modules=no and packages that can't be precompiled. A task waiting on the same load now retries it too, rather than getting the partial module.

  • BigInt preferences: they were compared by identity, so the cache was always stale.

  • CacheFlags strings with a bare parameter threw a FieldError rather than an ArgumentError.
  • Not changed: when __init__ fails on a load from cache, the next using still returns the module without rerunning __init__.

    Coverage, measured locally: base/loading.jl goes from 2415/2789 lines (86.6%) to at least 2483/2789 (89.0%), running loading.jl and precompile.jl on an instrumented macOS build without the fixes, against master's Codecov report. Most of the rest is @debug rejections, races and code that runs only in image generation.

    Written with Claude Code (Opus 5.5). Reviewed by Claude Code (Fable 5.1).

    Diff: 173 lines (+129 / -44) across 2 files Reviewer: IanButterworth Review duration: 7184m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 173 lines diff across 2 files
    0.40
    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%
    60%
    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.309
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #64676"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 40.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.9% · Safe to merge
    15.9%