[skip ci]Add comment for github action (#9028)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/9033/head
zhuwenxing 2021-10-01 20:51:51 +08:00 committed by GitHub
parent f8f179088f
commit 98d449551e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,7 @@ jobs:
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 --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock
# wait for all pod running
sleep 60s
kubectl get po -n chaos-testing
@ -55,17 +56,20 @@ jobs:
run: |
helm repo add milvus https://milvus-io.github.io/milvus-helm
helm repo update
# install milvus with latest image
helm install chaos-testing milvus/milvus --set cluster.enabled=true --set image.all.repository=milvusdb/milvus-dev --set image.all.tag=master-latest -n=chaos-testing
kubectl get pods -n chaos-testing
sleep 60s
kubectl get pods -n chaos-testing
kubectl port-forward service/chaos-testing-milvus 19530 -n chaos-testing >/dev/null 2>&1 &
sleep 20s
# check whether port-forward success
nc -vz 127.0.0.1 19530
- name: Chaos Test
shell: bash
working-directory: tests/python_client/chaos
run: |
# replace chaos object
sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${{ matrix.pod }}_network_partition.yaml\'/g" constants.py
cat constants.py
pytest -s -v test_chaos.py --host 127.0.0.1 --log-level=INFO --tb=no