mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Add timeout for test case (#14439)
Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
parent
123c926a90
commit
e8e7f46705
@ -3,7 +3,7 @@
|
||||
int total_timeout_minutes = 120
|
||||
int e2e_timeout_seconds = 70 * 60
|
||||
def imageTag=''
|
||||
|
||||
int case_timeout_seconds = 10 * 60
|
||||
pipeline {
|
||||
options {
|
||||
timestamps()
|
||||
@ -151,6 +151,7 @@ pipeline {
|
||||
MILVUS_HELM_RELEASE_NAME="${release_name}" \
|
||||
MILVUS_CLUSTER_ENABLED="${clusterEnabled}" \
|
||||
TEST_TIMEOUT="${e2e_timeout_seconds}" \
|
||||
CASE_TIMEOUT="${case_timeout_seconds}"\
|
||||
./ci_e2e.sh "-n 6 -x --tags L0 L1"
|
||||
"""
|
||||
} else {
|
||||
|
@ -62,10 +62,12 @@ if [ ! -d "${CI_LOG_PATH}" ]; then
|
||||
fi
|
||||
trace "prepare e2e test" install_pytest_requirements
|
||||
|
||||
CASE_TIMEOUT=${CASE_TIMEOUT:-600}
|
||||
|
||||
if [[ -n "${TEST_TIMEOUT:-}" ]]; then
|
||||
timeout "${TEST_TIMEOUT}" pytest --host ${MILVUS_SERVICE_NAME} --port ${MILVUS_SERVICE_PORT} \
|
||||
--html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-}
|
||||
--timeout ${CASE_TIMEOUT} --html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-}
|
||||
else
|
||||
pytest --host ${MILVUS_SERVICE_NAME} --port ${MILVUS_SERVICE_PORT} \
|
||||
--html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-}
|
||||
--timeout ${CASE_TIMEOUT} --html=${CI_LOG_PATH}/report.html --self-contained-html ${@:-}
|
||||
fi
|
Loading…
Reference in New Issue
Block a user