Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a Maven Publish times out, PyPi deployment is skipped #1270

Closed
triceo opened this issue Dec 10, 2024 · 4 comments · Fixed by #1325
Closed

If a Maven Publish times out, PyPi deployment is skipped #1270

triceo opened this issue Dec 10, 2024 · 4 comments · Fixed by #1325
Assignees
Labels
bug Something isn't working build and release
Milestone

Comments

@triceo
Copy link
Contributor

triceo commented Dec 10, 2024

Publishing in Maven Central takes a while. This time, it took a very long time, and JReleaser timed out. This in turn caused the release job to fail, without deploying to PyPi.

But once the deployment to Maven Central is started, it cannot be taken back. Therefore the release will be published even though JReleaser failed. This leaves us in an inconsistent situation where the release is published on Maven Central, but not in PyPi.

@triceo triceo added bug Something isn't working process/needs triage Requires initial assessment of validity, priority etc. labels Dec 10, 2024
@triceo triceo added this to the 1.18.0 milestone Dec 10, 2024
@triceo triceo added build and release and removed process/needs triage Requires initial assessment of validity, priority etc. labels Dec 10, 2024
@aalmiray
Copy link
Contributor

FWIW you can change the default settings for delay and retries to give JReleaser a bit more space. As you noted, once the deployment has started the remote may continue and succeed even if the local build fails due to timeout, as once a deployment publication is triggered the tool simply waits for a status change.

@triceo
Copy link
Contributor Author

triceo commented Jan 13, 2025

Hello @aalmiray!

When we were using the previous configuration (Nexus), before migrating to the new Central publisher, we had an option to not close the release - requiring a later manual step, but avoiding this problem. Did I miss it in the docs, or is that no longer possible?

@aalmiray
Copy link
Contributor

The MavenCentral publishers works in a different way than Nexus2. However, you can still use staged deployments https://jreleaser.org/guide/latest/reference/deploy/maven/maven-central.html#_staged_deployments

@triceo
Copy link
Contributor Author

triceo commented Jan 13, 2025

Thanks Andres, I'll look into it!

@triceo triceo linked a pull request Jan 15, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build and release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants