test: introspect http client base_url safely
PR Checks / hadolint (pull_request) Successful in 23s
PR Checks / build-test (pull_request) Successful in 34s
Docker Build and Push / test (pull_request) Successful in 2m17s
Docker Build and Push / integration-test (pull_request) Failing after 2m25s
Docker Build and Push / build (pull_request) Skipped
PR Checks / pytest (pull_request) Successful in 1m50s
PR Checks / hadolint (pull_request) Successful in 23s
PR Checks / build-test (pull_request) Successful in 34s
Docker Build and Push / test (pull_request) Successful in 2m17s
Docker Build and Push / integration-test (pull_request) Failing after 2m25s
Docker Build and Push / build (pull_request) Skipped
PR Checks / pytest (pull_request) Successful in 1m50s
This commit is contained in:
1 parent
6997326b81
commit
ef8fe35da7
1 file changed
+4
-1
@@ -64,7 +64,10 @@ def qdrant_setup():
|
|||||||
# and what it holds (CI 404 diagnosis).
|
# and what it holds (CI 404 diagnosis).
|
||||||
import logging
|
import logging
|
||||||
dbg = logging.getLogger("integration.debug")
|
dbg = logging.getLogger("integration.debug")
|
||||||
dbg.warning("qdrant client url: %s", getattr(client, "_client", client).base_url if hasattr(client, "_client") else client)
|
try:
|
||||||
|
dbg.warning("qdrant client url: %s", client.http._client.base_url)
|
||||||
|
except Exception:
|
||||||
|
dbg.warning("qdrant client url: <introspection failed>")
|
||||||
server_info = None
|
server_info = None
|
||||||
try:
|
try:
|
||||||
server_info = client.get_collections()
|
server_info = client.get_collections()
|
||||||
|
|||||||
Reference in new issue
Block a user