Skip to content

tests.system.test_system.TestErrorReporting: test_report_exception_no_grpc failed #425

Closed
@flaky-bot

Description

@flaky-bot

Note: #416 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: ebc33ed
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_report_exception_no_grpc(self):
    with mock.patch.dict(
        "os.environ", {"GOOGLE_CLOUD_DISABLE_GRPC": "true"}, clear=True
    ):
      self.test_report_exception()

tests/system/test_system.py:136:


tests/system/test_system.py:129: in test_report_exception
error_count = wrapped_get_count(class_name, Config.CLIENT)


args = ('RuntimeError_1681879031479', <google.cloud.error_reporting.client.Client object at 0x7ff5032a53a0>)
kwargs = {}, tries = 8, result = None, delay = 128
msg = 'is_one. Trying again in 128 seconds...'

@functools.wraps(to_wrap)
def wrapped_function(*args, **kwargs):
    tries = 0
    while tries < self.max_tries:
        result = to_wrap(*args, **kwargs)
        if self.result_predicate(result):
            return result

        delay = self.delay * self.backoff ** tries
        msg = "%s. Trying again in %d seconds..." % (
            self.result_predicate.__name__,
            delay,
        )
        self.logger(msg)

        time.sleep(delay)
        tries += 1
  raise BackoffFailed()

E test_utils.retry.BackoffFailed

.nox/prerelease_deps-3-8/lib/python3.8/site-packages/test_utils/retry.py:170: BackoffFailed

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