[skip ci]Add timeout for pytest command (#11082)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2021-11-02 16:26:30 +08:00 committed by GitHub
parent 54be3c15bf
commit f5730a3d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ jobs:
sed -i "s/TESTS_CONFIG_LOCATION =.*/TESTS_CONFIG_LOCATION = \'chaos_objects\/pod_kill\/'/g" constants.py
sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${{ matrix.pod }}_pod_kill.yaml\'/g" constants.py
cat constants.py
pytest -s -v test_chaos.py --host 127.0.0.1 || echo "chaos test failed"
timeout 14m pytest -s -v test_chaos.py --host 127.0.0.1 || echo "chaos test failed"
- name: Milvus E2E Test
timeout-minutes: 5
@ -126,7 +126,7 @@ jobs:
shell: bash
working-directory: tests/python_client/chaos
run: |
pytest -s -v test_chaos_data_consist.py --host 127.0.0.1 || echo "data consist test failed"
timeout 4m pytest -s -v test_chaos_data_consist.py --host 127.0.0.1 || echo "data consist test failed"
- name: Milvus E2E Test
timeout-minutes: 5