Repository navigation
Fix snapshot concurrency and release retries - #3
Merged
riccardobl merged 1 commit intoOct 31, 2026
Merged
Conversation
Serialize snapshot uploads and skip superseded master commits. Validate publishing credentials before creating a release, preserve each workflow run's version in its annotated tag, and skip uploads already recorded as successful on a previous attempt.
jaime-jmebot
approved these changes
Oct 31, 2026
jaime-jmebot
left a comment
Contributor
There was a problem hiding this comment.
This is a solid set of improvements to the snapshot and release workflows!
- Snapshot Concurrency: Serializing uploads and checking
masterHEAD prevents stale or concurrent commits from overwriting snapshot metadata. - Release Retries & Tag Reuse: Checking credentials upfront and tagging releases with the workflow run marker enables reliable, idempotent retries.
- Publication Check: Reusing existing GitHub releases and skipping Sonatype uploads if a previous run attempt already succeeded prevents duplicate publish attempts.
Everything looks clean and well-tested. Great work!
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.
Follow-up to #2.
The new snapshot workflow can publish two commits to the same daily snapshot concurrently, allowing an older commit to replace newer snapshot metadata. Release retries also allocate a new version after a tag has already been pushed, and missing publishing credentials are only detected after creating the release.
Changes
masterbefore uploading.Validation
scripts/next-version-test.sh: all 15 checks passed.The retry guard recognizes uploads recorded as successful by GitHub Actions. It does not claim transactional recovery when a remote upload is accepted but the client loses the response.