[skip e2e]Update jenkinsfile for chaos and deploy test (#17630)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/17635/head
zhuwenxing 2022-06-20 11:16:13 +08:00 committed by GitHub
parent d70f483806
commit 0bb415f593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -214,7 +214,7 @@ pipeline {
}
if ("${params.chaos_task}" == "data-consist-test"){
def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim()
sh "pytest -s -v test_chaos_data_consist.py --host $host --log-cli-level=INFO --capture=no || echo "chaos test fail" "
sh "pytest -s -v test_chaos_data_consist.py --host $host --log-cli-level=INFO --capture=no || echo 'chaos test fail' "
}
echo "chaos test done"
sh "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"

View File

@ -217,7 +217,7 @@ pipeline {
}
if ("${params.chaos_task}" == "data-consist-test"){
def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim()
sh "pytest -s -v test_chaos_data_consist.py --host $host --log-cli-level=INFO --capture=no || echo "chaos test fail" "
sh "pytest -s -v test_chaos_data_consist.py --host $host --log-cli-level=INFO --capture=no || echo 'chaos test fail' "
}
echo "chaos test done"
sh "kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${env.RELEASE_NAME} -n ${env.NAMESPACE} --timeout=360s"

View File

@ -271,7 +271,7 @@ pipeline {
stage ('Second Milvus Deployment') {
options {
timeout(time: 15, unit: 'MINUTES') // timeout on this stage
timeout(time: 20, unit: 'MINUTES') // timeout on this stage
}
steps {
container('main') {
@ -297,8 +297,9 @@ pipeline {
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 "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"
sh "sleep 60s"
// 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"
sh "kubectl get pods -o wide|grep ${env.RELEASE_NAME}"
}
}