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: sample build in Cloud Build #1606

Merged
merged 5 commits into from
Feb 28, 2024
Merged

ci: sample build in Cloud Build #1606

merged 5 commits into from
Feb 28, 2024

Conversation

suztomo
Copy link
Member

@suztomo suztomo commented Feb 28, 2024

b/322966824

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

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

suztomo commented Feb 28, 2024

It failed:

Step #3: [INFO] Running pubsublite.QuickStartIT
Step #3: [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.155 s <<< FAILURE! - in pubsublite.QuickStartIT
Step #3: [ERROR] pubsublite.QuickStartIT  Time elapsed: 0.128 s  <<< ERROR!
Step #3: java.lang.ExceptionInInitializerError
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.RunBefores.invokeMethod(RunBefores.java:33)
Step #3: 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
Step #3: 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
Step #3: 	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
Step #3: 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364)
Step #3: 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
Step #3: 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237)
Step #3: 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158)
Step #3: 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
Step #3: 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
Step #3: 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
Step #3: 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
Step #3: Caused by: java.lang.NumberFormatException: null
Step #3: 	at java.lang.Long.parseLong(Long.java:552)
Step #3: 	at java.lang.Long.parseLong(Long.java:631)
Step #3: 	at pubsublite.QuickStartIT.<clinit>(QuickStartIT.java:49)
Step #3: 	... 19 more

@suztomo
Copy link
Member Author

suztomo commented Feb 28, 2024

Step #3: Caused by: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Pub/Sub Lite API has not been used in project 615621127317 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/pubsublite.googleapis.com/overview?project=615621127317 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Step #3: 	at io.grpc.Status.asRuntimeException(Status.java:533)

@suztomo suztomo marked this pull request as ready for review February 28, 2024 22:38
@suztomo suztomo added automerge Merge the pull request once unit tests and other checks pass. owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 28, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 28, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit b227908 into main Feb 28, 2024
23 checks passed
@gcf-merge-on-green gcf-merge-on-green bot deleted the samples_build branch February 28, 2024 23:22
@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 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsublite Issues related to the googleapis/java-pubsublite 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