Skip to content

feat: add retry composite action with exponential backoff - #156

Merged
castrojo merged 1 commit into
mainfrom
ci/phase3-retry-action
Jun 10, 2026
Merged

feat: add retry composite action with exponential backoff#156
castrojo merged 1 commit into
mainfrom
ci/phase3-retry-action

Conversation

@castrojo

Copy link
Copy Markdown
Contributor

Summary

Automation audit Phase 3: reusable retry-with-backoff composite action.

Addresses FM1 (no retry on transient failures) and FM2 (no backoff) from the automation audit.

Usage:

- name: Push with retry
  uses: projectbluefin/actions/actions/retry@<sha>
  with:
    command: buildah push "$IMAGE" "docker://$REGISTRY/$IMAGE:$TAG"
    max_attempts: 3
    initial_wait_seconds: 10
    retry_on: "rate limit|timeout|429|503|connection reset"

Features:

  • Configurable max attempts (default: 3)
  • Exponential backoff (wait doubles each retry)
  • Optional error-pattern filtering (only retry on specific errors)
  • Reports attempt count and success/fail as outputs

Closes #583 (Phase 3 of automation audit).

Assisted-by: Claude Sonnet 4.5 via pi

Reusable retry-with-backoff action for any workflow step. Supports
max attempts, initial wait (doubles each retry), and optional
regex filtering so only retriable errors (rate limits, timeouts)
trigger a retry.

Addresses FM1, FM2 from automation audit (no retry/self-heal).

Assisted-by: Claude Sonnet 4.5 via pi
@castrojo
castrojo requested a review from p5 as a code owner June 10, 2026 23:32
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@castrojo
castrojo merged commit 84649d2 into main Jun 10, 2026
9 checks passed
@github-actions
github-actions Bot deleted the ci/phase3-retry-action branch June 15, 2026 05:48
@castrojo castrojo added 4-review A pull request is awaiting review. and removed pr/needs-review labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4-review A pull request is awaiting review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant