From a597ecf6a2f7ec44511a79db032c369212f27a17 Mon Sep 17 00:00:00 2001 From: OpenCode Cabillot Date: Fri, 9 Oct 2026 12:21:45 +0000 Subject: [PATCH] test: instrument qdrant_setup fixture (log url + collections before/after create) --- tests/test_integration.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/test_integration.py b/tests/test_integration.py index 563b870..f0f947d 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -60,6 +60,18 @@ def qdrant_setup(): model = get_embedding_model() collection_name = os.environ["COLLECTION_NAME"] + # Debug instrumentalisation — truth about which server we are talking to + # and what it holds (CI 404 diagnosis). + import logging + dbg = logging.getLogger("integration.debug") + dbg.warning("qdrant client url: %s", client.rest_uri) + server_info = None + try: + server_info = client.get_collections() + dbg.warning("collections BEFORE: %s", [c.name for c in server_info.collections]) + except Exception as e: + dbg.warning("get_collections FAILED: %s", e) + # Clean up from previous runs try: client.delete_collection(collection_name) @@ -74,6 +86,14 @@ def qdrant_setup(): size=len(probe), distance=models.Distance.COSINE ), ) + # Assert the collection is actually visible right after creation + names_after = [c.name for c in client.get_collections().collections] + dbg.warning("collections AFTER create: %s", names_after) + if collection_name not in names_after: + raise RuntimeError( + f"Fixture created collection {collection_name} but it is not in " + f"get_collections(): {names_after} — pointing at {client.rest_uri}" + ) # Index test emails for email in TEST_EMAILS: