mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Update jenkinsfile for chaos and deploy test (#17630)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/17635/head
parent
d70f483806
commit
0bb415f593
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue