-
Notifications
You must be signed in to change notification settings - Fork 78
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
chore: move firestore to use GAPICBazel and regenerate #187
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am guessing this is not easily changed for multi-gen packages?
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.
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
|
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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.
Likewise here.
@@ -55,6 +55,7 @@ class firestoreCallTransformer(cst.CSTTransformer): | |||
'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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd that black
didn't correct this -- do we not run it against the scripts
directory?
@@ -25,7 +25,7 @@ | |||
version = "2.0.0-dev1" | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.