-
Notifications
You must be signed in to change notification settings - Fork 5.8k
/
BUILD.bazel
210 lines (208 loc) · 6.12 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "server",
srcs = [
"buffered_read_conn.go",
"column.go",
"conn.go",
"conn_stmt.go",
"driver.go",
"driver_tidb.go",
"http_handler.go",
"http_status.go",
"mock_conn.go",
"optimize_trace.go",
"packetio.go",
"plan_replayer.go",
"rpc_server.go",
"server.go",
"stat.go",
"statistics_handler.go",
"tokenlimiter.go",
"util.go",
],
importpath = "github.com/pingcap/tidb/server",
visibility = ["//visibility:public"],
deps = [
"//config",
"//ddl",
"//domain",
"//domain/infosync",
"//errno",
"//executor",
"//infoschema",
"//kv",
"//meta",
"//metrics",
"//parser",
"//parser/ast",
"//parser/auth",
"//parser/charset",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//planner/core",
"//plugin",
"//privilege",
"//privilege/privileges",
"//session",
"//session/txninfo",
"//sessionctx",
"//sessionctx/binloginfo",
"//sessionctx/sessionstates",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//sessiontxn",
"//store/driver/error",
"//store/gcworker",
"//store/helper",
"//table",
"//table/tables",
"//tablecodec",
"//types",
"//util",
"//util/arena",
"//util/chunk",
"//util/codec",
"//util/cpuprofile",
"//util/dbterror",
"//util/deadlockhistory",
"//util/execdetails",
"//util/fastrand",
"//util/gcutil",
"//util/hack",
"//util/logutil",
"//util/memory",
"//util/pdapi",
"//util/printer",
"//util/sqlexec",
"//util/sys/linux",
"//util/timeutil",
"//util/tls",
"//util/topsql",
"//util/topsql/state",
"//util/topsql/stmtstats",
"//util/versioninfo",
"@com_github_blacktear23_go_proxyprotocol//:go-proxyprotocol",
"@com_github_gorilla_mux//:mux",
"@com_github_opentracing_opentracing_go//:opentracing-go",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_fn//:fn",
"@com_github_pingcap_kvproto//pkg/coprocessor",
"@com_github_pingcap_kvproto//pkg/diagnosticspb",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_kvproto//pkg/tikvpb",
"@com_github_pingcap_log//:log",
"@com_github_pingcap_sysutil//:sysutil",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_prometheus_client_golang//prometheus/promhttp",
"@com_github_soheilhy_cmux//:cmux",
"@com_github_stretchr_testify//require",
"@com_github_tiancaiamao_appdash//traceapp",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_client_go_v2//util",
"@com_sourcegraph_sourcegraph_appdash_data//:appdash-data",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//channelz/service",
"@org_golang_google_grpc//keepalive",
"@org_golang_google_grpc//peer",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "server_test",
timeout = "short",
srcs = [
"column_test.go",
"conn_stmt_test.go",
"conn_test.go",
"driver_tidb_test.go",
"http_handler_serial_test.go",
"http_handler_test.go",
"main_test.go",
"mock_conn_test.go",
"optimize_trace_test.go",
"packetio_test.go",
"plan_replayer_test.go",
"server_test.go",
"stat_test.go",
"statistics_handler_test.go",
"tidb_library_test.go",
"tidb_serial_test.go",
"tidb_test.go",
"util_test.go",
],
embed = [":server"],
flaky = True,
shard_count = 50,
deps = [
"//config",
"//ddl",
"//ddl/util",
"//domain",
"//domain/infosync",
"//errno",
"//executor",
"//infoschema",
"//kv",
"//meta",
"//metrics",
"//parser",
"//parser/ast",
"//parser/auth",
"//parser/charset",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//planner/core",
"//session",
"//sessionctx",
"//sessionctx/binloginfo",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//statistics/handle",
"//store/helper",
"//store/mockstore",
"//store/mockstore/unistore",
"//tablecodec",
"//testkit",
"//testkit/external",
"//testkit/testsetup",
"//types",
"//types/json",
"//util",
"//util/arena",
"//util/chunk",
"//util/codec",
"//util/cpuprofile",
"//util/deadlockhistory",
"//util/mock",
"//util/plancodec",
"//util/resourcegrouptag",
"//util/rowcodec",
"//util/topsql",
"//util/topsql/collector",
"//util/topsql/collector/mock",
"//util/topsql/state",
"//util/topsql/stmtstats",
"//util/versioninfo",
"@com_github_docker_go_units//:go-units",
"@com_github_go_sql_driver_mysql//:mysql",
"@com_github_gorilla_mux//:mux",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_log//:log",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//error",
"@com_github_tikv_client_go_v2//testutils",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_client_go_v2//tikvrpc",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_zap//:zap",
],
)