From 98d449551e6b88f34983061567a6fefc31ad06b3 Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Fri, 1 Oct 2021 20:51:51 +0800 Subject: [PATCH] [skip ci]Add comment for github action (#9028) Signed-off-by: zhuwenxing --- .github/workflows/network-partition-chaos-test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/network-partition-chaos-test.yaml b/.github/workflows/network-partition-chaos-test.yaml index 4d2dead015..ae7aa4dbcc 100644 --- a/.github/workflows/network-partition-chaos-test.yaml +++ b/.github/workflows/network-partition-chaos-test.yaml @@ -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