mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
[skip e2e]Add deploy test for kafka version milvus (#16521)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
289e468a7a
commit
9aa557f8a1
49
.github/workflows/deploy-test.yaml
vendored
49
.github/workflows/deploy-test.yaml
vendored
@ -80,7 +80,7 @@ jobs:
|
|||||||
pip install -r requirements.txt --trusted-host https://test.pypi.org
|
pip install -r requirements.txt --trusted-host https://test.pypi.org
|
||||||
|
|
||||||
- name: First Milvus deployment
|
- name: First Milvus deployment
|
||||||
timeout-minutes: 60
|
timeout-minutes: 15
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy/${{ matrix.mode }}
|
working-directory: tests/python_client/deploy/${{ matrix.mode }}
|
||||||
run: |
|
run: |
|
||||||
@ -97,7 +97,7 @@ jobs:
|
|||||||
docker-compose ps -a
|
docker-compose ps -a
|
||||||
sleep 10s
|
sleep 10s
|
||||||
- name: Run first test
|
- name: Run first test
|
||||||
timeout-minutes: 60
|
timeout-minutes: 15
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy/scripts
|
working-directory: tests/python_client/deploy/scripts
|
||||||
run: |
|
run: |
|
||||||
@ -108,7 +108,7 @@ jobs:
|
|||||||
python3 action_before_upgrade.py
|
python3 action_before_upgrade.py
|
||||||
fi
|
fi
|
||||||
- name: Second Milvus deployment
|
- name: Second Milvus deployment
|
||||||
timeout-minutes: 60
|
timeout-minutes: 15
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy/${{ matrix.mode }}
|
working-directory: tests/python_client/deploy/${{ matrix.mode }}
|
||||||
run: |
|
run: |
|
||||||
@ -168,8 +168,15 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
mq_type: [pulsar, kafka]
|
||||||
mode: [standalone,cluster]
|
mode: [standalone,cluster]
|
||||||
task: [reinstall,upgrade]
|
task: [reinstall,upgrade]
|
||||||
|
exclude:
|
||||||
|
- mq_type: kafka
|
||||||
|
mode: standalone
|
||||||
|
- mq_type: kafka
|
||||||
|
task: upgrade
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Creating kind cluster
|
- name: Creating kind cluster
|
||||||
@ -199,8 +206,17 @@ jobs:
|
|||||||
# update pymilvus to latest version
|
# update pymilvus to latest version
|
||||||
pip install -i https://test.pypi.org/simple/ pymilvus==2.0.0rc10.dev2
|
pip install -i https://test.pypi.org/simple/ pymilvus==2.0.0rc10.dev2
|
||||||
|
|
||||||
|
- name: Modify chart value config
|
||||||
|
timeout-minutes: 1
|
||||||
|
shell: bash
|
||||||
|
working-directory: tests/python_client/deploy
|
||||||
|
run: |
|
||||||
|
yq -i ".kafka.enabled = false" cluster-values.yaml
|
||||||
|
yq -i ".pulsar.enabled = false" cluster-values.yaml
|
||||||
|
yq -i ".${{ matrix.mq_type }}.enabled = true" cluster-values.yaml
|
||||||
|
|
||||||
- name: First Milvus Deployment
|
- name: First Milvus Deployment
|
||||||
timeout-minutes: 60
|
timeout-minutes: 15
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy
|
working-directory: tests/python_client/deploy
|
||||||
run: |
|
run: |
|
||||||
@ -237,11 +253,20 @@ jobs:
|
|||||||
# check whether port-forward success
|
# check whether port-forward success
|
||||||
nc -vz 127.0.0.1 19530
|
nc -vz 127.0.0.1 19530
|
||||||
|
|
||||||
|
- name: Run first test
|
||||||
|
timeout-minutes: 15
|
||||||
|
shell: bash
|
||||||
|
working-directory: tests/python_client/deploy
|
||||||
|
run: |
|
||||||
# first test
|
# first test
|
||||||
if [ ${{ matrix.task }} == "reinstall" ]; then python scripts/action_before_reinstall.py; fi
|
if [ ${{ matrix.task }} == "reinstall" ]; then python scripts/action_before_reinstall.py; fi
|
||||||
if [ ${{ matrix.task }} == "upgrade" ]; then python scripts/action_before_upgrade.py; fi
|
if [ ${{ matrix.task }} == "upgrade" ]; then python scripts/action_before_upgrade.py; fi
|
||||||
|
|
||||||
|
- name: Restart Milvus
|
||||||
|
timeout-minutes: 15
|
||||||
|
shell: bash
|
||||||
|
working-directory: tests/python_client/deploy
|
||||||
|
run: |
|
||||||
# uninstall milvus
|
# uninstall milvus
|
||||||
if [[ $(date +%w) -eq 0 || $(data +%w) -eq 6 ]]; then sleep 1800s; fi
|
if [[ $(date +%w) -eq 0 || $(data +%w) -eq 6 ]]; then sleep 1800s; fi
|
||||||
if [ ${{ matrix.mode }} == "standalone" ];
|
if [ ${{ matrix.mode }} == "standalone" ];
|
||||||
@ -251,8 +276,9 @@ jobs:
|
|||||||
else
|
else
|
||||||
helm uninstall deploy-testing
|
helm uninstall deploy-testing
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Seconde Milvus Deployment
|
- name: Seconde Milvus Deployment
|
||||||
timeout-minutes: 60
|
timeout-minutes: 15
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy
|
working-directory: tests/python_client/deploy
|
||||||
run: |
|
run: |
|
||||||
@ -267,6 +293,11 @@ jobs:
|
|||||||
# check whether port-forward success
|
# check whether port-forward success
|
||||||
nc -vz 127.0.0.1 19530
|
nc -vz 127.0.0.1 19530
|
||||||
|
|
||||||
|
- name: Run second test
|
||||||
|
timeout-minutes: 15
|
||||||
|
shell: bash
|
||||||
|
working-directory: tests/python_client/deploy
|
||||||
|
run: |
|
||||||
# second test
|
# second test
|
||||||
if [ ${{ matrix.task }} == "reinstall" ]; then python scripts/action_after_reinstall.py; fi
|
if [ ${{ matrix.task }} == "reinstall" ]; then python scripts/action_after_reinstall.py; fi
|
||||||
if [ ${{ matrix.task }} == "upgrade" ]; then python scripts/action_after_upgrade.py; fi
|
if [ ${{ matrix.task }} == "upgrade" ]; then python scripts/action_after_upgrade.py; fi
|
||||||
@ -286,9 +317,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: helm-log-${{ matrix.mode }}-${{ matrix.task }}
|
name: helm-log-${{ matrix.mode }}-${{ matrix.task }}
|
||||||
path: tests/python_client/deploy/k8s_logs
|
path: tests/python_client/deploy/k8s_logs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -12,6 +12,11 @@ minio:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
||||||
|
kafka:
|
||||||
|
enabled: false
|
||||||
|
replicaCount: 3
|
||||||
|
|
||||||
pulsar:
|
pulsar:
|
||||||
enabled: true
|
enabled: true
|
||||||
extra:
|
extra:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user