Skip to content

Commit b889ca3

Browse files
committed
Update datasets.json during benches
1 parent 740f178 commit b889ca3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tools/run_client_script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ if [[ "$EXPERIMENT_MODE" == "snapshot" ]]; then
3939

4040
else
4141
scp "${SCRIPT_PATH}/run_experiment.sh" "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}:~/run_experiment.sh"
42+
scp "${SCRIPT_PATH}/../datasets/datasets.json" "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}:~/datasets.json"
4243

4344
RUN_EXPERIMENT="ENGINE_NAME=${ENGINE_NAME} \
4445
DATASETS=${DATASETS} \

tools/run_experiment.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ if [[ "$EXPERIMENT_MODE" != "snapshot" ]]; then
4545
docker rmi --force qdrant/vector-db-benchmark:latest || true
4646
fi
4747

48+
echo "Ensure datasets volume exists and contains latest datasets.json"
4849
docker volume create ci-datasets
50+
if [[ -f "$HOME/datasets.json" ]]; then
51+
echo "Found datasets.json, update the volume"
52+
mv ~/datasets.json "$(docker volume inspect ci-datasets -f '{{ .Mountpoint }}')"
53+
else
54+
echo "datasets.json is missing, do not update the volume"
55+
fi
4956

5057
if [[ "$EXPERIMENT_MODE" == "full" ]] || [[ "$EXPERIMENT_MODE" == "upload" ]]; then
5158
echo "EXPERIMENT_MODE=$EXPERIMENT_MODE"

0 commit comments

Comments
 (0)