未验证 提交 25476689 编写于 作者: Z zhuwenxing 提交者: GitHub

[skip e2e]Update latest release version and fix check healthy script (#16464)

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 442c73a5
......@@ -16,7 +16,7 @@ on:
previous_release_version:
description: The previous release version to use for the deploy test
required: true
default: 'v2.0.1'
default: 'v2.0.2'
new_image_repo:
description: The image repository name to use for the deploy test
......@@ -56,7 +56,7 @@ jobs:
env:
DEFAULT_OLD_IMAGE_REPO: "milvusdb/milvus"
DEFAULT_OLD_IMAGE_TAG: "latest"
DEFAULT_PREVIOUS_RELEASE_VERSION: "v2.0.1"
DEFAULT_PREVIOUS_RELEASE_VERSION: "v2.0.2"
DEFAULT_NEW_IMAGE_REPO: "milvusdb/milvus-dev"
DEFAULT_NEW_IMAGE_TAG: "master-latest"
run: |
......@@ -222,11 +222,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.tag=master-20220125-6336e232 -f cluster-values.yaml;
helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.repository=milvusdb/milvus --set image.all.tag=latest -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.tag=master-20220125-6336e232 -f standalone-values.yaml;
helm install --wait --timeout 720s deploy-testing milvus/milvus --set image.all.repository=milvusdb/milvus --set image.all.tag=latest -f standalone-values.yaml;
fi
kubectl get pods
......
......@@ -17,8 +17,8 @@ function check_healthy {
# if time is greater than 300s, the condition still not satisfied, we regard it as a failure
if [ $time_cnt -gt 300 ];
then
printf "timeout,there are some issue with deployment!"
error_exit
printf "timeout,there are some issues with deployment!"
exit 1
fi
cnt=$(docker-compose ps | grep -E "running|Running|Up|up" | wc -l)
healthy=$(docker-compose ps | grep "healthy" | wc -l)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册