From 88f2bb163f3eca27b7fb118bbd27f694a16d412c Mon Sep 17 00:00:00 2001 From: Varik Matevosyan Date: Tue, 26 Nov 2024 12:20:14 +0400 Subject: [PATCH] wait for external indexing server before benchmark --- ci/scripts/run-benchmarks.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/scripts/run-benchmarks.sh b/ci/scripts/run-benchmarks.sh index 67316061..71d62a1d 100755 --- a/ci/scripts/run-benchmarks.sh +++ b/ci/scripts/run-benchmarks.sh @@ -17,6 +17,12 @@ echo "host all all ::1/128 trust" >> POSTGRES_HOST_AUTH_METHOD=trust /usr/lib/postgresql/$PG_VERSION/bin/postgres 1>/tmp/pg-out.log 2>/tmp/pg-error.log & wait_for_pg + +# wait for external indexing server +while ! nc -z localhost 8998; do + sleep 0.1 +done + cd $WORKDIR/lantern_hnsw/build export DATABASE_URL=postgresql://localhost:5432/postgres