mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
411374abde
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> |
||
---|---|---|
.. | ||
cluster | ||
scripts | ||
standalone | ||
testcases | ||
__init__.py | ||
base.py | ||
check_healthy.sh | ||
cluster-values.yaml | ||
common.py | ||
conftest.py | ||
milvus_crd.yaml | ||
README.md | ||
requirements.txt | ||
run.sh | ||
standalone-values.yaml | ||
test.sh | ||
utils.sh |
Overview
To test deployment by docker-compose(Both standalone and cluster)
- re-install milvus to check data persistence
- Deploy Milvus
- Insert data
- Build index
- Search
- Stop Milvus
- Repeat from step #1
- upgrade milvus to check data compatibility
- Deploy Milvus (Previous Release)
- Insert data
- Search
- Stop Milvus
- Deploy Milvus (Latest Release/Build)
- Build index
- Search
Project structure
.
├── README.md
├── cluster # dir to deploy cluster
│ ├── logs # dir to save logs
│ └──docker-compose.yml
├── standalone # dir to deploy standalone
│ ├── logs # dir to save logs
│ └──docker-compose.yml
├── scripts
│ ├── action_after_upgrade.py
│ ├── action_before_upgrade.py
│ ├── action_reinstall.py
│ └── utils.py
├── cluster-values.yaml # config for helm deployment
├── test.sh # script to run a single task
└── run.sh # script to run all tasks
Usage
Make sure you have installed docker
,docker-compose
and pymilvus
!
For different version, you should modify the value of latest_tag
, latest_rc_tag
and Release
. Password of root is needed for deleting volumes dir.
single test task
$ bash test.sh -m ${Mode} -t ${Task} -p ${Password}
# Mode, the mode of milvus deploy. standalone or cluster"
# Task, the task type of test. reinstall or upgrade
# Password, the password of root"
run all tasks
$ bash run.sh -p ${Password}
# Password, the password of root"
Integrate deploy test into CI
Provides a way to periodically run docker-compose deployment tests through GitHub action:deploy-test
- Parallel testing for four deployment scenarios
- Upload logs to artifacts for further debug
- Email notification for test failure
- Support helm deployment tests
- Cover more detail information in email notification