Skip to content

Commit f4b0f8c

Browse files
committed
ci: skip flaky gunicorn and freezegun tests
1 parent b588b17 commit f4b0f8c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/contrib/freezegun/test_freezegun.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pytest
66

77
from ddtrace.internal.utils.time import StopWatch
8+
from tests.utils import flaky
89
from ddtrace.trace import tracer as dd_tracer
910
from tests.contrib.pytest.test_pytest import PytestTestCaseBase
1011

@@ -71,6 +72,8 @@ def test_freezegun_configure_default_ignore_list_continues_to_ignore_ddtrace(sel
7172

7273

7374
class PytestFreezegunTestCase(PytestTestCaseBase):
75+
76+
@flaky(1759346444)
7477
def test_freezegun_pytest_plugin(self):
7578
"""Tests that pytest's patching of freezegun in the v1 plugin version works"""
7679
import sys

tests/contrib/gunicorn/test_gunicorn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import pytest
1212

1313
from ddtrace.internal.utils.retry import RetryError # noqa:F401
14+
from tests.utils import flaky
1415
from tests.utils import snapshot_context
1516
from tests.webclient import Client
1617

@@ -165,6 +166,7 @@ def gunicorn_server(gunicorn_server_settings, tmp_path):
165166
)
166167

167168

169+
@flaky(1759346444, reason="Server startup is flaky in CI. It is unclear whether the server fails to start or shutdown.")
168170
@pytest.mark.skipif(sys.version_info >= (3, 11), reason="Gunicorn is only supported up to 3.10")
169171
def test_no_known_errors_occur(tmp_path):
170172
for gunicorn_server_settings in [

0 commit comments

Comments
 (0)