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.
In
sdk-platform-java/gax-java/gax-grpc/pom.xml, the Surefire configuration is:The last entry has no leading
!. Surefire therefore treats it as an inclusion pattern: onlyInstantiatingGrpcChannelProviderTest#testLogDirectPathMisconfigWrongCredentialruns, and the rest of the gax-grpc unit tests are skipped. This includesChannelPoolTest,GrpcCallContextTest,GrpcClientCallsTest, and all otherInstantiatingGrpcChannelProviderTestcases.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 unitsjob, gax-grpc reportsTests run: 1. The only test class run isInstantiatingGrpcChannelProviderTest. An example is a recent run onmain'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.