build: allow concurrent normal and bounds-checked stdlib precompilation #64486
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
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.336
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #64486"
general
weight: 0.35
maleadt
Since #60054,
make checkbounds-pkgimagestraverses 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, withPkgaccounting for 75–80% of wall time. Overlapping the runs can shorten that serial tail.Add
stdlibs-cache-checkboundsso 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-pkgimagesnow goes throughstdlibs-cache-checkbounds, which depends onjulia-sysimg-$(JULIA_BUILD_MODE)instead of the whole build. Run aftermake 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-pkgimagesworks 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.