diff --git a/.github/workflows/deploy-test.yaml b/.github/workflows/deploy-test.yaml index 6640c414e4..d865b12810 100644 --- a/.github/workflows/deploy-test.yaml +++ b/.github/workflows/deploy-test.yaml @@ -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 diff --git a/tests/python_client/assets/ann_hdf5/download.sh b/tests/python_client/assets/ann_hdf5/download.sh index 423d6863dd..c3b9905dc6 100644 --- a/tests/python_client/assets/ann_hdf5/download.sh +++ b/tests/python_client/assets/ann_hdf5/download.sh @@ -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 \ No newline at end of file diff --git a/tests/python_client/deploy/scripts/first_recall_test.py b/tests/python_client/deploy/scripts/first_recall_test.py index 3ea064b267..5a0ad166d8 100644 --- a/tests/python_client/deploy/scripts/first_recall_test.py +++ b/tests/python_client/deploy/scripts/first_recall_test.py @@ -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'): diff --git a/tests/python_client/deploy/scripts/second_recall_test.py b/tests/python_client/deploy/scripts/second_recall_test.py index 7a1555655a..2c4a6c255b 100644 --- a/tests/python_client/deploy/scripts/second_recall_test.py +++ b/tests/python_client/deploy/scripts/second_recall_test.py @@ -16,7 +16,7 @@ def read_benchmark_hdf5(file_path): dim = 128 -TIMEOUT = 100 +TIMEOUT = 200 def search_test(host="127.0.0.1"):