mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 18:25:44 +00:00
## What's changed - Upgrade the 2.6 test Python runtime to Python 3.12 via tests/.python-version, Dockerfiles, and CI shell env activation. - Update Python client and REST v2 test dependencies for Python 3.12, including numpy 2.x compatibility. - Adapt test data generation and assertions for numpy 2.x API/overflow behavior. - Remove unused GitHub workflows and stale README links following the master cleanup. ## Related master PRs pr: #49378 pr: #49571 ## Verification - git diff --check - bash -n tests/scripts/python-env.sh tests/scripts/ci-util.sh tests/scripts/ci-util-4am.sh tests/scripts/ci_e2e.sh tests/scripts/ci_e2e_4am.sh tests/scripts/ci_e2e_4am_without_restful.sh tests/scripts/ci_e2e_with_restful.sh - Parsed remaining .github/workflows/*.{yaml,yml} - Python 3.12 pip check for python_client and restful_client_v2 environments - py_compile for changed Python test files - pytest --collect-only for representative python_client and restful_client_v2 suites Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
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"