Repository navigation
Retry Maven range and cached-miss failures in ci-retry.sh - #10047
Merged
Merged
Conversation
Three kinds of transient Maven failures were failing CI jobs outright:
* "No versions available for ... within specified range" is how Maven
reports a version range (jruby-openssl's Bouncy Castle jars) when it
could not fetch maven-metadata.xml, e.g. under Maven Central's 429
rate limiting. It was not recognized, so the job was not retried.
* A retry after a missing artifact failed in under a second on Maven's
cached miss ("was not found ... during a previous attempt"), which was
then classified as not a network failure. Retries now pass -U via
MAVEN_ARGS so Maven asks the remote again.
* Rate-limited (429) builds used up both retries 15s and 30s apart.
The retry waits are now 15s, 60s and 90s (CI_RETRY_DELAYS), with the
first wait raised to 30s after a 429. The 15s first retry is kept
because it is what recovered the jobs that did recover (Connection
reset, 502 Bad Gateway).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bootstrap action ran these steps under PowerShell on Windows, because tool/ci-retry.sh needs bash, so Windows jobs got no retries. Two of the 11 master jobs that failed on the Bouncy Castle range error since Sep 29 were Windows jobs. GitHub's Windows runner images include Git for Windows, and `shell: bash` runs its bash, so use the same retried steps on every OS. ./mvnw supports Git Bash; bundle install calls bin/jruby.exe on Windows because bin/jruby is a POSIX launcher script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zev
marked this pull request as ready for review
November 17, 2026 03:34
Contributor
Author
|
@headius this is ready for a look when you have time. Thanks for updating the branch; I've merged master again so it's current. It's the retry side of #10038: the BC range error and Maven's cached miss now get retried (with |
headius
approved these changes
Nov 17, 2026
headius
left a comment
Member
There was a problem hiding this comment.
I hate that we have to keep working around Maven Central issues but that's how it is. LGTM
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.
tool/ci-retry.shmisses some transient Maven failures that turn master CI red. I went through the failed jobs in the 67 failed master "JRuby CI" runs since Sep 29. Of the 11 that failed onNo versions available for org.bouncycastle:... within specified range(see #10038):Changes:
Treat
No versions available for ... within specified rangeand Maven's cached miss (... during a previous attempt) as network failures.Pass
-UviaMAVEN_ARGSon retries, so Maven asks the remote again instead of failing on the cached miss in under a second.Wait 15s, 60s and 90s between attempts (overridable with
CI_RETRY_DELAYS), and at least 30s after a 429.Run these steps under
shell: bashon Windows too (Git Bash, which GitHub's Windows runner images include), so Windows jobs get the same retries. Before, they ran under PowerShell without retries; 2 of the 11 jobs were Windows.🤖 Generated with Claude Code