Files
milvus/scripts
XuanYang-cn 720983fe5d test: add Scalar Index CMEK positive matrix (#52816)
## Summary

- Add the positive Scalar Index CMEK matrix for engines 2, 3, and 5
across V2/V3 artifact formats.
- Cover 17 cells with repository-owned Go/C++ CipherPlugin fixtures,
authoritative object locators, independent V2/V3 envelope inspectors,
release/load checks, and type-specific query oracles.
- Verify database EZ ID inheritance and configured root-key material
propagation: the strict fixtures now fail when an EZ key was not
delivered, and the C++ fixture derives encryption keys from the exact
forwarded root key.
- Keep vector-index setup in every collection with an explicit FLAT/L2
index.
- Keep `integration-test` as the aggregate CI gate: it depends on the
existing non-CMEK scope and the dedicated CMEK scope, while only the
CMEK target builds its fixture plugins.
- Group the campaign tests by suite in the V2, V3, and FMINDEX suite
files.

## Review follow-up

- Complete the ASF license headers in all new source and CMake files.
- Remove the unused text-log inspector wrapper.
- Link the independent V3 inspector to the format design and production
reader/writer sources to make drift reviewable without coupling the
oracle to production decoding.
- Keep large V2 EZ ID parsing local to the inspector with json.Number;
this PR does not modify production descriptor decoding.
- Split the default integration gate into `integration-test-base` and
`integration-test-cmek`, exclude only the top-level CMEK package from
the base run, and append CMEK coverage to the same `it_coverage.txt`
only when invoked through the aggregate target.

## Verification

- Controlled full Milvus build — passed after merging current master.
- `make integration-test-cmek` — 23 tests passed in 3m02s.
- CMEK fixture build regression — passed.
- Target graph dry-run — the aggregate runs base before CMEK with append
enabled, while standalone CMEK resets the single coverage file.
- Strict Go fixture unit test — passed after reproducing the fallback
gap.
- Scoped V2/V3 inspector tests — passed.
- `make fmt` — passed.
- Controlled static-check — 0 issues in core, pkg, client, and
go_client.
- All commits are signed off.

issue: #52815

---------

Signed-off-by: yangxuan <[email protected]>
2026-09-03 01:25:29 +08:00
..
2021-11-16 15:41:11 +08:00
2023-11-01 11:40:15 +08:00

Compile and install milvus cluster

Environment

OS: Ubuntu 20.04
go:1.21
cmake: >=3.18
gcc: >= 11

Install dependencies

Install compile dependencies

$ sudo apt install -y g++ gcc make libssl-dev zlib1g-dev libboost-regex-dev \
    libboost-program-options-dev libboost-system-dev libboost-filesystem-dev \
    libboost-serialization-dev python3-dev libboost-python-dev libcurl4-openssl-dev gfortran libtbb-dev
$ export GO111MODULE=on
$ go get github.com/golang/protobuf/[email protected]

OpenBLAS is managed by Conan for C++ core builds. Install the compiler toolchain and Fortran runtime needed by Conan, then run the normal third-party build step.

Compile

Generate the go files from proto file

$ make check-proto-product

Check code specifications

$ make verifiers

Compile milvus

$ make milvus

Install docker-compose

refer: https://docs.docker.com/compose/install/

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
$ docker-compose --version
$ docker compose --version

Start service

Start third-party service:

$ cd [milvus project path]/deployments/docker/cluster
$ docker-compose up -d
$ docker compose up -d

Start milvus cluster:

$ cd [milvus project path]
$ ./scripts/start_cluster.sh

Run unittest

Run all unittest including go and cpp cases:

$ make unittest

You also can run go unittest only:

$ make test-go

Run cpp unittest only:

$ make test-cpp

Run code coverage

Run code coverage including go and cpp:

$ make codecov

You also can run go code coverage only:

$ make codecov-go

Run cpp code coverage only:

$ make codecov-cpp