jaime ef1832ff9c enhance: enable manual compaction for collections without indexes (#36577) 2 周之前
..
alias c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
balance 2c9bb4dfa3 feat: Support stats task to sort segment by PK (#35054) 1 月之前
bloomfilter c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
channel_balance 2c9bb4dfa3 feat: Support stats task to sort segment by PK (#35054) 1 月之前
compaction ef1832ff9c enhance: enable manual compaction for collections without indexes (#36577) 2 周之前
coorddownsearch d29e01e284 fix: port listen racing in mix or standalone mode (#36442) 3 周之前
coordrecovery d29e01e284 fix: port listen racing in mix or standalone mode (#36442) 3 周之前
crossclusterrouting 2c9bb4dfa3 feat: Support stats task to sort segment by PK (#35054) 1 月之前
datanode d29e01e284 fix: port listen racing in mix or standalone mode (#36442) 3 周之前
expression c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
getvector c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
hellomilvus c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
httpserver 031ee6f155 enhance: support httpv1/v2 throttle and add it for httpV2(#35350) (#35470) 2 月之前
hybridsearch 9d0aa5c202 fix: empty result when having only one subReq(#36098) (#36128) 1 月之前
import 89397d1e66 enhance: adjust parquet reader type check with null type (#36266) 1 月之前
indexstat c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
insert c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
jsonexpr c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
levelzero 0e7877d413 fix: [skip e2e]unstable l0 it (#35612) 1 月之前
materialized_view c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
null_data 21b135c7c2 fix: not append valid data when transfer to insert record (#36027) 1 月之前
ops e09dc3be58 enhance: Mark query node as read only after suspend (#35492) 2 月之前
partialsearch c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
partitionkey c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
querynode c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
rangesearch c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
ratelimit 8b043f58dc fix: Fix DB limiter nodes are mistakenly cleaned up (#35991) 1 月之前
rbac 3cd0b26285 enhance: Enable dynamic update loaded collection's replica (#35822) 3 周之前
refreshconfig c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
replicas 3cd0b26285 enhance: Enable dynamic update loaded collection's replica (#35822) 3 周之前
rg c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
rollingupgrade c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
sealpolicies dfda9f0478 enhance: Add depguard rules to ban deprecated proto lib (#35140) 2 月之前
sparse f4a91e135b enhance: Allow empty sparse row (#34700) 2 月之前
streaming 2c9bb4dfa3 feat: Support stats task to sort segment by PK (#35054) 1 月之前
target d29e01e284 fix: port listen racing in mix or standalone mode (#36442) 3 周之前
upsert 6106a48acb fix: upsert result use the previous pk (#34672) 2 月之前
OWNERS 5819e98ebb Trigger main workflow when integration test changed (#24020) 1 年之前
README.md 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
meta_watcher.go c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
meta_watcher_test.go c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
minicluster_v2.go d29e01e284 fix: port listen racing in mix or standalone mode (#36442) 3 周之前
querynodev2_test.go 5aedbd0af4 fix: Repair integration test framework (#28308) 11 月之前
suite.go c0317ce672 fix: Wait check node id goroutine in case of data race (#36302) 1 月之前
util_collection.go c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
util_index.go 2fdf1a6e76 feat: [Sparse Float Vector] added some integration tests (#31062) 6 月之前
util_insert.go ba6db117e3 enhance: add some integration test in null (#35599) 2 月之前
util_query.go c45f38aa61 enhance: Update protobuf-go to protobuf-go v2 (#34394) 2 月之前
util_schema.go 2fdf1a6e76 feat: [Sparse Float Vector] added some integration tests (#31062) 6 月之前

README.md

Integration test

This folder contains the integration test for Milvus components.

How to run integration test locally

Integration test still need some thirdparty components to start:

cd [milvus-folder]/deployments/docker/dev && docker compose up -d

Run following script to start the full integration test:

cd [milvus-folder]
make milvus # milvus needs to be compiled to make cpp build ready
./scripts/run_intergration_test.sh

If you want to run single test case, you could execute command like this example

# mq, etcd, minio ready before
cd [milvus-folder]
source scripts/setenv.sh
cd tests/integration/[testcase-folder]/
go test -run "$testCaseName^" -testify.m "$subTestifyCaseName^" -race -v

Recommended coding style for add new cases

Using suite

MiniClusterandMiniClusterSuite` provides lots of comment preset tool function to execute intergration test.

It is recommend to add a new test with testify/suite


import (
    // ...
    "github.com/milvus-io/milvus/tests/integration"
)

type NewSuite struct {
    integration.MiniClusterSuite
}


// Setups and teardowns, optional if no custom logic needed
// example to suite setup & teardown, same logic applies to test setup&teardown

func (s *NewSuite) SetupSuite() {
    s.MiniClusterSuite.SetupSuite()
    // customized setup
}

func (s *NewSuite) TearDownSuite() {
    s.MiniClusterSuite.TearDownSuite()
    // customized teardown
}

New folder for each new scenario

It's a known issue that integration test cases run in same process might affect due to some singleton component not fully cleaned.

As a temp solution, test cases are separated into different packages to run independently.