[skip ci]Update SIMD compatibility test (#11589)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/11229/head
zhuwenxing 2021-11-10 20:36:46 +08:00 committed by GitHub
parent 2f29fc8ca6
commit a73a843c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 7 deletions

View File

@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
simd_types: ["sse4_2", "avx", "avx2", "avx512"]
simd_type: ["sse4_2", "avx", "avx2", "avx512"]
steps:
- name: Creating kind cluster
@ -38,13 +38,49 @@ jobs:
pip install -r requirements.txt
pip install --upgrade protobuf
- name: install milvus operator
timeout-minutes: 5
- name: install milvus operator and milvus cluster
shell: bash
working-directory: tests/python_client/customize
working-directory: tests/python_client/customize/template
run: |
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.3/cert-manager.yaml
sleep 30
kubectl get pods -n cert-manager
kubectl apply -f default.yaml
sleep 30s
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=cert-manager -n cert-manager --timeout=360s
kubectl get pods -A
#install milvus operator
kubectl apply -f https://raw.githubusercontent.com/milvus-io/milvus-operator/main/deploy/manifests/deployment.yaml
sleep 30s
kubectl wait --for=condition=Ready pod --all -n milvus-operator --timeout=360s
kubectl get pods -A
#install milvus cluster
# change simdType
sed -i "s/simdType.*/simdType\: ${{ matrix.simd_type }}/g" minimum.yaml
kubectl apply -f minimum.yaml
sleep 60s
# wait all pod running
kubectl get pods -A
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=my-release-minio --timeout=360s
kubectl get pods -A
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=my-release-etcd --timeout=360s
kubectl get pods -A
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=my-release-pulsar --timeout=360s
kubectl get pods -A
sleep 60s
kubectl get pods -A
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/instance=my-release --timeout=360s
sleep 30s
kubectl get pods -A
# port-forward
kubectl port-forward service/my-release-milvus 19530 >/dev/null 2>&1 &
sleep 20s
# check whether port-forward success
nc -vz 127.0.0.1 19530
- name: Run E2E test
shell: bash
working-directory: tests/python_client/chaos
run: |
python scripts/hello_milvus.py