Automatically retry snapshot publishing - 3 times#14764
Merged
jamesfredley merged 3 commits into7.0.xfrom May 22, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces automatic retry logic for snapshot publishing to repository.apache.org using the nick-fields/retry action.
- Integrates the retry action replacing the direct gradlew publish command
- Configures retry parameters such as timeout_seconds, max_attempts, and retry_wait_seconds
Comments suppressed due to low confidence (1)
.github/workflows/gradle.yml:242
- Verify that the 'command' parameter and the associated numeric parameters (timeout_seconds, max_attempts, retry_wait_seconds) are supported by the nick-fields/retry action and their values meet your infrastructure requirements.
command: ./gradlew publish
jdaugherty
approved these changes
May 22, 2025
matrei
approved these changes
May 22, 2025
Contributor
matrei
left a comment
There was a problem hiding this comment.
Should we add a comment explaining which problem we are solving by using the retry action (timeouts from https://repository.apache.org/content/repositories/snapshots)?
Contributor
Author
|
Comment added
|
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.
nick-fields/retry is on the ASF approved list
Automatically retries 3 times and reduces time needed to babysit the workflow when repository.apache.org is experiencing read timeouts.