gax-grpc: Surefire <test> pattern restricts the unit test run to a single test
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 94/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- build-system, testing
調査の方向性
sdk-platform-java/gax-java/gax-grpc/pom.xml を開き、Surefire の 設定を確認します。環境依存の 2 つのテストだけが除外されていることを検証し、その後 sdk-platform-java units job または gax-grpc unit tests を実行します。完了とは、1 つのテストだけではなく、完全なスイートが実行されることを意味します。
索引モデルが issue の本文から書いたものです。
説明
In sdk-platform-java/gax-java/gax-grpc/pom.xml, the Surefire configuration is:
<test>!InstantiatingGrpcChannelProviderTest#testLogDirectPathMisconfig_AttemptDirectPathNotSetAndAttemptDirectPathXdsSetViaEnv_warns,!InstantiatingGrpcChannelProviderTest#canUseDirectPath_directPathEnvVarNotSet_attemptDirectPathIsTrue,InstantiatingGrpcChannelProviderTest#testLogDirectPathMisconfigWrongCredential</test>
The last entry has no leading !. Surefire therefore treats it as an inclusion pattern: only InstantiatingGrpcChannelProviderTest#testLogDirectPathMisconfigWrongCredential runs, and the rest of the gax-grpc unit tests are skipped. This includes ChannelPoolTest, GrpcCallContextTest, GrpcClientCallsTest, and all other InstantiatingGrpcChannelProviderTest cases.
This seems to have been introduced when sdk-platform-java was migrated into the monorepo ("chore(sdk-platform-java): apply manual changes"). Before that, the line contained only the first exclusion.
Evidence: in the sdk-platform-java units job, gax-grpc reports Tests run: 1. The only test class run is InstantiatingGrpcChannelProviderTest. An example is a recent run on main's release-please branch (job 110584625307). On a branch with the stray inclusion removed, the same job runs the full gax-grpc suite.
Expected: keep the two exclusions (tests that depend on environment variables), and run the rest of the gax-grpc unit suite.
- 主要言語
- Java
- スター
- 2.1k
- フォーク
- 1.2k
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 147
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/google-cloud-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
googleapis/google-cloud-java#14579 ·
メンテナーはふだん 1 日以内に返信
-
[java-firestore] CustomClassMapper.convertBigDecimal calls .abs() on Double, unintentionally flipping negative values to positive対応中かも @wu-hui が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
googleapis/google-cloud-java#14533 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Github CI failing when trying to install xmllint対応中かも @blakeli0 が 42 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
googleapis/google-cloud-java#14132 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
BigQuery: create() throws NullPointerException on a duplicate job id outside the US multi-region (java-bigquery#3034 not fixed by #3035)対応中かも @laughingman7743 が 57 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
googleapis/google-cloud-java#14025 ·
メンテナーはふだん 1 日以内に返信
-
priority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
googleapis/google-cloud-java#13255 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
googleapis/google-cloud-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
commonmark/commonmark-java#460 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
1.21.1见幽匿感测体就崩溃オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Make branch and label autocomplete matching locale-independent対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
jenkinsci/gitlab-plugin#1950 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
commons-app/apps-android-commons#6984 ·
メンテナーはふだん 2 日以内に返信