-
Notifications
You must be signed in to change notification settings - Fork 53
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(showcase): add showcase testing #1188
Conversation
Java idiomatic client for Google Cloud Platform services. | ||
</description> | ||
|
||
<parent> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gapic-generator-java-bom is the closest to what the client libraries will use to declare versions. Import it in the dependencyManagement section.
curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${SHOWCASE_VERSION}/gapic-showcase-${SHOWCASE_VERSION}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${SHOWCASE_VERSION}-linux-amd64.tar.gz | ||
cd /usr/src/showcase/ | ||
tar -xf showcase-* | ||
./gapic-showcase run & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this run Bazel somewhere? If not, then Bazel cache above are not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel is invoked when generating the showcase client for golden testing.
https://github.com/googleapis/gapic-generator-java/pull/1188/files#diff-2786ec798ce7e963cf28c2b9ac79e3e7c7d0ac47114bfec84de71d09cfe93a20R45-R48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use bazelisk. You can save your time troubleshooting unexpected Bazel version upgrade in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Java idiomatic client for Google Cloud Platform services. | ||
</description> | ||
|
||
<parent> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gapic-generator-java-bom is the closest to what the client libraries will use to declare versions. Import it in the dependencyManagement section.
Kudos, SonarCloud Quality Gate passed! |
Due to the heavy repo refactoring, it was cleaner to apply the previous PR changes to a new branch.