CI jobs fail when Maven Central rate-limits dependency downloads

オープン
#360 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, github-actions, java

調査の方向性

まず、ビルド、テスト、Javadoc、および統合ワークフローの定義を調査し、リンクされている失敗したワークフロー実行を使って、それらの依存関係解決の挙動を比較してください。統合マトリックスと pyroscope.jar の Docker ビルドパスを確認してください。完了の基準は、Maven Central 429 エラーが繰り返し発生することなく、完全なマトリックスを並行して実行できることです。

索引モデルが issue の本文から書いたものです。

説明

Problem

GitHub Actions jobs intermittently fail before compilation or test execution because Maven Central returns HTTP 429 responses while Gradle resolves build dependencies.

Recent failures affected the build, Javadoc, and integration-test workflows. The integration workflow expands into a large matrix, and every job builds pyroscope.jar independently inside Docker. This creates a burst of duplicate dependency downloads from the same runner infrastructure.

Example error:

Could not resolve all artifacts for configuration 'classpath'.
Could not GET https://repo.maven.apache.org/maven2/...
Received status code 429 from server: Too Many Requests

These failures are infrastructure-related and can make unrelated changes appear broken.

Expected behavior

CI dependency resolution should remain reliable when the complete build and integration matrices run concurrently.

Proposed mitigation

  • enable Gradle dependency caching in build, test, and Javadoc jobs
  • cache dependencies before upgrading the Gradle wrapper for newer Java versions
  • limit integration-test matrix concurrency

A longer-term improvement would be to build pyroscope.jar once and reuse it across integration jobs instead of running shadowJar independently in every Docker build.

Related

主要言語
Java
スター
125
フォーク
48
平均マージ
1時間 8分
マージ済み PR(30日)
1

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

grafana/pyroscope-java のほかの issue

grafana/pyroscope-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。