Skip to content

Commit

Permalink
[skip ci] Update chaos test github action (milvus-io#8365)
Browse files Browse the repository at this point in the history
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
  • Loading branch information
zhuwenxing authored Sep 23, 2021
1 parent 20da8c2 commit 080e214
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/chaos-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pod: [datacoord, datanode, indexcoord, indexnode, proxy, pulsar, querycoord, querynode, rootcoord]
pod: [datacoord, datanode, indexcoord, indexnode, proxy, pulsar, querycoord, querynode, rootcoord, etcd, minio]

steps:

Expand Down Expand Up @@ -39,9 +39,10 @@ jobs:
helm repo add chaos-mesh https://charts.chaos-mesh.org
helm search repo chaos-mesh
kubectl create ns chaos-testing
helm install chaos-mesh chaos-mesh/chaos-mesh -n=chaos-testing --version v2.0.1
helm install chaos-mesh chaos-mesh/chaos-mesh -n=chaos-testing --version v2.0.1 --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock
sleep 60s
kubectl get po -n chaos-testing
- name: Deploy Milvus
shell: bash
run: |
Expand All @@ -62,8 +63,4 @@ jobs:
pip install --upgrade protobuf
sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${{ matrix.pod }}_network_partition.yaml\'/g" constants.py
cat constants.py
# kubectl apply -f chaos_objects/chaos_${{ matrix.pod }}_network_partition.yaml
# kubectl get NetworkChaos -n chaos-testing
# sleep 10s
# kubectl describe NetworkChaos test-${{ matrix.pod }}-network-partition -n chaos-testing
pytest -s -v test_chaos.py --host 127.0.0.1 --log-cli-level=INFO

0 comments on commit 080e214

Please sign in to comment.