gapic-generator-python
gapic-generator-python copied to clipboard
Generate Python API client libraries from Protocol Buffers.
Affected APIs: ``` //google/cloud/run/v2/run_py_gapic_test ``` Failure example: ``` google/cloud/run/v2/run_py_gapic_srcjar.py/tests/unit/gapic/run_v2/test_revisions.py:1014: AssertionError ___________________________ test_list_services_pager ___________________________ transport_name = 'grpc' def test_list_services_pager(transport_name: str = "grpc"): client = ServicesClient( credentials=ga_credentials.AnonymousCredentials, transport=transport_name, ) # Mock the...
The following APIs are affected: ``` //google/cloud/recommendationengine/v1beta1/recommendationengine_py_gapic_test //google/devtools/remoteworkers/v1test2/remoteworkers_py_gapic_test //google/home/graph/v1/graph_py_gapic_test ``` A test failure output sample: ``` =================================== FAILURES =================================== _________________________ test_catalog_item_path_path __________________________ def test_catalog_item_path_path(): project = "cuttlefish" location = "mussel"...
The generated unit tests for google/cloud/dataform/v1alpha2 fail with `google.cloud.dataform.v1alpha2.CompilationResult.CodeCompilationConfig.vars_: map_entry should not be set explicitly. Use map instead.` ``` ============================================================================== ERRORS =============================================================================== _______________________________________________ ERROR collecting tests/unit/gapic/dataform_v1alpha2/test_dataform.py ________________________________________________ tests/unit/gapic/dataform_v1alpha2/test_dataform.py:40: in from...
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: - [ ] Make sure...
Running nox showcase test suites leads to errors of the form `Error processing line 1 of /usr/local/google/home/…/gapic-generator-python/.nox/showcase_alternative_templates/lib/python3.9/site-packages/google-showcase-nspkg.pth` A workaround is to go to the offending file and insert a newline...
When generating logging python client (https://github.com/googleapis/googleapis/blob/master/google/logging/v2/BUILD.bazel#L191), the generated unit tests fails with: ```python response = await client.write_log_entries( log_name='log_name_value', > resource=monitored_resource_pb2.MonitoredResource(type_='type__value'), labels={'key_value': 'value_value'}, entries=[log_entry.LogEntry(log_name='log_name_value')], ) E ValueError: Protocol message MonitoredResource has...
When running tests locally, I get errors of the form `Error processing line 1 of /usr/local/google/home/[...]/gapic-generator-python/.nox/showcase_alternative_templates/lib/python3.9/site-packages/google-showcase-nspkg.pth` Not sure where that line is coming from (maybe `nox`, maybe Showcase itself), but...
Running `nox` generates a lot of output. It would be good to make it quieter by default: just minimal confirmation that it's running something, and details about any failing tests...
Running `nox` (on all suites) on my local repo takes about 1hr. This obviously disrupts flow and prevents prompt feedback. Let's try to speed up execution. Nox does not support...
The repository root contains an empty file called [datacatalog-v1beta1-py.tar.gz](https://github.com/googleapis/python-datacatalog/blob/main/datacatalog-v1beta1-py.tar.gz) which shouldn't be there. See https://github.com/googleapis/python-datacatalog/pull/388