yellow-shine 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
..
cluster 1089aae922 [skip e2e]Add docker-compose.yml for deploy test (#14106) 2 年之前
scripts 0c33ddb7c5 [skip e2e]Skip creating index when it was already created (#27849) 1 年之前
standalone 1089aae922 [skip e2e]Add docker-compose.yml for deploy test (#14106) 2 年之前
testcases 2ab57ca10c test: remove re-building index (#32534) 5 月之前
README.md 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
__init__.py dbbe6557ed [test]Refine deploy test (#18212) 2 年之前
base.py dbbe6557ed [test]Refine deploy test (#18212) 2 年之前
check_healthy.sh 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
cluster-values.yaml 88d426f390 enhance:[skip e2e]add some custom deploy config back (#31716) 6 月之前
common.py ef63e64ded Remove ANNOY index type (#23189) 1 年之前
conftest.py dbbe6557ed [test]Refine deploy test (#18212) 2 年之前
milvus_crd.yaml 3336b91ce6 test: add channel exclusive balance test and resource group test (#33093) 4 月之前
monitor_rolling_update.py e7d5196f68 [test]Wait index building complete before rolling update (#26377) 1 年之前
requirements.txt 5ddeec877a test: fix vulnerability of python lib (#32109) 6 月之前
run.sh 220941738d [skip e2e]Fix typo in script (#13801) 2 年之前
standalone-values.yaml 88d426f390 enhance:[skip e2e]add some custom deploy config back (#31716) 6 月之前
test.sh 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
utils.sh 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前

README.md

Overview

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
    1. Deploy Milvus (Previous Release)
    2. Insert data
    3. Search
    4. Stop Milvus
    5. Deploy Milvus (Latest Release/Build)
    6. Build index
    7. 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