Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove GAX test code from BOM #1696

Merged
merged 2 commits into from Oct 5, 2020
Merged

remove GAX test code from BOM #1696

merged 2 commits into from Oct 5, 2020

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Oct 3, 2020

@elharo elharo requested a review from suztomo October 3, 2020 16:40
@google-cla google-cla bot added the cla: yes label Oct 3, 2020
Comment on lines 214 to 217
<artifactId>gax</artifactId>
<version>${gax.version}</version>
<type>pom</type>
<scope>import</scope>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The artifact gax is not a pom.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch; fixed

@suztomo
Copy link
Contributor

suztomo commented Oct 5, 2020

gax's testlib-classifier artifact contains classes useful to write tests for gax (test infrastructure; see below for the content). It's not unit tests for gax (I read your googleapis/gax-java#700).

It's not for GCP customers, but for Google library maintainers to write unit tests with gax. That's why this PR is removing the testlib-classifier artifact. Is this correct?

suztomo-macbookpro44% jar tf gax-1.59.0-testlib.jar 
META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/google/api/
com/google/api/gax/
com/google/api/gax/rpc/
com/google/api/gax/rpc/testing/
com/google/api/gax/rpc/testing/FakeStatusCode.class
com/google/api/gax/rpc/testing/FakePagedApi$ListIntegersPagedResponse.class
com/google/api/gax/rpc/testing/FakeSimpleApi$StashCallable.class
com/google/api/gax/rpc/testing/FakePagedApi$ListIntegersPagedResponseFactory.class
com/google/api/gax/rpc/testing/FakeSimpleApi.class
com/google/api/gax/rpc/testing/FakeClientSettings.class
com/google/api/gax/rpc/testing/MockStreamingApi.class
com/google/api/gax/rpc/testing/FakeBatchableApi$LabeledIntList.class
com/google/api/gax/rpc/testing/FakeStreamingApi$ClientStreamingStashCallable$AccumulatingStreamObserver.class
com/google/api/gax/rpc/testing/FakeTransportChannel.class
com/google/api/gax/rpc/testing/FakeClientSettings$1.class
com/google/api/gax/rpc/testing/FakeStreamingApi$BidiStreamingStashCallable.class
com/google/api/gax/rpc/testing/FakeStreamingApi$BidiStreamingStashCallable$AccumulatingClientStream.class
com/google/api/gax/rpc/testing/FakePagedApi$ListIntegersSizedPage.class
com/google/api/gax/rpc/testing/FakeOperationSnapshot.class
com/google/api/gax/rpc/testing/MockStreamingApi$MockServerStreamingCallable.class
com/google/api/gax/rpc/testing/FakeStubSettings$1.class
com/google/api/gax/rpc/testing/FakeBatchableApi$SquarerBatchingDescriptor$1.class
com/google/api/gax/rpc/testing/FakeBatchableApi$SquarerBatchingDescriptorV2.class
com/google/api/gax/rpc/testing/FakeChannel.class
com/google/api/gax/rpc/testing/FakeBatchableApi$LabeledIntSquarerCallable.class
com/google/api/gax/rpc/testing/FakeStreamingApi$ClientStreamingStashCallable.class
com/google/api/gax/rpc/testing/FakeOperationApi.class
com/google/api/gax/rpc/testing/FakeApiException.class
com/google/api/gax/rpc/testing/FakeStreamingApi$ServerStreamingStashCallable.class
com/google/api/gax/rpc/testing/MockStreamingApi$MockResponseObserver.class
com/google/api/gax/rpc/testing/FakeOperationApi$FakeOperation.class
com/google/api/gax/rpc/testing/FakeOperationSnapshot$Builder.class
com/google/api/gax/rpc/testing/FakeStreamingApi.class
com/google/api/gax/rpc/testing/FakePagedApi.class
com/google/api/gax/rpc/testing/AutoValue_FakeOperationSnapshot.class
com/google/api/gax/rpc/testing/MockStreamingApi$MockServerStreamingCall.class
com/google/api/gax/rpc/testing/FakeStatusException.class
com/google/api/gax/rpc/testing/FakePagedApi$PagedStashCallable.class
com/google/api/gax/rpc/testing/FakeBatchableApi$SquarerBatchingDescriptorV2$1.class
com/google/api/gax/rpc/testing/FakePagedApi$StashPagedListDescriptor.class
com/google/api/gax/rpc/testing/FakeBatchableApi.class
com/google/api/gax/rpc/testing/FakePagedApi$ListIntegersPagedResponse$1.class
com/google/api/gax/rpc/testing/MockStreamingApi$MockStreamController.class
com/google/api/gax/rpc/testing/FakeBatchableApi$SquarerBatchingDescriptor.class
com/google/api/gax/rpc/testing/AutoValue_FakeOperationSnapshot$Builder.class
com/google/api/gax/rpc/testing/FakeExceptionCallable.class
com/google/api/gax/rpc/testing/FakePagedApi$1.class
com/google/api/gax/rpc/testing/FakePagedApi$ListIntegersPage.class
com/google/api/gax/rpc/testing/FakeStubSettings.class
com/google/api/gax/rpc/testing/FakeStubSettings$Builder.class
com/google/api/gax/rpc/testing/FakeOperationApi$OperationStashCallable.class
com/google/api/gax/rpc/testing/FakeExceptionCallable$ExceptionTransformingFuture.class
com/google/api/gax/rpc/testing/FakeClientSettings$Builder.class
com/google/api/gax/rpc/testing/FakeCallableFactory.class
com/google/api/gax/rpc/testing/FakeOperationApi$FakeOperationFuture.class
com/google/api/gax/rpc/testing/FakeCallContext.class
com/google/api/gax/rpc/testing/AutoValue_FakeOperationSnapshot$1.class
com/google/api/gax/rpc/testing/FakeStreamingApi$1.class
com/google/api/gax/rpc/testing/FakeStreamingApi$StreamControllerStash.class

Example usage of gax testlib-classifier artifact in java-dialogflow:

https://github.com/googleapis/java-dialogflow/blob/ed5bbf503cc6d00dbeebee057d87e5ae560bcd67/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java (pom.xml)

Copy link
Contributor Author

@elharo elharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testlib shouldn't be used outside the project itself, any more than anything else in src/test. It's not documented, not subject to versioning constraints or backwards compatibility, and arguably shouldn't be published on maven central.

@elharo elharo merged commit eaee723 into master Oct 5, 2020
@elharo elharo deleted the testlib branch October 5, 2020 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants