Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

gax-grpc: Surefire <test> pattern restricts the unit test run to a single test

オープン 初心者向け
#14,572 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@macastelaz がすでに取り組んでいます。

2026年10月2日 から。

  • #14573 @macastelaz による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
94/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java

調査の方向性

sdk-platform-java/gax-java/gax-grpc/pom.xml を開き、Surefire の 設定を確認します。環境依存の 2 つのテストだけが除外されていることを検証し、その後 sdk-platform-java units job または gax-grpc unit tests を実行します。完了とは、1 つのテストだけではなく、完全なスイートが実行されることを意味します。

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

説明

priority: p3 type: bug

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

環境構築

はじめの一歩

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

googleapis/google-cloud-java のほかの issue

googleapis/google-cloud-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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