fix(release): add non-blocking Maven Central propagation verify#175
Merged
saurabhjain1592 merged 1 commit intoMay 9, 2026
Merged
Conversation
Previously the workflow reported "Deploy successful" the moment Sonatype Central validated the upload (per the v8.0.0 release at 2026-05-09 15:37Z), then proceeded straight to creating the GitHub Release. But actual public availability on `repo1.maven.org/maven2` lags by 10-30 minutes for typical releases — operators were left guessing whether the release was truly consumable. Add a polling step between `mvn deploy` and the GitHub Release that checks `repo1.maven.org` for the artifact .pom directly. Up to 30 minutes (60 × 30s). Non-blocking via `continue-on-error: true` so that: - Fast propagation: workflow reports Maven Central availability in under a minute and the GH release fires. - Slow propagation (>30min): polling step warns and the GH release still fires, leaving the operator with a clear pointer to the Sonatype publish dashboard for follow-up. Verified locally that the new polling logic returns success on first attempt against both the prior v7.1.0 release and the just-published v8.0.0 (which has now propagated since the v8.0.0 release ran). Signed-off-by: Saurabh Jain <saurabhjain1592@gmail.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.
Summary
The release workflow reports "Deploy successful" the moment Sonatype Central validates the upload (per the v8.0.0 release run 25604825388 at 2026-05-09 15:37Z), then proceeds straight to creating the GitHub Release. But actual public availability on `repo1.maven.org/maven2` lags 10-30 minutes — operators couldn't tell whether the release was truly consumable.
Change
Add a polling step between `mvn deploy` and the GitHub Release that checks `repo1.maven.org` for the artifact .pom directly. Up to 30 min (60 × 30s).
`continue-on-error: true` keeps it non-blocking — if propagation exceeds 30 min, the GH release still fires and a clear warning points the operator at the Sonatype publish dashboard.
DoD (dryrun)
Ran the polling logic locally against two real versions:
```
$ # v7.1.0 (known propagated, prior release):
✅ axonflow-sdk:7.1.0 is live (after 1 attempt(s))
$ # v8.0.0 (just published, propagation in flight at deploy time):
✅ already propagated to Maven Central — https://repo1.maven.org/maven2/com/getaxonflow/axonflow-sdk/8.0.0/axonflow-sdk-8.0.0.pom
```
(v8.0.0 has now propagated since the original release run, ~25 min after `mvn deploy`.)
Self-review
No source / pom.xml / artifact change.