jaime ef1832ff9c enhance: enable manual compaction for collections without indexes (#36577) | 2 weeks ago | |
---|---|---|
.. | ||
alias | 2 months ago | |
balance | 1 month ago | |
bloomfilter | 2 months ago | |
channel_balance | 1 month ago | |
compaction | 2 weeks ago | |
coorddownsearch | 3 weeks ago | |
coordrecovery | 3 weeks ago | |
crossclusterrouting | 1 month ago | |
datanode | 3 weeks ago | |
expression | 2 months ago | |
getvector | 2 months ago | |
hellomilvus | 2 months ago | |
httpserver | 2 months ago | |
hybridsearch | 1 month ago | |
import | 1 month ago | |
indexstat | 2 months ago | |
insert | 2 months ago | |
jsonexpr | 2 months ago | |
levelzero | 1 month ago | |
materialized_view | 2 months ago | |
null_data | 1 month ago | |
ops | 2 months ago | |
partialsearch | 2 months ago | |
partitionkey | 2 months ago | |
querynode | 2 months ago | |
rangesearch | 2 months ago | |
ratelimit | 1 month ago | |
rbac | 3 weeks ago | |
refreshconfig | 2 months ago | |
replicas | 3 weeks ago | |
rg | 2 months ago | |
rollingupgrade | 2 months ago | |
sealpolicies | 2 months ago | |
sparse | 2 months ago | |
streaming | 1 month ago | |
target | 3 weeks ago | |
upsert | 2 months ago | |
OWNERS | 1 year ago | |
README.md | 2 months ago | |
meta_watcher.go | 2 months ago | |
meta_watcher_test.go | 2 months ago | |
minicluster_v2.go | 3 weeks ago | |
querynodev2_test.go | 11 months ago | |
suite.go | 1 month ago | |
util_collection.go | 2 months ago | |
util_index.go | 6 months ago | |
util_insert.go | 2 months ago | |
util_query.go | 2 months ago | |
util_schema.go | 6 months ago |
This folder contains the integration test for Milvus components.
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
suite
MiniClusterand
MiniClusterSuite` 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
}
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.