load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "importinto", srcs = [ "clean_s3.go", "encode_and_sort_operator.go", "job.go", "metrics.go", "planner.go", "proto.go", "scheduler.go", "subtask_executor.go", "task_executor.go", "wrapper.go", ], importpath = "github.com/pingcap/tidb/pkg/disttask/importinto", visibility = ["//visibility:public"], deps = [ "//br/pkg/logutil", "//br/pkg/storage", "//br/pkg/utils", "//pkg/config", "//pkg/disttask/framework/handle", "//pkg/disttask/framework/planner", "//pkg/disttask/framework/proto", "//pkg/disttask/framework/scheduler", "//pkg/disttask/framework/storage", "//pkg/disttask/framework/taskexecutor", "//pkg/disttask/framework/taskexecutor/execute", "//pkg/disttask/operator", "//pkg/domain/infosync", "//pkg/errno", "//pkg/executor/importer", "//pkg/kv", "//pkg/lightning/backend", "//pkg/lightning/backend/external", "//pkg/lightning/backend/kv", "//pkg/lightning/backend/local", "//pkg/lightning/backend/remote", "//pkg/lightning/checkpoints", "//pkg/lightning/common", "//pkg/lightning/config", "//pkg/lightning/log", "//pkg/lightning/metric", "//pkg/lightning/mydump", "//pkg/lightning/verification", "//pkg/meta/autoid", "//pkg/meta/model", "//pkg/metrics", "//pkg/parser/ast", "//pkg/parser/mysql", "//pkg/resourcemanager/pool/workerpool", "//pkg/resourcemanager/util", "//pkg/sessionctx", "//pkg/table/tables", "//pkg/util", "//pkg/util/backoff", "//pkg/util/disttask", "//pkg/util/etcd", "//pkg/util/logutil", "//pkg/util/promutil", "@com_github_docker_go_units//:go-units", "@com_github_go_sql_driver_mysql//:mysql", "@com_github_google_uuid//:uuid", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_failpoint//:failpoint", "@com_github_prometheus_client_golang//prometheus", "@com_github_tikv_client_go_v2//oracle", "@com_github_tikv_client_go_v2//util", "@org_uber_go_atomic//:atomic", "@org_uber_go_zap//:zap", "@org_uber_go_zap//zapcore", ], ) go_test( name = "importinto_test", timeout = "short", srcs = [ "encode_and_sort_operator_test.go", "job_testkit_test.go", "metrics_test.go", "planner_test.go", "scheduler_test.go", "scheduler_testkit_test.go", "task_executor_test.go", "task_executor_testkit_test.go", "wrapper_test.go", ], embed = [":importinto"], flaky = True, race = "on", shard_count = 18, deps = [ "//br/pkg/storage", "//pkg/ddl", "//pkg/disttask/framework/planner", "//pkg/disttask/framework/proto", "//pkg/disttask/framework/scheduler", "//pkg/disttask/framework/storage", "//pkg/disttask/framework/testutil", "//pkg/disttask/importinto/mock", "//pkg/disttask/operator", "//pkg/domain/infosync", "//pkg/executor/importer", "//pkg/kv", "//pkg/lightning/backend", "//pkg/lightning/backend/external", "//pkg/lightning/checkpoints", "//pkg/lightning/common", "//pkg/lightning/config", "//pkg/lightning/log", "//pkg/lightning/mydump", "//pkg/meta/autoid", "//pkg/meta/model", "//pkg/parser", "//pkg/parser/ast", "//pkg/parser/model", "//pkg/session", "//pkg/store/driver/error", "//pkg/testkit", "//pkg/testkit/testfailpoint", "//pkg/util/mock", "@com_github_docker_go_units//:go-units", "@com_github_google_uuid//:uuid", "@com_github_ngaut_pools//:pools", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_failpoint//:failpoint", "@com_github_prometheus_client_golang//prometheus", "@com_github_stretchr_testify//require", "@com_github_stretchr_testify//suite", "@com_github_tikv_client_go_v2//util", "@com_github_tikv_pd_client//:client", "@org_uber_go_mock//gomock", "@org_uber_go_zap//:zap", ], )