mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 14:35:27 +08:00
[skip ci]Update pod failure chaos test (#13195)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
daf252c74a
commit
0337c2c42e
21
.github/workflows/pod-failure-chaos-test.yaml
vendored
21
.github/workflows/pod-failure-chaos-test.yaml
vendored
@ -100,6 +100,17 @@ jobs:
|
||||
kubectl get pod -n chaos-testing
|
||||
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${{ env.RELEASE }} -n chaos-testing --timeout=360s
|
||||
kubectl wait --for=condition=Ready pod -l release=${{ env.RELEASE }} -n chaos-testing --timeout=360s
|
||||
kubectl get pod -n chaos-testing
|
||||
ps aux|grep forward|grep -v grep|awk '{print $2}'|xargs kill -9
|
||||
kubectl port-forward service/${{ env.RELEASE }}-milvus 19530 -n chaos-testing >/dev/null 2>&1 &
|
||||
|
||||
sleep 20s
|
||||
nc -vz 127.0.0.1 19530
|
||||
|
||||
pytest -s -v testcases/test_e2e.py --host 127.0.0.1 --log-cli-level=INFO --capture=no
|
||||
python chaos/scripts/hello_milvus.py --host 127.0.0.1
|
||||
sleep 20s
|
||||
nc -vz 127.0.0.1 19530
|
||||
python scripts/hello_milvus.py
|
||||
|
||||
- name: Data Consist Test
|
||||
@ -119,7 +130,15 @@ jobs:
|
||||
kubectl get pod -n chaos-testing
|
||||
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=${{ env.RELEASE }} -n chaos-testing --timeout=360s
|
||||
kubectl wait --for=condition=Ready pod -l release=${{ env.RELEASE }} -n chaos-testing --timeout=360s
|
||||
python scripts/hello_milvus.py
|
||||
kubectl get pod -n chaos-testing
|
||||
ps aux|grep forward|grep -v grep|awk '{print $2}'|xargs kill -9
|
||||
kubectl port-forward service/${{ env.RELEASE }}-milvus 19530 -n chaos-testing >/dev/null 2>&1 &
|
||||
|
||||
sleep 20s
|
||||
nc -vz 127.0.0.1 19530
|
||||
|
||||
pytest -s -v testcases/test_e2e.py --host 127.0.0.1 --log-cli-level=INFO --capture=no
|
||||
python chaos/scripts/hello_milvus.py --host 127.0.0.1
|
||||
|
||||
- name: Export logs
|
||||
if: ${{ always() }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user