forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
126 lines (124 loc) · 3.83 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "task",
srcs = [
"backup.go",
"backup_ebs.go",
"backup_raw.go",
"backup_txn.go",
"common.go",
"restore.go",
"restore_data.go",
"restore_ebs_meta.go",
"restore_raw.go",
"restore_txn.go",
"stream.go",
],
importpath = "github.com/pingcap/tidb/br/pkg/task",
visibility = ["//visibility:public"],
deps = [
"//br/pkg/aws",
"//br/pkg/backup",
"//br/pkg/checkpoint",
"//br/pkg/checksum",
"//br/pkg/common",
"//br/pkg/config",
"//br/pkg/conn",
"//br/pkg/conn/util",
"//br/pkg/errors",
"//br/pkg/glue",
"//br/pkg/httputil",
"//br/pkg/logutil",
"//br/pkg/metautil",
"//br/pkg/pdutil",
"//br/pkg/restore",
"//br/pkg/restore/tiflashrec",
"//br/pkg/rtree",
"//br/pkg/storage",
"//br/pkg/stream",
"//br/pkg/streamhelper",
"//br/pkg/streamhelper/config",
"//br/pkg/streamhelper/daemon",
"//br/pkg/summary",
"//br/pkg/utils",
"//br/pkg/version",
"//config",
"//ddl",
"//kv",
"//parser/model",
"//parser/mysql",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//statistics/handle",
"//types",
"//util",
"//util/mathutil",
"//util/sqlexec",
"//util/table-filter",
"@com_github_docker_go_units//:go-units",
"@com_github_fatih_color//:color",
"@com_github_gogo_protobuf//proto",
"@com_github_google_uuid//:uuid",
"@com_github_opentracing_opentracing_go//:opentracing-go",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/brpb",
"@com_github_pingcap_kvproto//pkg/encryptionpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_log//:log",
"@com_github_spf13_cobra//:cobra",
"@com_github_spf13_pflag//:pflag",
"@com_github_tikv_client_go_v2//config",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_pd_client//:client",
"@com_google_cloud_go_storage//:storage",
"@io_etcd_go_etcd_client_pkg_v3//transport",
"@io_etcd_go_etcd_client_v3//:client",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//backoff",
"@org_golang_google_grpc//keepalive",
"@org_golang_x_exp//slices",
"@org_golang_x_sync//errgroup",
"@org_uber_go_multierr//:multierr",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "task_test",
timeout = "short",
srcs = [
"backup_ebs_test.go",
"backup_test.go",
"common_test.go",
"restore_test.go",
"stream_test.go",
],
embed = [":task"],
flaky = True,
shard_count = 21,
deps = [
"//br/pkg/conn",
"//br/pkg/errors",
"//br/pkg/metautil",
"//br/pkg/restore",
"//br/pkg/storage",
"//br/pkg/stream",
"//br/pkg/utils",
"//config",
"//parser/model",
"//statistics/handle",
"//tablecodec",
"//util/table-filter",
"@com_github_golang_protobuf//proto",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_kvproto//pkg/brpb",
"@com_github_pingcap_kvproto//pkg/encryptionpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_spf13_pflag//:pflag",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_pd_client//:client",
"@org_golang_google_grpc//keepalive",
],
)