← Back to Pull requests

build: allow concurrent normal and bounds-checked stdlib precompilation #64486

Closed
unknown closed this pull request without merging on Oct 31, 2026 19:00 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 15:28 UTC
Author

Since #60054, make checkbounds-pkgimages traverses the full Julia build and then precompiles the bounds-checked companion after the normal caches. CI runs it after packaging and uploads, adding both costs to the critical path.

In julia-ci builds 1251–1253:

| Platform | Companion precompile | Repeated build traversal |
|---|---:|---:|
| Linux | 170–190 s | 6 s |
| M2 | 66 s | 16 s |
| macOS x86_64 | 205–318 s | 35 s |
| Windows | 172–204 s | 66–87 s |

Both precompile runs spend about 80% of their time compiling at most two packages concurrently. The critical path is StyledStrings → JuliaSyntaxHighlighting → Markdown → Pkg → REPLExt, with Pkg accounting for 75–80% of wall time. Overlapping the runs can shorten that serial tail.

Add stdlibs-cache-checkbounds so callers can request both runs together:

make release stdlibs-cache-checkbounds

The companion stamp now depends on the system image and stdlib sources rather than the normal cache stamp. Companion output remains in its own depot; the normal depot supplies stdlib sources, and ordinary caches cannot satisfy the checked configuration.

checkbounds-pkgimages now goes through stdlibs-cache-checkbounds, which depends on julia-sysimg-$(JULIA_BUILD_MODE) instead of the whole build. Run after make binary-dist, it only re-checks the system image and its inputs before packaging (about 1.5 s on Linux; not measured on the other platforms), and on a clean tree it still builds everything it needs.

Measured while rebuilding stdlib caches in a built tree on a Ryzen 9950X:

| Configuration | Before: release, then archive target | After: concurrent build, then archive target |
|---|---:|---:|
| 32 threads; precompile budget 16 serially, 8 per concurrent process | 35.7 s + 40.2 s | 41.8 s + 2.8 s |
| 4 cores; precompile budget 4 serially, 2 per concurrent process | 46.4 s + 51.5 s | 77.9 s + 2.7 s |

Also verified that make checkbounds-pkgimages works on a clean tree, a subsequent archive call only packages the caches, changing a stdlib source invalidates them, and the packaged caches load with --check-bounds=yes --compiled-modules=strict.

The CI change is JuliaCI/julia-buildkite#713.

Diff: 274 lines (+205 / -69) across 3 files Reviewer: maleadt Review duration: 1651m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.40) × (1 − Review Confidence (0.64)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 274 lines diff across 3 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: 70%
64%
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.336
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #64486"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 64% 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: 39.5% (MEDIUM) · Higher = larger blast radius
39.5%
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: 64% · Lower = rushed or shallow review
64%
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: 14.2% · Safe to merge
14.2%