Skip to content

Commit 150ea43

Browse files
author
Andrei Bratu
committed
flaky tests
1 parent cd23577 commit 150ea43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/utilities/test_flow.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def _flow_over_flow(messages: list[dict]) -> str:
6565
return _random_string, _call_llm, _agent_call, _flow_over_flow
6666

6767

68+
@pytest.mark.flaky(retries=3, delay=30)
6869
def test_decorators_without_flow(
6970
opentelemetry_hl_test_configuration: tuple[Tracer, InMemorySpanExporter],
7071
):
@@ -110,6 +111,7 @@ def test_decorators_without_flow(
110111
)["prompt"]
111112

112113

114+
@pytest.mark.flaky(retries=3, delay=30)
113115
def test_decorators_with_flow_decorator(
114116
opentelemetry_hl_test_configuration: tuple[Tracer, InMemorySpanExporter],
115117
):
@@ -152,6 +154,7 @@ def test_decorators_with_flow_decorator(
152154
assert read_from_opentelemetry_span(span=flow_span, key=HUMANLOOP_FILE_KEY)["flow"]
153155

154156

157+
@pytest.mark.flaky(retries=3, delay=30)
155158
def test_flow_decorator_flow_in_flow(
156159
opentelemetry_hl_test_configuration: tuple[Tracer, InMemorySpanExporter],
157160
call_llm_messages: list[dict],
@@ -189,6 +192,7 @@ def test_flow_decorator_flow_in_flow(
189192
read_from_opentelemetry_span(span=flow_span, key=HUMANLOOP_FILE_KEY)["flow"] != {}
190193

191194

195+
@pytest.mark.flaky(retries=3, delay=30)
192196
def test_flow_decorator_with_hl_exporter(
193197
call_llm_messages: list[dict],
194198
opentelemetry_hl_with_exporter_test_configuration: tuple[Tracer, HumanloopSpanExporter],
@@ -256,6 +260,7 @@ def test_flow_decorator_with_hl_exporter(
256260
assert tool_log_call_args.kwargs["trace_parent_id"] == prompt_log_id
257261

258262

263+
@pytest.mark.flaky(retries=3, delay=30)
259264
def test_flow_decorator_hl_exporter_flow_inside_flow(
260265
call_llm_messages: list[dict],
261266
opentelemetry_hl_with_exporter_test_configuration: tuple[Tracer, HumanloopSpanExporter],

0 commit comments

Comments
 (0)