[skip e2e]Update reinstall test (#17996)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/18002/head
zhuwenxing 2022-07-01 16:36:19 +08:00 committed by GitHub
parent d2e26fd3f1
commit 53b716d075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 14 deletions

View File

@ -261,7 +261,7 @@ pipeline {
}
}
}
stage ('Restart Milvus') {
stage ('Uninstall Milvus') {
options {
timeout(time: 15, unit: 'MINUTES') // timeout on this stage
}
@ -269,11 +269,16 @@ pipeline {
container('main') {
dir ('tests/python_client/deploy') {
script {
if ("${params.milvus_mode}" == "standalone") {
sh "kubectl delete pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} --grace-period=0 --force"
sh "kubectl delete pod -l release=${env.RELEASE_NAME} --grace-period=0 --force"
sh "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"
sh "kubectl wait --for=condition=Ready pod -l release=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"
}
if ("${params.milvus_mode}" == "cluster") {
sh "helm uninstall ${env.RELEASE_NAME}"
}
}
}
}
}
@ -301,12 +306,11 @@ pipeline {
exit 1
}
}
if ("${params.milvus_mode}" == "standalone") {
sh "helm upgrade --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${params.new_image_repository} --set image.all.tag=${new_image_tag_modified} -f standalone-values.yaml"
}
if ("${params.milvus_mode}" == "cluster") {
sh "helm upgrade --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${params.new_image_repository} --set image.all.tag=${new_image_tag_modified} -f cluster-values.yaml"
sh "helm install --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${params.new_image_repository} --set image.all.tag=${new_image_tag_modified} -f cluster-values.yaml"
}
sh "sleep 60s"
// sh "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"

View File

@ -264,7 +264,7 @@ pipeline {
}
}
stage ('Restart Milvus') {
stage ('Uninstall Milvus') {
options {
timeout(time: 15, unit: 'MINUTES') // timeout on this stage
}
@ -272,11 +272,16 @@ pipeline {
container('main') {
dir ('tests/python_client/deploy') {
script {
if ("${params.milvus_mode}" == "standalone") {
sh "kubectl delete pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} --grace-period=0 --force"
sh "kubectl delete pod -l release=${env.RELEASE_NAME} --grace-period=0 --force"
sh "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"
sh "kubectl wait --for=condition=Ready pod -l release=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"
}
if ("${params.milvus_mode}" == "cluster") {
sh "helm uninstall ${env.RELEASE_NAME}"
}
}
}
}
}
@ -304,12 +309,11 @@ pipeline {
exit 1
}
}
if ("${params.milvus_mode}" == "standalone") {
sh "helm upgrade --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${params.new_image_repository} --set image.all.tag=${new_image_tag_modified} -f standalone-values.yaml"
}
if ("${params.milvus_mode}" == "cluster") {
sh "helm upgrade --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${params.new_image_repository} --set image.all.tag=${new_image_tag_modified} -f cluster-values.yaml"
sh "helm install --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${params.new_image_repository} --set image.all.tag=${new_image_tag_modified} -f cluster-values.yaml"
}
sh "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"
sh "kubectl wait --for=condition=Ready pod -l release=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"