[skip e2e]Add recall test (#18562)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2022-08-09 13:50:36 +08:00 committed by GitHub
parent c5c3392ebb
commit fcd71930c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 11 deletions

View File

@ -11,12 +11,12 @@ on:
old_image_tag:
description: The old image tag to use for the deploy test
required: true
default: 'latest'
default: 'v2.1.0'
previous_release_version:
description: The previous release version to use for the deploy test
required: true
default: 'v2.0.2'
default: 'v2.1.0'
new_image_repo:
description: The image repository name to use for the deploy test
@ -80,6 +80,12 @@ jobs:
pip install -r requirements.txt --trusted-host https://test.pypi.org
sudo systemctl restart docker
sleep 30s
- name: Download dataset
shell: bash
working-directory: tests/python_client/assets/ann_hdf5
run: |
echo "Downloading dataset..."
bash download.sh
- name: First Milvus deployment
timeout-minutes: 15
@ -105,12 +111,14 @@ jobs:
shell: bash
working-directory: tests/python_client/deploy
run: |
python scripts/first_recall_test.py
if [ ${{ matrix.task }} == "reinstall" ]; then
python3 scripts/action_before_reinstall.py
fi
if [ ${{ matrix.task }} == "upgrade" ]; then
python3 scripts/action_before_upgrade.py
fi
- name: Milvus Idle Time
timeout-minutes: 5
shell: bash
@ -149,6 +157,7 @@ jobs:
shell: bash
working-directory: tests/python_client/deploy
run: |
python scripts/second_recall_test.py
if [ ${{ matrix.task }} == "reinstall" ]; then
python3 scripts/action_after_reinstall.py
fi
@ -185,6 +194,7 @@ jobs:
shell: bash
working-directory: tests/python_client/deploy
run: |
python scripts/second_recall_test.py
if [ ${{ matrix.task }} == "reinstall" ]; then
python3 scripts/action_after_reinstall.py
fi

View File

@ -8,11 +8,11 @@ function check () {
# md5sum -c $1.md5
}
check fashion-mnist-784-euclidean.hdf5 http://vectors.erikbern.com/fashion-mnist-784-euclidean.hdf5
check glove-25-angular.hdf5 http://vectors.erikbern.com/glove-25-angular.hdf5
check glove-50-angular.hdf5 http://vectors.erikbern.com/glove-50-angular.hdf5
check glove-100-angular.hdf5 http://vectors.erikbern.com/glove-100-angular.hdf5
check glove-200-angular.hdf5 http://vectors.erikbern.com/glove-200-angular.hdf5
check mnist-784-euclidean.hdf5 http://vectors.erikbern.com/mnist-784-euclidean.hdf5
check nytimes-256-angular.hdf5 http://vectors.erikbern.com/nytimes-256-angular.hdf5
# check fashion-mnist-784-euclidean.hdf5 http://vectors.erikbern.com/fashion-mnist-784-euclidean.hdf5
# check glove-25-angular.hdf5 http://vectors.erikbern.com/glove-25-angular.hdf5
# check glove-50-angular.hdf5 http://vectors.erikbern.com/glove-50-angular.hdf5
# check glove-100-angular.hdf5 http://vectors.erikbern.com/glove-100-angular.hdf5
# check glove-200-angular.hdf5 http://vectors.erikbern.com/glove-200-angular.hdf5
# check mnist-784-euclidean.hdf5 http://vectors.erikbern.com/mnist-784-euclidean.hdf5
# check nytimes-256-angular.hdf5 http://vectors.erikbern.com/nytimes-256-angular.hdf5
check sift-128-euclidean.hdf5 http://vectors.erikbern.com/sift-128-euclidean.hdf5

View File

@ -20,7 +20,7 @@ def read_benchmark_hdf5(file_path):
dim = 128
TIMEOUT = 100
TIMEOUT = 200
def milvus_recall_test(host='127.0.0.1'):

View File

@ -16,7 +16,7 @@ def read_benchmark_hdf5(file_path):
dim = 128
TIMEOUT = 100
TIMEOUT = 200
def search_test(host="127.0.0.1"):