Skip to content

Commit d03d8a8

Browse files
ci: mark logger test as flaky [backport 2.3] (#7854)
Backport 09ee85c from #7839 to 2.3. ## Checklist - [x] Change(s) are motivated and described in the PR description. - [x] Testing strategy is described if automated tests are not included in the PR. - [x] Risk is outlined (performance impact, potential for breakage, maintainability, etc). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] [Library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) are followed. If no release note is required, add label `changelog/no-changelog`. - [x] Documentation is included (in-code, generated user docs, [public corp docs](https://github.com/DataDog/documentation/)). - [x] Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Title is accurate. - [x] No unnecessary changes are introduced. - [x] Description motivates each change. - [x] Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes unless absolutely necessary. - [x] Testing strategy adequately addresses listed risk(s). - [x] Change is maintainable (easy to change, telemetry, documentation). - [x] Release note makes sense to a user of the library. - [x] Reviewer has explicitly acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment. - [x] Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting) - [x] If this PR touches code that signs or publishes builds or packages, or handles credentials of any kind, I've requested a review from `@DataDog/security-design-and-guidance`. - [x] This PR doesn't touch any of that. Co-authored-by: Emmett Butler <[email protected]>
1 parent d45f8d0 commit d03d8a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tracer/test_logger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ddtrace.internal.logger import DDLogger
77
from ddtrace.internal.logger import get_logger
88
from tests.utils import BaseTestCase
9+
from tests.utils import flaky
910

1011

1112
ALL_LEVEL_NAMES = ("debug", "info", "warning", "error", "exception", "critical", "fatal")
@@ -240,6 +241,7 @@ def test_logger_handle_no_limit(self, base_handle):
240241
# Our buckets are empty
241242
self.assertEqual(log.buckets, dict())
242243

244+
@flaky(1707075091)
243245
@mock.patch("logging.Logger.handle")
244246
def test_logger_handle_debug(self, base_handle):
245247
"""

0 commit comments

Comments
 (0)