googleapis/python-error-reporting

tests.unit.test_client.TestClient: test_report_exception_with_grpc failed

flaky-bot opened this issue · 0 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: 7a7189e
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_report_exception_with_grpc(self):
    credentials = _make_credentials()
  client = self._make_one(project=self.PROJECT, credentials=credentials)

tests/unit/test_client.py:130:


tests/unit/test_client.py:40: in _make_one
return self._get_target_class()(*args, **kw)
tests/unit/test_client.py:35: in _get_target_class
from google.cloud.error_reporting.client import Client
google/cloud/error_reporting/init.py:22: in
from google.cloud.error_reporting.client import Client
google/cloud/error_reporting/client.py:33: in
from google.cloud.error_reporting._logging import _ErrorReportingLoggingAPI
google/cloud/error_reporting/_logging.py:22: in
import google.cloud.logging
.nox/unit-3-9/lib/python3.9/site-packages/google/cloud/logging/init.py:18: in
from google.cloud.logging_v2 import version
.nox/unit-3-9/lib/python3.9/site-packages/google/cloud/logging_v2/init.py:25: in
from google.cloud.logging_v2.client import Client
.nox/unit-3-9/lib/python3.9/site-packages/google/cloud/logging_v2/client.py:25: in
from google.cloud.logging_v2._helpers import _add_defaults_to_filter
.nox/unit-3-9/lib/python3.9/site-packages/google/cloud/logging_v2/_helpers.py:25: in
from google.cloud.logging_v2.entries import LogEntry
.nox/unit-3-9/lib/python3.9/site-packages/google/cloud/logging_v2/entries.py:31: in
import google.cloud.audit.audit_log_pb2 # noqa: F401
.nox/unit-3-9/lib/python3.9/site-packages/google/cloud/audit/audit_log_pb2.py:62: in
_descriptor.FieldDescriptor(


cls = <class 'google.protobuf.descriptor.FieldDescriptor'>
name = 'service_name', full_name = 'google.cloud.audit.AuditLog.service_name'
index = 0, number = 7, type = 9, cpp_type = 9, label = 1, default_value = ''
message_type = None, enum_type = None, containing_type = None
is_extension = False, extension_scope = None, options = None
serialized_options = None, has_default_value = False, containing_oneof = None
json_name = None, file = None, create_key = <object object at 0x7f9396b52e00>

def __new__(cls, name, full_name, index, number, type, cpp_type, label,
            default_value, message_type, enum_type, containing_type,
            is_extension, extension_scope, options=None,
            serialized_options=None,
            has_default_value=True, containing_oneof=None, json_name=None,
            file=None, create_key=None):  # pylint: disable=redefined-builtin
_message.Message._CheckCalledFromGeneratedFile()

E TypeError: Descriptors cannot not be created directly.
E If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
E If you cannot immediately regenerate your protos, some other possible workarounds are:
E 1. Downgrade the protobuf package to 3.20.x or lower.
E 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
E
E More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

.nox/unit-3-9/lib/python3.9/site-packages/google/protobuf/descriptor.py:560: TypeError