Skip to content

fix(ci): retry cosign verify in reusable-release-image for registry lag (#595) - #600

Merged
fastrevmd-lab merged 1 commit into
mainfrom
fix/595-cosign-verify-retry
Oct 30, 2026
Merged

fastrevmd-lab merged 1 commit into
mainfrom
fix/595-cosign-verify-retry

Conversation

@fastrevmd-lab

Copy link
Copy Markdown
Member

Fixes #595.

Verify signatures (hard gate) ran cosign verify about 0.3–1 s after cosign sign, with no retry. Docker Hub's OCI referrers index is eventually consistent, so verification failed with "no signatures found" even though the signature bundle was attached. rustsdcmcp v0.6.0 needed three attempts.

Change

  • Each ref's cosign verify is retried with bounded backoff: 6 attempts, sleeping 2/4/8/15/30 s, about 59 s in total. The verify arguments are unchanged.
  • The gate is still hard. If the signature never appears, the step fails with cosign's last error and an ::error:: line. Each failed attempt is logged with its number.

Verification

  • shellcheck -s bash on the extracted step: clean.
  • Stub cosign that fails twice and then succeeds: the step exits 0 after 3 calls.
  • Stub cosign that always fails: the step exits 1 after 6 calls.
  • YAML parses.
  • codex exec review --commit 7932ac5: pass.
  • actionlint is not installed locally; CI runs the workflow lint.

Downstream

Consumers pin this reusable workflow by commit SHA, so they only get the fix after bumping that pin. Dependabot or a manual bump of mechubsec/mecmcp/.github/workflows/reusable-release-image.yml@<sha> is needed. For example, rustsdcmcp pins v0.28.2.

🤖 Generated with Claude Code

…ag (#595)

Docker Hub's referrers index is eventually consistent, so verify ~1 s
after signing could report "no signatures found". Retry each ref 6 times
(2/4/8/15/30 s backoff); the gate stays hard and fails after the last try.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fastrevmd-lab
fastrevmd-lab enabled auto-merge (squash) October 30, 2026 03:27
@fastrevmd-lab
fastrevmd-lab merged commit f86e978 into main Oct 30, 2026
12 checks passed
@fastrevmd-lab
fastrevmd-lab deleted the fix/595-cosign-verify-retry branch October 30, 2026 03:46
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.

reusable-release-image: Docker Hub signature verify races the referrers index (no retry)

1 participant