diff --git a/.github/workflows/deploy-test.yaml b/.github/workflows/deploy-test.yaml index b18185725e076eae6b9ca7dee345613399370213..725ff9dbfa9156639f25ea9d453eabb3489d251f 100644 --- a/.github/workflows/deploy-test.yaml +++ b/.github/workflows/deploy-test.yaml @@ -129,11 +129,11 @@ jobs: # if the task is upgrade, install milvus with latest rc image in repo milvusdb/milvus if [ ${{ matrix.task }} == "upgrade" ] && [ ${{ matrix.mode }} == "cluster" ]; then echo "task: ${{ matrix.task }} mode: ${{ matrix.mode }}"; - helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.repository=milvusdb/milvus -f cluster-values.yaml; + helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.tag=master-20211225-6177d46 -f cluster-values.yaml; fi if [ ${{ matrix.task }} == "upgrade" ] && [ ${{ matrix.mode }} == "standalone" ]; then echo "task: ${{ matrix.task }} mode: ${{ matrix.mode }}"; - helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.repository=milvusdb/milvus -f standalone-values.yaml; + helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.tag=master-20211225-6177d46 -f standalone-values.yaml; fi kubectl get pods @@ -151,15 +151,20 @@ jobs: # uninstall milvus if [[ $(date +%w) -eq 0 || $(data +%w) -eq 6 ]]; then sleep 1800s; fi - helm uninstall deploy-testing - + if [ ${{ matrix.mode }} == "standalone" ]; + then + kubectl delete pod -l app.kubernetes.io/instance=deploy-testing --grace-period=0 --force; + kubectl delete pod -l release=deploy-testing --grace-period=0 --force; + else + helm uninstall deploy-testing + fi - name: Seconde Milvus Deployment timeout-minutes: 60 shell: bash working-directory: tests/python_client/deploy run: | if [ ${{ matrix.mode }} == "cluster" ]; then helm install --wait --timeout 720s deploy-testing milvus/milvus -f cluster-values.yaml; fi - if [ ${{ matrix.mode }} == "standalone" ]; then helm install --wait --timeout 720s deploy-testing milvus/milvus -f standalone-values.yaml; fi + if [ ${{ matrix.mode }} == "standalone" ]; then helm upgrade --wait --timeout 720s deploy-testing milvus/milvus -f standalone-values.yaml; fi kubectl get pods sleep 20s kubectl get pods diff --git a/tests/python_client/deploy/test.sh b/tests/python_client/deploy/test.sh index 2318474f984e8169972fa5d716ba198d98eaee8a..1986a4ffa68abea7dc4c7f3fd8aef6f8b3cb6fe3 100644 --- a/tests/python_client/deploy/test.sh +++ b/tests/python_client/deploy/test.sh @@ -141,7 +141,7 @@ fi if [ "$Task" == "upgrade" ]; then printf "start to deploy previous rc tag milvus\n" - replace_image_tag "master-20211216-7e56f08" + replace_image_tag "master-20211225-6177d46" # replace previous rc tag with master-20211225-6177d46 fi cat docker-compose.yml|grep milvusdb