From c307891208486336236f0ec6695555d6d5b65c71 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/scripts/run-benchmarks.sh b/ci/scripts/run-benchmarks.sh index 67316061..278ec90e 100755 --- a/ci/scripts/run-benchmarks.sh +++ b/ci/scripts/run-benchmarks.sh @@ -17,11 +17,17 @@ 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 export LANTERN_DATABASE_URL=postgresql://localhost:5432/postgres -git clone https://github.com/lanterndata/benchmark -b varik/fix-external-indexing +git clone https://github.com/lanterndata/benchmark cd benchmark pip install -r core/requirements.txt pip install -r external/requirements.txt