未验证 提交 98d44955 编写于 作者: Z zhuwenxing 提交者: GitHub

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

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 f8f17908
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册