Repository navigation
ci(kani): bounded retry around pinned kani-verifier install and setup (#12904) - #13619
Conversation
…#12904) cargo kani setup downloads the release bundle from GitHub and a transient HTTP 504 failed the step with no retry, skipping the harness run. Retry up to 4 attempts with 5/15/30s backoff; version pin unchanged; persistent failure still exits non-zero with an error annotation. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUGWB1o9vpixujro7H
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 6 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head dc5a08a. Full diff read (workflow step, changelog fragment, run-block budget line). The retry loop is bounded to four attempts with 5/15/30s backoff, keeps the 0.68.0 pin, and exits non-zero with an error annotation after the last attempt, so a persistent problem still fails the step. Success exits 0 immediately, so -e semantics are preserved; triggers, permissions, concurrency and required-check status are unchanged. Local gates run by the author: check-workflows, check-process-policy, check-network-policy. The retry has not been exercised against a real 5xx.
Generated by Claude Code
There was a problem hiding this comment.
Code Review
This pull request introduces a changelog entry and updates the workflow allowlist policy to reflect that the Kani CI workflow now retries the installation and setup of the kani-verifier up to four times with a backoff strategy. I have no feedback to provide on these changes.
ripr static exposure checkCommit Took 1s. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head dc5a08a. Full diff read: bounded four-attempt retry with 5/15/30s backoff around the pinned install and setup, a persistent problem still fails the step, nothing else in the lane changes. The retry was exercised under bash -e with a stub cargo (transient and persistent cases, results in the thread reply), the one bot thread is answered and resolved, and the local workflow, process and network gates passed.
Generated by Claude Code
Governing issue or accepted claim: #12904
Acceptance delta (one sentence): The Kani lane's install/setup step retries transient release-bundle download failures (4 attempts, 5/15/30s backoff) so a GitHub 5xx no longer skips the harness run, while persistent failure still fails the step.
Change
.github/workflows/kani.yml: the "Install pinned kani-verifier" step loopscargo install --locked kani-verifier --version 0.68.0 && cargo kani setupup to 4 times, sleeping 5/15/30s between failures. After the last failure it prints::error::kani install/setup failed after 4 attemptsandexit 1. Setup lives in the workflow (notcargo xtask kani), so the retry is there. Version pin, triggers, permissions, concurrency and required-check status are unchanged.policy/workflow_allowlist.txt: kani.yml run-block budget 3 -> 18 lines.changelog.d/12904-kani-setup-retry.md.Cache note
Swatinem/rust-cacheusessave-if: github.ref == 'refs/heads/main', so PR-event runs (merge-ready label) only restore a cache saved by main/nightly runs and never save one; ~/.kani is therefore only populated by main-ref runs (schedule/dispatch). A PR run with a cold or missing cache re-downloads the bundle, which is the failure being retried. Not changed here.Proof
Ran locally (CARGO_INCREMENTAL=0, CARGO_BUILD_JOBS=1, xtask only):
cargo xtask check-workflows: passcargo xtask check-process-policy: pass (check-cli-exit-contract: pass)cargo xtask check-network-policy: passcargo xtask precommitwas not run (sandbox memory limits); no live Kani run was exercised, so the retry is unproven against a real 5xx until hosted CI / a merge-ready run. Relying on hosted CI for the rest.Generated by Claude Code