ci: wait for VALIDATED instead of PUBLISHED on Maven Central release by merlimat · Pull Request #354 · oxia-db/oxia-client-java · GitHub
Skip to content

ci: wait for VALIDATED instead of PUBLISHED on Maven Central release#354

Merged
merlimat merged 1 commit into
oxia-db:mainfrom
merlimat:ci-validated-deployment
Jun 16, 2026
Merged

ci: wait for VALIDATED instead of PUBLISHED on Maven Central release#354
merlimat merged 1 commit into
oxia-db:mainfrom
merlimat:ci-validated-deployment

Conversation

@merlimat

Copy link
Copy Markdown
Collaborator

Problem

The v0.9.0 release job failed even though all artifacts published successfully to Maven Central.

The workflow set mavenCentralDeploymentValidation: PUBLISHED, so the vanniktech plugin polled until the deployment reached the final PUBLISHED state. Central's propagation to repo1 took over an hour that day, exceeding the plugin's default SONATYPE_CLOSE_TIMEOUT_SECONDS of 900s:

Deployment validation timed out after 900s. Last known state: PUBLISHING

The deployment had already passed validation and was in PUBLISHING — the publish was fine; only the workflow's wait timed out.

Fix

Wait for VALIDATED instead of PUBLISHED. The job blocks until Central accepts the uploaded bundle (a minute or two), then Central publishes asynchronously.

This still guards against the failure mode that originally motivated PUBLISHED (the v0.7.5 incident, where a bundle never reached Central): a VALIDATED deployment with automatic publishing is guaranteed to publish. The only thing we give up is the workflow confirming repo1 propagation before going green — which is outside our control and not worth tying up a CI runner for an hour (or flaking when it exceeds even a raised timeout).

The release workflow set mavenCentralDeploymentValidation to PUBLISHED,
so the vanniktech plugin polled until the deployment reached the final
PUBLISHED state. Central's publish-to-repo1 propagation can take well
over an hour, exceeding the plugin's 900s SONATYPE_CLOSE_TIMEOUT_SECONDS
default, which failed the v0.9.0 release job even though the artifacts
published successfully.

Wait for VALIDATED instead: the job blocks until Central accepts the
uploaded bundle (a minute or two) and then publishes asynchronously.
This still guards against the failure mode that motivated PUBLISHED in
the first place (a bundle that never reaches Central), since a VALIDATED
deployment with automatic publishing is guaranteed to publish.

Signed-off-by: Matteo Merli <mmerli@apache.org>
@merlimat merlimat merged commit 3362a3a into oxia-db:main Jun 16, 2026
2 checks passed
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.

1 participant