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

ci: setting up samples_build.yaml (2) #1930

Merged
merged 20 commits into from
Feb 23, 2024
Merged

Conversation

suztomo
Copy link
Member

@suztomo suztomo commented Feb 22, 2024

Enhancing the sample_build.yaml gradually. Current status:

  • AdminIT failed
  • DeadLetterQueueIT succeeded
  • PublisherIT succeeded
  • SchemaIT succeeded
  • SubscriberIT succeeded

Merging this for now as this has good progress itself. We'll address AdminIT in a subsequent pull request.

@suztomo suztomo requested review from a team as code owners February 22, 2024 19:58
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/java-pubsub API. samples Issues that are directly related to samples. labels Feb 22, 2024
@suztomo suztomo marked this pull request as draft February 22, 2024 20:02
@suztomo
Copy link
Member Author

suztomo commented Feb 23, 2024

Current failure

Step #3: [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.804 s <<< FAILURE! - in pubsub.AdminIT
Step #3: [ERROR] pubsub.AdminIT.testAdmin  Time elapsed: 15.799 s  <<< ERROR!
Step #3: com.google.api.gax.rpc.FailedPreconditionException: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: One or more users named in the policy do not belong to a permitted customer.
Step #3: 	at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:102)
Step #3: 	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:98)
Step #3: 	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:66)
Step #3: 	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:97)
Step #3: 	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:84)
Step #3: 	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1127)
Step #3: 	at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)
Step #3: 	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286)
Step #3: 	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055)
Step #3: 	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:807)
Step #3: 	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:568)
Step #3: 	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:538)
Step #3: 	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
Step #3: 	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
Step #3: 	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
Step #3: 	at com.google.api.gax.grpc.ChannelPool$ReleasingClientCall$1.onClose(ChannelPool.java:570)
Step #3: 	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:574)
Step #3: 	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:72)
Step #3: 	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:742)
Step #3: 	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:723)
Step #3: 	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
Step #3: 	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
Step #3: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Step #3: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Step #3: 	at java.lang.Thread.run(Thread.java:750)
Step #3: 	Suppressed: com.google.api.gax.rpc.AsyncTaskException: Asynchronous task failed
Step #3: 		at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:57)
Step #3: 		at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
Step #3: 		at com.google.cloud.pubsub.v1.TopicAdminClient.setIamPolicy(TopicAdminClient.java:1695)
Step #3: 		at pubsub.SetTopicPolicyExample.setTopicPolicyExample(SetTopicPolicyExample.java:57)
Step #3: 		at pubsub.AdminIT.testAdmin(AdminIT.java:209)
Step #3: 		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Step #3: 		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Step #3: 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Step #3: 		at java.lang.reflect.Method.invoke(Method.java:498)
Step #3: 		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
Step #3: 		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
Step #3: 		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
Step #3: 		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
Step #3: 		at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
Step #3: 		at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
Step #3: 		at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
Step #3: 		at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
Step #3: 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
Step #3: 		... 1 more
Step #3: Caused by: io.grpc.StatusRuntimeException: FAILED_PRECONDITION: One or more users named in the policy do not belong to a permitted customer.
Step #3: 	at io.grpc.Status.asRuntimeException(Status.java:533)
Step #3: 	... 14 more
Step #3: 

@suztomo suztomo requested a review from michaelpri10 February 23, 2024 19:41
- name: gcr.io/cloud-devrel-public-resources/java8
entrypoint: echo
args: [
'Samp[le job succeeded',
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: typo in "Samp[le"

@suztomo suztomo added the automerge Merge the pull request once unit tests and other checks pass. label Feb 23, 2024
@suztomo suztomo marked this pull request as ready for review February 23, 2024 20:13
@suztomo suztomo added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 23, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 23, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit 3e0be52 into main Feb 23, 2024
24 of 25 checks passed
@gcf-merge-on-green gcf-merge-on-green bot deleted the cloudbuild-sample branch February 23, 2024 20:18
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/java-pubsub API. samples Issues that are directly related to samples. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants