Skip to content

Commit fc7aa38

Browse files
zxqfd555Manul from Pathway
authored andcommitted
gracefully retry failed qdrant tests (#9669)
GitOrigin-RevId: 14bfa23ea8eefa8f8fe144525c7e2e75782b2a95
1 parent 2957741 commit fc7aa38

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

integration_tests/stdlib/test_qdrant_knn.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright © 2026 Pathway
22

33
import json
4+
import uuid
45

56
import pytest
67

@@ -15,6 +16,10 @@ def make_list(vector_as_str: str) -> list[float]:
1516
return [float(x) for x in vector_as_str.split(",")]
1617

1718

19+
def unique_table_name_suffix() -> str:
20+
return str(uuid.uuid4()).replace("-", "")
21+
22+
1823
class InputSchema(pw.Schema):
1924
pk_source: int = pw.column_definition(primary_key=True)
2025
data: str
@@ -48,7 +53,7 @@ def test_basic_search():
4853

4954
index_factory = ExternalIndexFactory.qdrant_factory(
5055
url=QDRANT_URL,
51-
collection_name="test_basic",
56+
collection_name=f"test_basic_{unique_table_name_suffix()}",
5257
vector_size=3,
5358
)
5459

@@ -98,7 +103,7 @@ def test_with_deletions():
98103

99104
index_factory = ExternalIndexFactory.qdrant_factory(
100105
url=QDRANT_URL,
101-
collection_name="test_deletions",
106+
collection_name=f"test_deletions_{unique_table_name_suffix()}",
102107
vector_size=3,
103108
)
104109

@@ -161,7 +166,7 @@ class QuerySchemaWithFilter(pw.Schema):
161166

162167
index_factory = ExternalIndexFactory.qdrant_factory(
163168
url=QDRANT_URL,
164-
collection_name="test_filter",
169+
collection_name=f"test_filter_{unique_table_name_suffix()}",
165170
vector_size=3,
166171
)
167172

0 commit comments

Comments
 (0)