[CI] Cache CuPy initialization in GPU CI #12668
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 · 287 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: 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12668"
general
weight: 0.35
chyunsu3
Experimental CI optimization; the simplified cache key still needs a cold/warm CI comparison.**
Fresh GPU runners spend 12–16 minutes in CuPy/Jitify initialization before Python tests begin. Persist
CUPY_CACHE_DIRacross runs for all five GPU Python configurations without changing test coverage.The workflow uses standard
actions/cache/restoreandactions/cache/savesteps with a readable key containing the matrix configuration, image tag, CuPy version, CUDA runtime version and NVRTC version. Runtime dependency versions matter because the image tag can be mutable. No commit SHA or broad restore keys are used. The save step reuses the restore action's primary key.Keep separate restore/save steps to preserve compilation work when tests fail; skip saving on cancellation or an exact cache hit. Cache transfer failures are nonfatal. Time the existing Jitify warm-up to make cache effectiveness visible. CuPy also performs its own internal cache versioning.
Validation:
cupy-14.2.0-cuda-12090-nvrtc-12.9.cupy-v2format intentionally starts a fresh cache namespace.Before removing DO NOT MERGE, complete a cold/warm comparison with this revision across CUDA 12/13, x86/ARM and multi-GPU; check failed-test cache saving, environment invalidation and default-branch/PR cache scoping with the RunsOn backend.
Previous cold-cache run · Previous warm-cache run · CuPy caching guidance