Skip to content

ci(kani): bounded retry around pinned kani-verifier install and setup (#12904) - #13619

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/fv-kani-setup-retry
Nov 8, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/fv-kani-setup-retry

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

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 loops cargo install --locked kani-verifier --version 0.68.0 && cargo kani setup up to 4 times, sleeping 5/15/30s between failures. After the last failure it prints ::error::kani install/setup failed after 4 attempts and exit 1. Setup lives in the workflow (not cargo 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-cache uses save-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: pass
  • cargo xtask check-process-policy: pass (check-cli-exit-contract: pass)
  • cargo xtask check-network-policy: pass
    cargo xtask precommit was 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

…#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
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 3cf28bea-76b2-4fa2-9069-166db90d5cf3
Commits

Reviewing files that changed from the base of the PR and between 0c2d378 and dc5a08a.

Files selected for processing: 3

  • .github/workflows/kani.yml
  • changelog.d/12904-kani-setup-retry.md
  • policy/workflow_allowlist.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 8, 2026 10:55

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/kani.yml Resolved
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit dc5a08a5892e · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=0c2d3789001b9ad96242fa913c91f52b8e71aa58 findings=0 gaps=0
done=no changed behavior found in scope; static advisory, not runtime proof

Took 1s.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants