Skip to content

fix(ci): harden release workflow retries for network-sensitive steps - #350

Merged
c-vigo merged 1 commit into
release/0.3.1from
bugfix/347-release-rc1-attest-sbom-timeout
Mar 17, 2026
Merged

c-vigo merged 1 commit into
release/0.3.1from
bugfix/347-release-rc1-attest-sbom-timeout

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Description

Hardens the release workflow against transient network failures that previously caused candidate publishing to fail during Sigstore/Rekor interactions. It adds retries for SBOM generation, cosign signing, provenance/SBOM attestations, and smoke-test repository dispatch, and migrates SBOM attestation from deprecated actions/attest-sbom to actions/attest.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/workflows/release.yml
    • Add retry loop (3 attempts, 15s backoff) around cosign sign in publish job
    • Add first-attempt + conditional retry pattern for Generate SBOM
    • Add first-attempt + conditional retry pattern for Attest build provenance
    • Replace deprecated actions/attest-sbom with actions/[email protected] and add retry pattern
    • Add retry loop (3 attempts, 10s backoff) for smoke-test repository_dispatch API call

Changelog Entry

No changelog needed: this is an internal CI workflow reliability fix with no user-facing runtime behavior change.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Ran repo pre-commit hooks via git commit path; check yaml, yamllint, and action pin checks passed.
  • Verified workflow syntax and resulting diff for all retry/migration changes in .github/workflows/release.yml.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

  • Root failure reference: release run 23201577188, step Attest SBOM, timeout while creating Rekor tlog entry.
  • anchore/sbom-action Node 20 deprecation warning remains out of scope for this issue and should be tracked separately.

Refs: #347

@c-vigo c-vigo self-assigned this Mar 17, 2026
@c-vigo
c-vigo requested a review from Copilot March 17, 2026 15:49

Copilot AI 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.

Pull request overview

This pull request improves the resiliency of the release pipeline by adding explicit retry behavior around SBOM generation, image signing, and attestations, reducing the chance of transient network/registry issues breaking releases.

Changes:

  • Add a retry path for SBOM generation (with a short wait between attempts).
  • Add retry logic around cosign sign to handle transient signing failures.
  • Add retries for build provenance and SBOM attestations, plus retries for the downstream smoke-test repository dispatch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@c-vigo
c-vigo merged commit 53c6477 into release/0.3.1 Mar 17, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/347-release-rc1-attest-sbom-timeout branch March 17, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants