Skip to content

Retry Maven range and cached-miss failures in ci-retry.sh - #10047

Merged
headius merged 4 commits into
jruby:masterfrom
zev:ci-retry-maven-resolution
Nov 17, 2026
Merged

headius merged 4 commits into
jruby:masterfrom
zev:ci-retry-maven-resolution

Conversation

@zev

@zev zev commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

tool/ci-retry.sh misses 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 on No versions available for org.bouncycastle:... within specified range (see #10038):

  • 4 Linux jobs failed with only that error, and the script exited with "not a network failure; not retrying".
  • 5 were rate-limited by Maven Central (429/403) and gave up after 3 attempts 15s and 30s apart.

Changes:

  • Treat No versions available for ... within specified range and Maven's cached miss (... during a previous attempt) as network failures.

  • Pass -U via MAVEN_ARGS on 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: bash on 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

zev and others added 4 commits November 11, 2026 20:11
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
zev marked this pull request as ready for review November 17, 2026 03:34
@zev

zev commented Nov 17, 2026

Copy link
Copy Markdown
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 -U), rate limits get longer waits, and Windows jobs now go through ci-retry.sh too, via Git Bash. All 5 Windows jobs passed that way on the last run. The lib/pom.rb exclusions in #10038 are separate and still waiting on your and kares' thoughts there.

@headius headius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate that we have to keep working around Maven Central issues but that's how it is. LGTM

@headius headius added this to the Non-Release milestone Nov 17, 2026
@headius
headius merged commit 062df6f into jruby:master Nov 17, 2026
149 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants