Skip to content

CI: ci_retry.sh cache-first probe and cause line (Part of #8424) - #8658

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8424-ci-retry-cache-cause
Nov 19, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8424-ci-retry-cache-cause

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

The one wrapper for CI downloads already exists (tests/tools/ci_retry.sh: bounded retries, doubling backoff, INFRASTRUCTURE marker). This adds the two missing parts of the checklist item:

  • Cache first: CI_RETRY_CACHED='<cmd>' runs a probe before any fetch; success skips the fetch.
  • Cause line: each attempt's output is teed; on the final failure ci_retry: cause: <last output line> prints before the marker.

Files: tests/tools/ci_retry.sh, tests/tools/test_ci_retry.py (cache hit, miss, cause line, missing-command cause), docs/ci.md. No workflow YAML change.

Checklist: partial [c:43c3455c] -- no call site sets CI_RETRY_CACHED yet; the 110 bare steps still need converting (slices)

Class sweep

Class: a CI network fetch that gives no cause when it finally fails and cannot skip on a cache hit. Same-mechanism siblings: all 45 wrapped sites share the script, so they get the cause line now.

Sibling gaps (none needs a burned-estate program; infra only):

  • Lint failing a bare network step, with a shrink-only list (reuse ci_network_inventory.py classifier).
  • Advisory uploads non-fatal by rule.
  • Converting the bare pip / git-fetch / docker / gh-api steps, and setting CI_RETRY_CACHED at the grammar and corpus sites.

Tests

pytest tests/tools/test_ci_retry.py tests/tools/test_ci_network_inventory.py 64 passed; audit_check.py all clear.

Lessons for agents

None new.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 19, 2026 10:55
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 10:55
@squid-shepherd
squid-shepherd Bot merged commit eba2d23 into main Nov 19, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8424-ci-retry-cache-cause branch November 19, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant