chore: move firestore to use GAPICBazel and regenerate#187
chore: move firestore to use GAPICBazel and regenerate#187crwilcox merged 15 commits intogoogleapis:masterfrom
Conversation
38b0cec to
e01327f
Compare
3a5d927 to
462dc60
Compare
| @@ -1,2 +1,2 @@ | |||
| # Marker file for PEP 561. | |||
| # The google-firestore-admin package uses inline types. | |||
| # The google-cloud-firestore-admin package uses inline types. | |||
There was a problem hiding this comment.
I am guessing this is not easily changed for multi-gen packages?
There was a problem hiding this comment.
I'm going to put in feature request to allow for custom package names. Sometimes I want to change the name for other reasons (to insert a hyphen in the middle of a reallylongapiname for example). Getting this right is important for _GAPIC_LIBRARY_VERSION.
|
New Unit test failures that are inline with what @tseaver was seeing. |
|
Coverage is down, but otherwise tests are good after merging the two test files and using the generated one as recommended by generator team |
busunkim96
left a comment
There was a problem hiding this comment.
LGTM, please also bump the dep google-api-core>=1.22.1 in setup.py.
| @@ -1,2 +1,2 @@ | |||
| # Marker file for PEP 561. | |||
| # The google-firestore-admin package uses inline types. | |||
| # The google-cloud-firestore-admin package uses inline types. | |||
There was a problem hiding this comment.
I'm going to put in feature request to allow for custom package names. Sometimes I want to change the name for other reasons (to insert a hyphen in the middle of a reallylongapiname for example). Getting this right is important for _GAPIC_LIBRARY_VERSION.
|
@crwilcox Do you want to force-merge this and then scramble to fix coverage? Or add a temporary hack to |
|
@tseaver I forced it in. We have an issue to fix coverage that should likely be prioritized. Though I think if it blocks anything else I am okay dropping to 97% for a time |
| from google.api_core import operation as ga_operation # type: ignore | ||
| from google.api_core import operation_async # type: ignore | ||
| from google.api_core import operation as ga_operation | ||
| from google.api_core import operation_async |
There was a problem hiding this comment.
This is going to break pytype -- I can't tell why it isn't being run in https://source.cloud.google.com/results/invocations/02606fdf-7059-497e-931f-b5c4192081d1/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-firestore%2Fpresubmit%2Fpresubmit/log
The fix for it is in [this PR], released in gapic-generator-python 0.33.2. Do we need to update the bazel config to use the newer version?
| from google.api_core import operation_async # type: ignore | ||
| from google.api_core import operation as ga_operation | ||
| from google.api_core import operation | ||
| from google.api_core import operation_async |
| 'run_query': ('parent', 'structured_query', 'transaction', 'new_transaction', 'read_time', ), | ||
| 'update_document': ('document', 'update_mask', 'mask', 'current_document', ), | ||
| 'write': ('database', 'stream_id', 'writes', 'stream_token', 'labels', ), | ||
|
|
There was a problem hiding this comment.
Odd that black didn't correct this -- do we not run it against the scripts directory?
| release_status = "Development Status :: 5 - Production/Stable" | ||
| dependencies = [ | ||
| "google-api-core[grpc] >= 1.21.0, < 2.0.0dev", | ||
| "google-api-core[grpc] >= 1.22.1, < 2.0.0dev", |
There was a problem hiding this comment.
The 1.22.1 release is odd to have as a minimum: it changes only docstrings. Seems like we would want 1.22.0 (to pick up the feature, "allow quota project to be passed to create_channel"), or else 1.22.2 (bugfix, "only add quota project id if supported").
No description provided.