ci(release): wait for VALIDATED not PUBLISHED on Central deploy - #21
Merged
octaviospain merged 2 commits intoJul 21, 2026
Merged
Conversation
publishAndReleaseToMavenCentral was polling for the fully PUBLISHED state, but Central's publish phase can exceed the plugin's 900s timeout, so the job failed with a timeout even though the release had succeeded on Maven Central. That aborted the remaining steps (SBOM, release notes, GitHub release, changelog commit). Wait only for VALIDATED instead. The deployment is still uploaded as AUTOMATIC, so Central auto-publishes it; VALIDATED confirms the bundle passed validation without blocking on the slow publish phase, so the workflow runs to completion. Signed-off-by: Octavio Calleya Garcia <octavio@transgressoft.net>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe release metadata now includes the 0.1.0 changelog, updated README badges, revised changelog template whitespace, and Maven Central publication validation waiting behavior. ChangesRelease preparation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 65-70: Update the release workflow around the Gradle
publishAndReleaseToMavenCentral invocation so it waits for Maven Central
publication to complete before the GitHub release and CHANGELOG update steps
run. Replace the VALIDATED-only completion condition with the appropriate
publish-complete gate, or add an explicit wait step before the release step,
while preserving the existing failure behavior for unsuccessful Central
publication.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 64bb69a3-8346-461c-a5d6-d881d1f7b9bf
📒 Files selected for processing (3)
.github/workflows/release.ymlCHANGELOG.mdcliff.toml
Seed the repository with the git-cliff-generated changelog for the 0.1.0 release, which the release workflow will keep up to date on each subsequent release. Also add a blank line before each version heading in the cliff.toml template so the rendered changelog is cleanly spaced. Signed-off-by: Octavio Calleya Garcia <octavio@transgressoft.net>
octaviospain
force-pushed
the
fix-release-validation-timeout
branch
from
July 21, 2026 16:32
5bd339b to
4738a8a
Compare
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 job published
0.1.0to Maven Central successfully, but then failed:publishAndReleaseToMavenCentralwas run withmavenCentralDeploymentValidation=PUBLISHED, which blocks until the deployment reaches the fully PUBLISHED state. Central's publish phase can take longer than the plugin's 900s poll timeout, so the Gradle task exited non-zero — even though the release had actually succeeded — and the remaining steps (SBOM, git-cliff release notes, GitHub release, changelog commit) were skipped.Changes
1. Wait for
VALIDATEDinstead ofPUBLISHED.VALIDATEDstill fails the build on a genuine problem (bad POM, missing signature, etc.).No change to what gets published; only how long the job waits before continuing.
2. Add the generated
CHANGELOG.md.0.1.0(the previous run never reached the changelog step). The release workflow keeps it up to date on each subsequent release.cliff.tomlso the rendered changelog is cleanly spaced.Summary by CodeRabbit
Release
Chores
Documentation