@@ -26,10 +26,6 @@ if [[ $(uname -s) == "Darwin" ]]; then
26
26
export MallocNanoZone=0
27
27
fi
28
28
29
- if [[ " $( uname -m) " == " arm64" ]]; then
30
- APPLE_SILICON_FLAG=" -tags dynamic"
31
- fi
32
-
33
29
# ignore MinIO,S3 unittests
34
30
MILVUS_DIR=" ${ROOT_DIR} /internal/"
35
31
PKG_DIR=" ${ROOT_DIR} /pkg/"
@@ -64,106 +60,106 @@ done
64
60
65
61
function test_proxy()
66
62
{
67
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /proxy/..." -failfast -count=1
68
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /distributed/proxy/..." -failfast -count=1
63
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /proxy/..." -failfast -count=1
64
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /distributed/proxy/..." -failfast -count=1
69
65
}
70
66
71
67
function test_querynode()
72
68
{
73
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /querynodev2/..." -failfast -count=1
74
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /distributed/querynode/..." -failfast -count=1
69
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /querynodev2/..." -failfast -count=1
70
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /distributed/querynode/..." -failfast -count=1
75
71
}
76
72
77
73
78
74
function test_kv()
79
75
{
80
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /kv/..." -failfast -count=1
76
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /kv/..." -failfast -count=1
81
77
}
82
78
83
79
function test_mq()
84
80
{
85
- go test -race -cover ${APPLE_SILICON_FLAG} $( go list " ${MILVUS_DIR} /mq/..." | grep -v kafka) -failfast -count=1
81
+ go test -race -cover -tags dynamic $( go list " ${MILVUS_DIR} /mq/..." | grep -v kafka) -failfast -count=1
86
82
}
87
83
88
84
function test_storage()
89
85
{
90
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /storage" -failfast -count=1
86
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /storage" -failfast -count=1
91
87
}
92
88
93
89
function test_allocator()
94
90
{
95
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /allocator/..." -failfast -count=1
91
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /allocator/..." -failfast -count=1
96
92
}
97
93
98
94
function test_tso()
99
95
{
100
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /tso/..." -failfast -count=1
96
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /tso/..." -failfast -count=1
101
97
}
102
98
103
99
function test_config()
104
100
{
105
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /config/..." -failfast -count=1
101
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /config/..." -failfast -count=1
106
102
}
107
103
108
104
function test_util()
109
105
{
110
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /util/funcutil/..." -failfast -count=1
111
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /util/paramtable/..." -failfast -count=1
112
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /util/retry/..." -failfast -count=1
113
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /util/sessionutil/..." -failfast -count=1
114
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /util/typeutil/..." -failfast -count=1
115
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /util/importutil/..." -failfast -count=1
106
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /util/funcutil/..." -failfast -count=1
107
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /util/paramtable/..." -failfast -count=1
108
+ go test -race -cover -tags dynamic " ${PKG_DIR} /util/retry/..." -failfast -count=1
109
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /util/sessionutil/..." -failfast -count=1
110
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /util/typeutil/..." -failfast -count=1
111
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /util/importutil/..." -failfast -count=1
116
112
}
117
113
118
114
function test_pkg()
119
115
{
120
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /common/..." -failfast -count=1
121
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /config/..." -failfast -count=1
122
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /log/..." -failfast -count=1
123
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /mq/..." -failfast -count=1
124
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /tracer/..." -failfast -count=1
125
- go test -race -cover ${APPLE_SILICON_FLAG} " ${PKG_DIR} /util/..." -failfast -count=1
116
+ go test -race -cover -tags dynamic " ${PKG_DIR} /common/..." -failfast -count=1
117
+ go test -race -cover -tags dynamic " ${PKG_DIR} /config/..." -failfast -count=1
118
+ go test -race -cover -tags dynamic " ${PKG_DIR} /log/..." -failfast -count=1
119
+ go test -race -cover -tags dynamic " ${PKG_DIR} /mq/..." -failfast -count=1
120
+ go test -race -cover -tags dynamic " ${PKG_DIR} /tracer/..." -failfast -count=1
121
+ go test -race -cover -tags dynamic " ${PKG_DIR} /util/..." -failfast -count=1
126
122
}
127
123
128
124
function test_datanode
129
125
{
130
126
131
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /datanode/..." -failfast -count=1
132
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /distributed/datanode/..." -failfast -count=1
127
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /datanode/..." -failfast -count=1
128
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /distributed/datanode/..." -failfast -count=1
133
129
134
130
}
135
131
136
132
function test_indexnode()
137
133
{
138
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /indexnode/..." -failfast -count=1
134
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /indexnode/..." -failfast -count=1
139
135
}
140
136
141
137
function test_rootcoord()
142
138
{
143
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /distributed/rootcoord/..." -failfast -count=1
144
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /rootcoord" -failfast
139
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /distributed/rootcoord/..." -failfast -count=1
140
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /rootcoord" -failfast
145
141
}
146
142
147
143
function test_datacoord()
148
144
{
149
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /distributed/datacoord/..." -failfast -count=1
150
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /datacoord/..." -failfast -count=1
145
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /distributed/datacoord/..." -failfast -count=1
146
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /datacoord/..." -failfast -count=1
151
147
}
152
148
153
149
function test_querycoord()
154
150
{
155
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /distributed/querycoord/..." -failfast -count=1
156
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /querycoordv2/..." -failfast -count=1
151
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /distributed/querycoord/..." -failfast -count=1
152
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /querycoordv2/..." -failfast -count=1
157
153
}
158
154
159
155
# function test_indexcoord()
160
156
#{
161
- # go test -race -cover ${APPLE_SILICON_FLAG} "${MILVUS_DIR}/indexcoord/..." -failfast
157
+ # go test -race -cover -tags dynamic "${MILVUS_DIR}/indexcoord/..." -failfast
162
158
# }
163
159
164
160
function test_metastore()
165
161
{
166
- go test -race -cover ${APPLE_SILICON_FLAG} " ${MILVUS_DIR} /metastore/..." -failfast -count=1
162
+ go test -race -cover -tags dynamic " ${MILVUS_DIR} /metastore/..." -failfast -count=1
167
163
}
168
164
169
165
function test_all()
0 commit comments