Repository navigation
fix(ci): retry cosign verify in reusable-release-image for registry lag (#595) - #600
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #595.
Verify signatures (hard gate)rancosign verifyabout 0.3–1 s aftercosign 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
cosign verifyis retried with bounded backoff: 6 attempts, sleeping 2/4/8/15/30 s, about 59 s in total. The verify arguments are unchanged.::error::line. Each failed attempt is logged with its number.Verification
shellcheck -s bashon the extracted step: clean.cosignthat fails twice and then succeeds: the step exits 0 after 3 calls.cosignthat always fails: the step exits 1 after 6 calls.codex exec review --commit 7932ac5: pass.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