forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
124 lines (122 loc) · 3.58 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "domain",
srcs = [
"domain.go",
"domainctx.go",
"optimize_trace.go",
"plan_replayer.go",
"schema_checker.go",
"schema_validator.go",
"sysvar_cache.go",
"test_helper.go",
"topn_slow_query.go",
],
importpath = "github.com/pingcap/tidb/domain",
visibility = ["//visibility:public"],
deps = [
"//bindinfo",
"//br/pkg/streamhelper",
"//br/pkg/streamhelper/daemon",
"//config",
"//ddl",
"//ddl/placement",
"//ddl/schematracker",
"//ddl/util",
"//domain/globalconfigsync",
"//domain/infosync",
"//errno",
"//infoschema",
"//infoschema/perfschema",
"//kv",
"//meta",
"//metrics",
"//owner",
"//parser/ast",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//privilege/privileges",
"//sessionctx",
"//sessionctx/sessionstates",
"//sessionctx/variable",
"//statistics/handle",
"//telemetry",
"//types",
"//util",
"//util/dbterror",
"//util/domainutil",
"//util/engine",
"//util/execdetails",
"//util/expensivequery",
"//util/logutil",
"//util/servermemorylimit",
"//util/sqlexec",
"@com_github_ngaut_pools//:pools",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_log//:log",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_client_go_v2//txnkv/transaction",
"@com_github_tikv_pd_client//:client",
"@io_etcd_go_etcd_client_v3//:client",
"@io_etcd_go_etcd_client_v3//concurrency",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//keepalive",
"@org_golang_x_exp//maps",
"@org_golang_x_exp//slices",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "domain_test",
timeout = "short",
srcs = [
"db_test.go",
"domain_test.go",
"domain_utils_test.go",
"domainctx_test.go",
"main_test.go",
"plan_replayer_test.go",
"schema_checker_test.go",
"schema_validator_test.go",
"session_pool_test.go",
"topn_slow_query_test.go",
],
embed = [":domain"],
flaky = True,
shard_count = 25,
deps = [
"//config",
"//ddl",
"//domain/infosync",
"//errno",
"//kv",
"//metrics",
"//parser/ast",
"//parser/model",
"//parser/terror",
"//server",
"//session",
"//sessionctx/variable",
"//store/mockstore",
"//testkit/testsetup",
"//util",
"//util/mock",
"@com_github_ngaut_pools//:pools",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_prometheus_client_model//go",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//txnkv/transaction",
"@com_github_tikv_pd_client//:client",
"@io_etcd_go_etcd_tests_v3//integration",
"@org_uber_go_goleak//:goleak",
],
)