Skip to content

Commit

Permalink
make bazel_prepare
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <[email protected]>
  • Loading branch information
YuJuncen committed Dec 18, 2024
1 parent 0360a8e commit a2b8b8e
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 2 deletions.
6 changes: 5 additions & 1 deletion br/pkg/restore/log_client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ go_library(
"log_file_map.go",
"log_split_strategy.go",
"migration.go",
"ssts.go",
],
importpath = "github.com/pingcap/tidb/br/pkg/restore/log_client",
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -43,11 +44,13 @@ go_library(
"//pkg/kv",
"//pkg/meta",
"//pkg/meta/model",
"//pkg/tablecodec",
"//pkg/util",
"//pkg/util/codec",
"//pkg/util/redact",
"//pkg/util/sqlexec",
"//pkg/util/table-filter",
"@com_github_docker_go_units//:go-units",
"@com_github_fatih_color//:color",
"@com_github_gogo_protobuf//proto",
"@com_github_opentracing_opentracing_go//:opentracing-go",
Expand Down Expand Up @@ -90,7 +93,7 @@ go_test(
],
embed = [":log_client"],
flaky = True,
shard_count = 45,
shard_count = 50,
deps = [
"//br/pkg/errors",
"//br/pkg/glue",
Expand Down Expand Up @@ -119,6 +122,7 @@ go_test(
"//pkg/util/sqlexec",
"//pkg/util/table-filter",
"@com_github_docker_go_units//:go-units",
"@com_github_google_uuid//:uuid",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/brpb",
Expand Down
5 changes: 5 additions & 0 deletions br/pkg/restore/snap_client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
"client.go",
"import.go",
"pipeline_items.go",
"pitr_collector.go",
"placement_rule_manager.go",
"systable_restore.go",
"tikv_sender.go",
Expand All @@ -29,6 +30,8 @@ go_library(
"//br/pkg/restore/split",
"//br/pkg/restore/utils",
"//br/pkg/storage",
"//br/pkg/stream",
"//br/pkg/streamhelper",
"//br/pkg/summary",
"//br/pkg/utils",
"//br/pkg/version",
Expand All @@ -55,9 +58,11 @@ go_library(
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_log//:log",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//util",
"@com_github_tikv_pd_client//:client",
"@com_github_tikv_pd_client//http",
"@io_etcd_go_etcd_client_v3//:client",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//keepalive",
"@org_golang_google_grpc//status",
Expand Down
1 change: 1 addition & 0 deletions br/pkg/restore/utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ go_library(
"//br/pkg/rtree",
"//pkg/meta/model",
"//pkg/tablecodec",
"//pkg/util",
"//pkg/util/codec",
"//pkg/util/redact",
"@com_github_pingcap_errors//:errors",
Expand Down
1 change: 1 addition & 0 deletions br/pkg/storage/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ go_library(
deps = [
"//br/pkg/errors",
"//br/pkg/logutil",
"//br/pkg/utils",
"//br/pkg/utils/iter",
"//pkg/lightning/log",
"//pkg/sessionctx/variable",
Expand Down
4 changes: 3 additions & 1 deletion br/pkg/stream/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ go_library(
"//pkg/util/versioninfo",
"@com_github_docker_go_units//:go-units",
"@com_github_fatih_color//:color",
"@com_github_google_uuid//:uuid",
"@com_github_klauspost_compress//zstd",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_kvproto//pkg/brpb",
Expand Down Expand Up @@ -65,7 +66,7 @@ go_test(
],
embed = [":stream"],
flaky = True,
shard_count = 48,
shard_count = 49,
deps = [
"//br/pkg/storage",
"//br/pkg/streamhelper",
Expand All @@ -81,6 +82,7 @@ go_test(
"//pkg/util/intest",
"//pkg/util/table-filter",
"@com_github_fsouza_fake_gcs_server//fakestorage",
"@com_github_google_uuid//:uuid",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/brpb",
Expand Down
2 changes: 2 additions & 0 deletions br/pkg/task/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ go_library(
"//br/pkg/streamhelper/daemon",
"//br/pkg/summary",
"//br/pkg/utils",
"//br/pkg/utils/iter",
"//br/pkg/version",
"//pkg/config",
"//pkg/ddl",
Expand Down Expand Up @@ -98,6 +99,7 @@ go_library(
"@org_golang_x_sync//errgroup",
"@org_uber_go_multierr//:multierr",
"@org_uber_go_zap//:zap",
"@org_uber_go_zap//zapcore",
],
)

Expand Down
16 changes: 16 additions & 0 deletions br/pkg/task/operator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,46 @@ go_library(
name = "operator",
srcs = [
"base64ify.go",
"checksum_table.go",
"config.go",
"force_flush.go",
"list_migration.go",
"migrate_to.go",
"prepare_snap.go",
],
importpath = "github.com/pingcap/tidb/br/pkg/task/operator",
visibility = ["//visibility:public"],
deps = [
"//br/pkg/backup",
"//br/pkg/backup/prepare_snap",
"//br/pkg/checksum",
"//br/pkg/conn",
"//br/pkg/errors",
"//br/pkg/glue",
"//br/pkg/logutil",
"//br/pkg/metautil",
"//br/pkg/pdutil",
"//br/pkg/storage",
"//br/pkg/stream",
"//br/pkg/task",
"//br/pkg/utils",
"//pkg/domain",
"//pkg/meta/model",
"//pkg/util",
"//pkg/util/engine",
"@com_github_fatih_color//:color",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/brpb",
"@com_github_pingcap_kvproto//pkg/logbackuppb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_log//:log",
"@com_github_spf13_pflag//:pflag",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_client_go_v2//util",
"@com_github_tikv_pd_client//:client",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//keepalive",
"@org_golang_x_sync//errgroup",
"@org_uber_go_multierr//:multierr",
Expand Down
3 changes: 3 additions & 0 deletions pkg/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ go_library(
"@io_etcd_go_etcd_client_v3//:client",
"@io_etcd_go_etcd_client_v3//concurrency",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_protobuf//proto",
"@org_golang_google_protobuf//protoadapt",
"@org_golang_x_sync//errgroup",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
Expand Down Expand Up @@ -101,6 +103,7 @@ go_test(
"//pkg/util/memory",
"@com_github_ngaut_pools//:pools",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_kvproto//pkg/brpb",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_atomic//:atomic",
Expand Down
13 changes: 13 additions & 0 deletions tests/realtikvtest/brietest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,43 @@ go_test(
"brie_test.go",
"main_test.go",
"operator_test.go",
"pitr_test.go",
],
flaky = True,
race = "on",
deps = [
"//br/pkg/glue",
"//br/pkg/gluetidb",
"//br/pkg/logutil",
"//br/pkg/streamhelper",
"//br/pkg/task",
"//br/pkg/task/operator",
"//pkg/config",
"//pkg/domain",
"//pkg/executor",
"//pkg/kv",
"//pkg/parser/mysql",
"//pkg/session",
"//pkg/testkit",
"//pkg/testkit/testsetup",
"//pkg/util/printer",
"//pkg/util/table-filter",
"//tests/realtikvtest",
"@com_github_google_uuid//:uuid",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/brpb",
"@com_github_pingcap_kvproto//pkg/encryptionpb",
"@com_github_pingcap_kvproto//pkg/import_sstpb",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@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_pd_client//:client",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//credentials/insecure",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_zap//:zap",
"@org_uber_go_zap//zapcore",
],
)

0 comments on commit a2b8b8e

Please sign in to comment.