Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tests.system.test_system.TestLogging: test_log_empty failed #771

Copy link
Copy link
Closed
@flaky-bot

Description

@flaky-bot
Issue body actions

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


commit: 0236b77
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_log_empty(self):
    gapic_logger = Config.CLIENT.logger(self._logger_name("log_empty"))
    http_logger = Config.HTTP_CLIENT.logger(self._logger_name("log_empty_http"))

    loggers = (
        [gapic_logger]
        if Config.use_mtls == "always"
        else [gapic_logger, http_logger]
    )
    for logger in loggers:
        self.to_delete.append(logger)

        logger.log()
      entries = _list_entries(logger)

tests/system/test_system.py:510:


tests/system/test_system.py:86: in _list_entries
return outer(logger)
.nox/prerelease_deps-3-8/lib/python3.8/site-packages/test_utils/retry.py:100: in wrapped_function
return to_wrap(*args, **kwargs)


args = (<google.cloud.logging_v2.logger.Logger object at 0x7ffa102a2e80>,)
kwargs = {}, tries = 6, result = [], delay = 64
msg = '_has_entries. Trying again in 64 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

No one assigned

    Labels

    api: loggingIssues related to the googleapis/python-logging API.Issues related to the googleapis/python-logging API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.Tells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.An issue filed by the Flaky Bot. Should not be added manually.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.