add read-write mode in CI (#4278)

Co-authored-by: zw <zw@milvus.io>
pull/4310/head
del-zhenwu 2020-11-25 16:33:40 +08:00 committed by GitHub
parent e04194313a
commit 63758f40da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

View File

@ -85,5 +85,34 @@ timeout(time: 150, unit: 'MINUTES') {
${WORKSPACE}/${env.DEV_TEST_ARTIFACTS}/milvus_${BINARY_VERSION}_sqlite_dev_test.log"
sh "${pytestCMD_sqlite}"
}
// read-write mode test
MPLModule('Cleanup Single Node DevTest')
retry(3) {
try {
dir ("milvus-helm/charts/milvus") {
if (fileExists('test.yaml')) {
deleteDir('test.yaml')
}
writeFile file: 'test.yaml', text: "extraConfiguration:\n engine:\n build_index_threshold: 1000\n max_partition_num: 256"
def helmCMD_mysql = "${helmCMD}" + " --set cluster.enabled=true -f ci/db_backend/mysql_${BINARY_VERSION}_values.yaml ${env.HELM_RELEASE_NAME} ."
sh "${helmCMD_mysql}"
}
} catch (exc) {
sh script: helmStatusCMD, returnStatus: true
sh script: "helm uninstall -n milvus ${env.HELM_RELEASE_NAME} && sleep 1m", returnStatus: true
throw exc
}
}
dir ("tests/milvus_python_test") {
def pytestCMD_mysql = "pytest . \
--level=1 \
-n 4 \
--alluredir=\"test_out/dev/cluster\" \
--ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local \
--service ${env.HELM_RELEASE_NAME} >> \
${WORKSPACE}/${env.DEV_TEST_ARTIFACTS}/milvus_${BINARY_VERSION}_cluster_dev_test.log"
sh "${pytestCMD_mysql}"
}
}
}