NASA-PDS / roundup-action

Do a "roundup", a/k/a PDS-style continuous integration and delivery
Apache License 2.0
1 stars 4 forks source link

Improve roundup fault tolerance on Maven server timeouts #125

Open jordanpadams opened 8 months ago

jordanpadams commented 8 months ago

💡 Description

Per https://issues.sonatype.org/browse/OSSRH-51097, we are also encountering these intermittent errors in attempting stable releases like:

Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and Java type class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and MIME media type text/html was not found

Per the ticket, they just recommend a retry. Ideally, roundup would detect this type of failure and retry the maven release.

jordanpadams commented 8 months ago

@nutjob4life how hard (work days) do you think it would be for us to incorporate some sort of retry algorithm for when we detect some of these known network failures with sonatype? the more we are seeing this slow down our release process, the more I think it may be worth doing... but not sure how the code is wrapping the maven execution? we may be able to just grep for part of this exception and go from there?

nutjob4life commented 8 months ago

@jordanpadams it might be pretty easy, say a day to test it in the sandbox