mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
[skip e2e]Add recall test (#18562)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
c5c3392ebb
commit
fcd71930c8
14
.github/workflows/deploy-test.yaml
vendored
14
.github/workflows/deploy-test.yaml
vendored
@ -11,12 +11,12 @@ on:
|
|||||||
old_image_tag:
|
old_image_tag:
|
||||||
description: The old image tag to use for the deploy test
|
description: The old image tag to use for the deploy test
|
||||||
required: true
|
required: true
|
||||||
default: 'latest'
|
default: 'v2.1.0'
|
||||||
|
|
||||||
previous_release_version:
|
previous_release_version:
|
||||||
description: The previous release version to use for the deploy test
|
description: The previous release version to use for the deploy test
|
||||||
required: true
|
required: true
|
||||||
default: 'v2.0.2'
|
default: 'v2.1.0'
|
||||||
|
|
||||||
new_image_repo:
|
new_image_repo:
|
||||||
description: The image repository name to use for the deploy test
|
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
|
pip install -r requirements.txt --trusted-host https://test.pypi.org
|
||||||
sudo systemctl restart docker
|
sudo systemctl restart docker
|
||||||
sleep 30s
|
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
|
- name: First Milvus deployment
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
@ -105,12 +111,14 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy
|
working-directory: tests/python_client/deploy
|
||||||
run: |
|
run: |
|
||||||
|
python scripts/first_recall_test.py
|
||||||
if [ ${{ matrix.task }} == "reinstall" ]; then
|
if [ ${{ matrix.task }} == "reinstall" ]; then
|
||||||
python3 scripts/action_before_reinstall.py
|
python3 scripts/action_before_reinstall.py
|
||||||
fi
|
fi
|
||||||
if [ ${{ matrix.task }} == "upgrade" ]; then
|
if [ ${{ matrix.task }} == "upgrade" ]; then
|
||||||
python3 scripts/action_before_upgrade.py
|
python3 scripts/action_before_upgrade.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Milvus Idle Time
|
- name: Milvus Idle Time
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -149,6 +157,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy
|
working-directory: tests/python_client/deploy
|
||||||
run: |
|
run: |
|
||||||
|
python scripts/second_recall_test.py
|
||||||
if [ ${{ matrix.task }} == "reinstall" ]; then
|
if [ ${{ matrix.task }} == "reinstall" ]; then
|
||||||
python3 scripts/action_after_reinstall.py
|
python3 scripts/action_after_reinstall.py
|
||||||
fi
|
fi
|
||||||
@ -185,6 +194,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy
|
working-directory: tests/python_client/deploy
|
||||||
run: |
|
run: |
|
||||||
|
python scripts/second_recall_test.py
|
||||||
if [ ${{ matrix.task }} == "reinstall" ]; then
|
if [ ${{ matrix.task }} == "reinstall" ]; then
|
||||||
python3 scripts/action_after_reinstall.py
|
python3 scripts/action_after_reinstall.py
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -8,11 +8,11 @@ function check () {
|
|||||||
# md5sum -c $1.md5
|
# md5sum -c $1.md5
|
||||||
}
|
}
|
||||||
|
|
||||||
check fashion-mnist-784-euclidean.hdf5 http://vectors.erikbern.com/fashion-mnist-784-euclidean.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-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-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-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 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 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 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
|
check sift-128-euclidean.hdf5 http://vectors.erikbern.com/sift-128-euclidean.hdf5
|
||||||
@ -20,7 +20,7 @@ def read_benchmark_hdf5(file_path):
|
|||||||
|
|
||||||
|
|
||||||
dim = 128
|
dim = 128
|
||||||
TIMEOUT = 100
|
TIMEOUT = 200
|
||||||
|
|
||||||
|
|
||||||
def milvus_recall_test(host='127.0.0.1'):
|
def milvus_recall_test(host='127.0.0.1'):
|
||||||
|
|||||||
@ -16,7 +16,7 @@ def read_benchmark_hdf5(file_path):
|
|||||||
|
|
||||||
|
|
||||||
dim = 128
|
dim = 128
|
||||||
TIMEOUT = 100
|
TIMEOUT = 200
|
||||||
|
|
||||||
|
|
||||||
def search_test(host="127.0.0.1"):
|
def search_test(host="127.0.0.1"):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user