← Back to Pull requests

ci: let the CLI end-to-end test survive a cold Rust cache #415

Closed
unknown closed this pull request without merging on Oct 02, 2026 18:43 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 12:24 UTC
Author

Summary

The rust job on main has failed at Test agentic CLI end to end since #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

  • The job's Rust cache disappeared. The failing run logs No cache found, and the repository has no

  • v0-rust-rust-* cache left. The last green run on main (e0d86ce) restored an 863 MB cache for the same job.
  • The repository is over the 10 GB Actions cache quota (10.65 GB at the time of writing). #414 changed

  • Cargo.lock, so every job saved caches under new keys; the old cache was most likely evicted as a result.
  • The 300 s limit only held with a warm cache. The step took 80–120 s on a full cache hit, 3 m 16 s on a

  • partial hit, and more than 300 s cold.
  • The failure sustains itself. Swatinem/rust-cache does not save when the job fails, so each run starts

  • cold, times out, and saves nothing for the next one. The next main run (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 cold

  • release build can finish. The job-level timeout-minutes: 30 is unchanged.
  • .github/workflows/rust.yml: set cache-on-failure: true on the rust job's cache step, so a failed run

  • still 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 on main are cargo-postgres-Linux (1.09 GB), the two macOS
    cargo-release-python caches (0.77 and 0.63 GB), and cargo-Linux (0.72 GB).

    Test Plan

  • python3 -m py_compile scripts/tests/agentic-cli-e2e-test.py passes.

  • .github/workflows/rust.yml parses, 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.py passes.

  • Not run locally: the end-to-end script itself. This PR's rust job is the real check. Its first run is

  • cold, 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.

    Diff: 304 lines (+228 / -76) across 3 files Reviewer: franciscojavierarceo Review duration: 378m
    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
    0.45
    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.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
    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: 45.1% (MEDIUM) · Higher = larger blast radius
    45.1%
    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: 17.8% · Safe to merge
    17.8%