Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tests.unit.test_client.TestClient: test_report_exception_with_service_version_in_constructor failed #324

Closed
@flaky-bot

Description

@flaky-bot

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
thing = , comp = 'error_reporting'
import_path = 'google.cloud.error_reporting'
def _dot_lookup(thing, comp, import_path):
    try:
      return getattr(thing, comp)

E AttributeError: module 'google.cloud' has no attribute 'error_reporting'

.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1236: AttributeError

During handling of the above exception, another exception occurred:
.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1345: in patched
keywargs) as (newargs, newkeywargs):
/usr/local/lib/python3.7/contextlib.py:112: in enter
return next(self.gen)
.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1325: in decoration_helper
arg = exit_stack.enter_context(patching)
/usr/local/lib/python3.7/contextlib.py:427: in enter_context
result = _cm_type.enter(cm)
.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1398: in enter
self.target = self.getter()
.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1573: in
getter = lambda: _importer(target)
.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1249: in _importer
thing = _dot_lookup(thing, comp, import_path)
.nox/unit-3-7/lib/python3.7/site-packages/mock/mock.py:1238: in _dot_lookup
import(import_path)
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-7/lib/python3.7/site-packages/google/cloud/logging/init.py:18: in
from google.cloud.logging_v2 import version
.nox/unit-3-7/lib/python3.7/site-packages/google/cloud/logging_v2/init.py:25: in
from google.cloud.logging_v2.client import Client
.nox/unit-3-7/lib/python3.7/site-packages/google/cloud/logging_v2/client.py:25: in
from google.cloud.logging_v2._helpers import _add_defaults_to_filter
.nox/unit-3-7/lib/python3.7/site-packages/google/cloud/logging_v2/_helpers.py:25: in
from google.cloud.logging_v2.entries import LogEntry
.nox/unit-3-7/lib/python3.7/site-packages/google/cloud/logging_v2/entries.py:31: in
import google.cloud.audit.audit_log_pb2 # noqa: F401
.nox/unit-3-7/lib/python3.7/site-packages/google/cloud/audit/audit_log_pb2.py:79: in
create_key=_descriptor._internal_create_key,


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 0x7f6b31b9cc50>

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-7/lib/python3.7/site-packages/google/protobuf/descriptor.py:560: TypeError

Metadata

Metadata

Assignees

Labels

api: clouderrorreportingIssues related to the googleapis/python-error-reporting API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions