java-build fails intermittently on Maven Central 429 rate limiting

Đang mở
#1,820 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@tmckayus đang làm issue này rồi.

Từ ngày 28/8/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug

java-build fails when Maven Central rate-limits the runner:

Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.3.1/maven-source-plugin-3.3.1.pom
[ERROR] Plugin org.apache.maven.plugins:maven-source-plugin:3.3.1 or one of its dependencies could not be resolved:
[ERROR]     Could not transfer artifact org.apache.maven.plugins:maven-source-plugin:pom:3.3.1 from/to central
            (https://repo.maven.apache.org/maven2): status code: 429, reason phrase: Too Many Requests (429)

Seen on #1778, job 98682899970. The artifact exists; the request was throttled. The build spent ~76s retrying and then failed the whole job before compiling any cuOpt code, so this fails PRs for reasons unrelated to their contents.

This will get more frequent, not less: the job runs on every PR touching test_cpp or test_java (.github/workflows/pr.yaml), every run resolves the full plugin and dependency set from Central with no local cache, and shared CI egress IPs are exactly what Central throttles.

Possible fixes

  • Cache ~/.m2/repository between runs, so a warm cache does not hit Central at all
  • Point settings.xml at an internal mirror or a caching proxy rather than Central directly
  • Configure Maven's Wagon retry/backoff (-Dmaven.wagon.http.retryHandler.count, httpconnectionManager.ttlSeconds) so a 429 is retried rather than fatal
  • Pre-populate the dependencies in the rapidsai/ci-conda image used by the job

The first two remove the dependency on Central being reachable and unthrottled on every run; the third only softens the symptom.

Reproducing

Not reliably reproducible on demand, since it depends on Central's throttling of the runner's egress IP at that moment. It shows up as an intermittent java-build failure with a 429 in the log, distinguishable from a genuine dependency problem by the status code.

Ngôn ngữ chính
Cuda
Star
1.1k
Fork
255
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
123

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/cuopt

Tất cả issue của NVIDIA/cuopt

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.