feat: add test proxy to java-bigtable client#1498
Conversation
test-proxy/pom.xml
Outdated
| <version>3.2.4</version> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> |
There was a problem hiding this comment.
why does this need to be shaded?
There was a problem hiding this comment.
To specify the main class to start the proxy I think?
There was a problem hiding this comment.
main entry point in the jar can be specified to make it executable:
https://maven.apache.org/shared/maven-archiver/examples/classpath.html#Make
Shading will produce a single jar thats executable. There is no readme here so I'm not sure how this is going to be executed. So I'll list a couple of approaches:
- Having a bash script that will mvn exec:java the proxy and then start the test suite
- Have a junit wrapper that starts the proxy at the beginning of the test run and then exec's the test suite
In both cases, we don't need to bundle the dependencies. In fact, bundling the deps prevents us from running the proxy with older clients. Which is primary advantage to having it as a separate artifact
test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java
Outdated
Show resolved
Hide resolved
test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java
Outdated
Show resolved
Hide resolved
test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java
Outdated
Show resolved
Hide resolved
test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxyMain.java
Outdated
Show resolved
Hide resolved
test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxyMain.java
Outdated
Show resolved
Hide resolved
liujiongxin
left a comment
There was a problem hiding this comment.
Overall look good to me! Thanks for the effort!
test-proxy/pom.xml
Outdated
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-deploy-plugin</artifactId> | ||
| <version>3.0.0-M2</version> |
There was a problem hiding this comment.
we probably don't need this version
test-proxy/pom.xml
Outdated
| <parent> | ||
| <artifactId>google-cloud-bigtable-parent</artifactId> | ||
| <groupId>com.google.cloud</groupId> | ||
| <version>2.15.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigtable:current} --> |
There was a problem hiding this comment.
update the parent version since we cut a new release
|
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
kolea2
left a comment
There was a problem hiding this comment.
lgtm with one small comment
🤖 I have created a release *beep* *boop* --- ## [2.17.0](https://togithub.com/googleapis/java-bigtable/compare/v2.16.0...v2.17.0) (2022-12-07) ### Features * Add a query paginator ([#1530](https://togithub.com/googleapis/java-bigtable/issues/1530)) ([5c8e1f6](https://togithub.com/googleapis/java-bigtable/commit/5c8e1f656b15177ecef4709b9e502cef58cca479)) * Add test proxy to java-bigtable client ([#1498](https://togithub.com/googleapis/java-bigtable/issues/1498)) ([132b4e4](https://togithub.com/googleapis/java-bigtable/commit/132b4e4fe340ca316de8eef2e2133b6dabd9dec3)) * Implement cross-project table restore ([#1536](https://togithub.com/googleapis/java-bigtable/issues/1536)) ([335977c](https://togithub.com/googleapis/java-bigtable/commit/335977c499b1776c8fa861d13195ffc49e468e0a)) * Next release from main branch is 2.17.0 ([#1514](https://togithub.com/googleapis/java-bigtable/issues/1514)) ([4fc6a93](https://togithub.com/googleapis/java-bigtable/commit/4fc6a93a25362df7bc107d48f94e1c00b6bd608d)) ### Dependencies * Update dependency com.google.cloud:google-cloud-monitoring-bom … ([#1531](https://togithub.com/googleapis/java-bigtable/issues/1531)) ([ee98338](https://togithub.com/googleapis/java-bigtable/commit/ee9833835a84cee202b142950b28704db682ac0c)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 ([#1539](https://togithub.com/googleapis/java-bigtable/issues/1539)) ([3244cef](https://togithub.com/googleapis/java-bigtable/commit/3244cefd4d77a44bab6ccaa8f5c03e3d31575625)) * Update dependency kr.motd.maven:os-maven-plugin to v1.7.1 ([#1518](https://togithub.com/googleapis/java-bigtable/issues/1518)) ([8309681](https://togithub.com/googleapis/java-bigtable/commit/830968109a3754a12bd0bc92674fe42ae529b924)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.19 ([#1537](https://togithub.com/googleapis/java-bigtable/issues/1537)) ([7f7c478](https://togithub.com/googleapis/java-bigtable/commit/7f7c478a2163c46d10ed39ea3c1b046f971d4569)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.19 ([#1538](https://togithub.com/googleapis/java-bigtable/issues/1538)) ([9d3df57](https://togithub.com/googleapis/java-bigtable/commit/9d3df57d7bfeafd9cbcf56ecd58b52cc1b14ba7b)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
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:
Fixes #<issue_number_goes_here> ☕️
If you write sample code, please follow the samples format.