mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 14:35:27 +08:00
[skip ci]Deploy new milvus for data consist test if previous step failed (#10977)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
70188990dc
commit
ed630432f1
21
.github/workflows/pod-kill-chaos-test.yaml
vendored
21
.github/workflows/pod-kill-chaos-test.yaml
vendored
@ -100,7 +100,26 @@ jobs:
|
||||
nc -vz 127.0.0.1 19530
|
||||
|
||||
python scripts/hello_milvus.py
|
||||
|
||||
|
||||
- name: Deploy Milvus Again If Previous E2E Test Failed
|
||||
timeout-minutes: 15
|
||||
if: ${{ failure() }}
|
||||
shell: bash
|
||||
working-directory: tests/python_client/chaos
|
||||
run: |
|
||||
bash scripts/uninstall_milvus.sh
|
||||
helm install --wait --timeout 360s milvus-chaos milvus/milvus -f cluster-values.yaml -n=chaos-testing
|
||||
kubectl get pods -n chaos-testing
|
||||
sleep 20s
|
||||
kubectl get pods -n chaos-testing
|
||||
ps aux|grep forward|grep -v grep|awk '{print $2}'|xargs kill -9
|
||||
kubectl port-forward service/milvus-chaos 19530 -n chaos-testing >/dev/null 2>&1 &
|
||||
sleep 20s
|
||||
# check whether port-forward success
|
||||
nc -vz 127.0.0.1 19530
|
||||
# check whether milvus server is healthy
|
||||
python scripts/hello_milvus.py
|
||||
|
||||
- name: Data Consist Test
|
||||
timeout-minutes: 5
|
||||
if: ${{ always() }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user