2021-09-03 09:15:51 +00:00
2021-09-13 12:10:57 +00:00
## Overview
2021-09-03 09:15:51 +00:00
To test deployment by docker-compose(Both standalone and cluster)
* re-install milvus to check data persistence
1. Deploy Milvus
2. Insert data
3. Build index
4. Search
5. Stop Milvus
6. Repeat from step #1
* upgrade milvus to check data compatibility
2022-01-05 06:33:25 +00:00
1. Deploy Milvus (Previous Release)
2021-09-03 09:15:51 +00:00
2. Insert data
3. Search
4. Stop Milvus
2022-01-05 06:33:25 +00:00
5. Deploy Milvus (Latest Release/Build)
2021-09-03 09:15:51 +00:00
6. Build index
7. Search
2021-09-13 12:10:57 +00:00
## Project structure
2021-09-03 09:15:51 +00:00
```
.
├── 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
2021-10-25 14:34:20 +00:00
├── cluster-values.yaml # config for helm deployment
2021-09-03 09:15:51 +00:00
├── test.sh # script to run a single task
└── run.sh # script to run all tasks
```
2021-09-13 12:10:57 +00:00
## Usage
2021-09-03 09:15:51 +00:00
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
$ 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
$ bash run.sh -p ${Password}
# Password, the password of root"
2021-09-13 12:10:57 +00:00
```
## Integrate deploy test into CI
Provides a way to periodically run docker-compose deployment tests through GitHub action: [deploy-test](https://github.com/milvus-io/milvus/blob/master/.github/workflows/deploy-test.yaml)
- [x] Parallel testing for four deployment scenarios
- [x] Upload logs to artifacts for further debug
- [x] Email notification for test failure
2021-10-25 14:34:20 +00:00
- [x] Support helm deployment tests
2021-10-07 13:22:43 +00:00
- [x] Cover more detail information in email notification