ci: let the CLI end-to-end test survive a cold Rust cache #415
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 304 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.342
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #415"
general
weight: 0.35
franciscojavierarceo
Summary
The
rustjob onmainhas failed atTest agentic CLI end to endsince #414 merged(first failing run).
No assertion fails: the source
pip install(a maturin release build) hits the script's 300 s timeout.This is a CI cache problem, not a regression in #414.
Cause
No cache found, and the repository has nov0-rust-rust-*cache left. The last green run onmain(e0d86ce) restored an 863 MB cache for the same job.Cargo.lock, so every job saved caches under new keys; the old cache was most likely evicted as a result.partial hit, and more than 300 s cold.
Swatinem/rust-cachedoes not save when the job fails, so each run startscold, times out, and saves nothing for the next one. The next
mainrun (04b46d2) failed the same way.Changes
scripts/tests/agentic-cli-e2e-test.py: raise the source-install timeout from 300 s to 1200 s so a coldrelease build can finish. The job-level
timeout-minutes: 30is unchanged..github/workflows/rust.yml: setcache-on-failure: trueon therustjob's cache step, so a failed runstill saves what it compiled and the next run starts warm.
Not addressed here
Cache usage stays above the quota, so eviction can recur. With these changes that costs one slow run instead
of breaking
main. The largest entries onmainarecargo-postgres-Linux(1.09 GB), the two macOScargo-release-pythoncaches (0.77 and 0.63 GB), andcargo-Linux(0.72 GB).Test Plan
python3 -m py_compile scripts/tests/agentic-cli-e2e-test.pypasses..github/workflows/rust.ymlparses, and the cache step's inputs read as{'cache-bin': False, 'cache-on-failure': True}.pre-commit run --files .github/workflows/rust.yml scripts/tests/agentic-cli-e2e-test.pypasses.rustjob is the real check. Its first run iscold, so the end-to-end step should take longer than 5 minutes, pass, and save the cache; a re-run should
restore that cache and finish the step in a few minutes.