tests.system.gapic.v1beta1.test_system_tables_client_v1.TestSystemTablesClient: test_list_models failed
flaky-bot opened this issue · 4 comments
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the flakybot: quiet
label and
I will stop commenting.
commit: f2e89d0
buildURL: Build Status, Sponge
status: failed
Test output
self =@vpcsc_config.skip_if_inside_vpcsc def test_list_models(self): client = automl_v1beta1.TablesClient(project=PROJECT, region=REGION) model = self.ensure_model_ready(client) # will raise if not found
next(iter([m for m in client.list_models(timeout=10) if m.name == model.name]))
tests/system/gapic/v1beta1/test_system_tables_client_v1.py:77:
google/cloud/automl_v1beta1/services/tables/tables_client.py:2129: in list_models
method_kwargs = self.__process_request_kwargs(request, **kwargs)
google/cloud/automl_v1beta1/services/tables/tables_client.py:472: in __process_request_kwargs
setattr(request, key, value)
self = parent: "projects/precise-truck-742/locations/us-central1"
key = 'timeout', value = 10
def __setattr__(self, key, value): """Set the value on the given field. For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted. """ if key[0] == "_": return super().__setattr__(key, value) marshal = self._meta.marshal (key, pb_type) = self._get_pb_type_from_key(key) if pb_type is None:
raise AttributeError(
"Unknown field for {}: {}".format(self.__class__.__name__, key) )
E AttributeError: Unknown field for ListModelsRequest: timeout
.nox/system-3-8/lib/python3.8/site-packages/proto/message.py:732: AttributeError
commit: 46dd7d3
buildURL: Build Status, Sponge
status: failed
Test output
self =@vpcsc_config.skip_if_inside_vpcsc def test_list_models(self): client = automl_v1beta1.TablesClient(project=PROJECT, region=REGION) model = self.ensure_model_ready(client) # will raise if not found
next(iter([m for m in client.list_models(timeout=10) if m.name == model.name]))
tests/system/gapic/v1beta1/test_system_tables_client_v1.py:77:
google/cloud/automl_v1beta1/services/tables/tables_client.py:2129: in list_models
method_kwargs = self.__process_request_kwargs(request, **kwargs)
google/cloud/automl_v1beta1/services/tables/tables_client.py:472: in __process_request_kwargs
setattr(request, key, value)
self = parent: "projects/precise-truck-742/locations/us-central1"
key = 'timeout', value = 10
def __setattr__(self, key, value): """Set the value on the given field. For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted. """ if key[0] == "_": return super().__setattr__(key, value) marshal = self._meta.marshal (key, pb_type) = self._get_pb_type_from_key(key) if pb_type is None:
raise AttributeError(
"Unknown field for {}: {}".format(self.__class__.__name__, key) )
E AttributeError: Unknown field for ListModelsRequest: timeout
.nox/system-3-8/lib/python3.8/site-packages/proto/message.py:732: AttributeError
The test is failing with the latest version of proto-plus
. I ran pip install "proto-plus<1.20.1"
and the test passed.
partheniou@partheniou:~/git/python-automl/tests/system/gapic/v1beta1$ pytest test_system_tables_client_v1.py::TestSystemTablesClient::test_list_datasets
====================================================================================================================== test session starts ======================================================================================================================
platform linux -- Python 3.9.9, pytest-6.2.3, py-1.11.0, pluggy-0.13.1
rootdir: /usr/local/google/home/partheniou/git/python-automl
plugins: flaky-3.7.0
collected 1 item
test_system_tables_client_v1.py . [100%]
======================================================================================================================= 1 passed in 3.77s =======================================================================================================================
pip install "proto-plus<1.20.3"
also works. The issue started in pip install "proto-plus==1.20.3"
. I'm looking into it.
Thanks so much!