-
Notifications
You must be signed in to change notification settings - Fork 1.1k
storage: add benchwrapper #6062
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
Conversation
|
I don't think this is the right place for this code - it will be shipped with the client library and adds additional dependencies for the consumers of google-cloud-java. It probably belongs in its own artifact (probably under google-cloud-testing/) which can depend upon the snapshot version of google-cloud-storage. In a test environment, we install all artifacts to the local maven repository and so maven will find the snapshot version before trying to fetch from Maven Central. |
Codecov Report
@@ Coverage Diff @@
## master #6062 +/- ##
============================================
- Coverage 47.38% 47.02% -0.37%
+ Complexity 27182 25717 -1465
============================================
Files 2523 2523
Lines 274600 269325 -5275
Branches 31383 31190 -193
============================================
- Hits 130124 126647 -3477
+ Misses 134863 134000 -863
+ Partials 9613 8678 -935
Continue to review full report at Codecov.
|
Done
What are the commands that need to be run to do that? |
...oud-testing/storage-benchwrapper/src/main/java/com/benchwrapper/StorageBenchWrapperImpl.java
Outdated
Show resolved
Hide resolved
|
Thanks for the second review. All comments addressed. |
google-cloud-testing/storage-benchwrapper/src/main/proto/storage.proto
Outdated
Show resolved
Hide resolved
|
Thanks for the third review. All comments addressed. |
google-cloud-testing/storage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/Main.java
Outdated
Show resolved
Hide resolved
...torage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/StorageBenchWrapperImpl.java
Show resolved
Hide resolved
...torage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/StorageBenchWrapperImpl.java
Outdated
Show resolved
Hide resolved
|
Thanks for the fourth review. All comments addressed. |
google-cloud-testing/storage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/Main.java
Outdated
Show resolved
Hide resolved
...torage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/StorageBenchWrapperImpl.java
Show resolved
Hide resolved
...torage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/StorageBenchWrapperImpl.java
Outdated
Show resolved
Hide resolved
...torage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/StorageBenchWrapperImpl.java
Show resolved
Hide resolved
...torage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/StorageBenchWrapperImpl.java
Show resolved
Hide resolved
|
Thanks for the fifth review. All comments addressed. |
google-cloud-testing/storage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/Main.java
Outdated
Show resolved
Hide resolved
google-cloud-testing/storage-benchwrapper/src/main/java/com/google/cloud/benchwrapper/Main.java
Outdated
Show resolved
Hide resolved
This adds a small gRPC server around the google-cloud-storage client library, which allows g3 benchmarking code to prod at the library and record measurements without needing to be written in Java / be in the same repository. Since g3 requires TLS on all connections, the server is TLS-ed with a dummy cert. These certs aren't intended to be private: the kokoro environment is the only place this gets run. (never in prod, etc)
|
Thanks for the sixth review. All comments addressed. |
This adds a small gRPC server around the google-cloud-storage client library,
which allows g3 benchmarking code to prod at the library and record
measurements without needing to be written in Java / be in the same repository.
Since g3 requires TLS on all connections, the server is TLS-ed with a dummy
cert. These certs aren't intended to be private: the kokoro environment
is the only place this gets run. (never in prod, etc)
ps: I'm not sure what the right place to put this code is. Minimally it requires the local version of google-cloud-storage, so I stuck it alongside it. Perhaps there's a better place, with a way to access google-cloud-storage without going to maven though.