Files
zhuwenxingandGitHub dcd78c17a7 test: upgrade 2.6 test runtime to Python 3.12 (#49940)
## 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>
2026-05-21 10:50:29 +08:00
..
2022-07-11 17:08:25 +08:00
2022-07-11 17:08:25 +08:00
2023-04-04 16:30:27 +08:00
2021-12-20 19:52:51 +08:00

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"