[build] Java release improvements and build verification tasks#16952
[build] Java release improvements and build verification tasks#16952titusfortner merged 9 commits intotrunkfrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to 6cff022
Previous suggestions✅ Suggestions up to commit b11065d
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Pull request overview
This PR enhances the Java release process with improved timeout handling, deployment validation, and automatic publishing capabilities. It also adds comprehensive package verification tasks for all language bindings (Node.js, Python, Ruby, .NET, and Java) to confirm successful publication to their respective package registries.
Changes:
- Added
package_published?andsonatype_api_posthelper functions for deployment verification - Increased Sonatype API timeout from 60s to 180s and added better error handling
- Created verification tasks for all five language bindings that check package availability on registries
- Added
java:publish_deploymenttask to handle manual deployment publishing by ID
b11065d to
315db3b
Compare
…alidating release
51065c4 to
6cff022
Compare
User description
Java release worked yesterday, but the new Sonatype validation step timed out
💥 What does this PR do?
🔧 Implementation Notes
- Verification tasks can be run separately / manuallyUPDATES:
💡 Additional Considerations
We can't know if the Java improvements will fix the problem I had yesterday until next release, unfortunately
🔄 Types of changes
PR Type
Enhancement, Tests
Description
Add package verification tasks for all language bindings
Improve Java release robustness with deployment validation
Increase Sonatype API timeout and add error handling
Support manual deployment publishing by ID
Diagram Walkthrough
File Walkthrough
Rakefile
Add verification tasks and improve Java release workflowRakefile
package_published?helper to verify package availability onregistries with retry logic
sonatype_api_posthelper for Sonatype API interactions withBearer token auth
:verifytasks for Node, Python, Ruby, .NET, and Java languagebindings
:publishtask with improved timeout handling anddeployment ID extraction
:publish_deploymenttask to manually publish validatedSonatype deployments
:check_credentialstask to conditionally validate credentialsbased on release type
:verifytask toallnamespace to run verification for alllanguages