mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for github action (#9028)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/9033/head
parent
f8f179088f
commit
98d449551e
|
@ -47,6 +47,7 @@ jobs:
|
||||||
helm search repo chaos-mesh
|
helm search repo chaos-mesh
|
||||||
kubectl create ns chaos-testing
|
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
|
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
|
sleep 60s
|
||||||
kubectl get po -n chaos-testing
|
kubectl get po -n chaos-testing
|
||||||
|
|
||||||
|
@ -55,17 +56,20 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
||||||
helm repo update
|
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
|
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
|
kubectl get pods -n chaos-testing
|
||||||
sleep 60s
|
sleep 60s
|
||||||
kubectl get pods -n chaos-testing
|
kubectl get pods -n chaos-testing
|
||||||
kubectl port-forward service/chaos-testing-milvus 19530 -n chaos-testing >/dev/null 2>&1 &
|
kubectl port-forward service/chaos-testing-milvus 19530 -n chaos-testing >/dev/null 2>&1 &
|
||||||
sleep 20s
|
sleep 20s
|
||||||
|
# check whether port-forward success
|
||||||
nc -vz 127.0.0.1 19530
|
nc -vz 127.0.0.1 19530
|
||||||
- name: Chaos Test
|
- name: Chaos Test
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/chaos
|
working-directory: tests/python_client/chaos
|
||||||
run: |
|
run: |
|
||||||
|
# replace chaos object
|
||||||
sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${{ matrix.pod }}_network_partition.yaml\'/g" constants.py
|
sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${{ matrix.pod }}_network_partition.yaml\'/g" constants.py
|
||||||
cat constants.py
|
cat constants.py
|
||||||
pytest -s -v test_chaos.py --host 127.0.0.1 --log-level=INFO --tb=no
|
pytest -s -v test_chaos.py --host 127.0.0.1 --log-level=INFO --tb=no
|
||||||
|
|
Loading…
Reference in New Issue