From 51e559c52d401b9149a60c971aa0dd0e738ce779 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 19 Oct 2022 17:03:54 +0800 Subject: [PATCH] bazel: update config and nogo (#38549) --- br/pkg/lightning/config/BUILD.bazel | 1 - build/nogo_config.json | 32 ++++++++++++++--------------- planner/core/BUILD.bazel | 5 +++++ server/BUILD.bazel | 1 + statistics/BUILD.bazel | 1 + 5 files changed, 23 insertions(+), 17 deletions(-) diff --git a/br/pkg/lightning/config/BUILD.bazel b/br/pkg/lightning/config/BUILD.bazel index fba6b5abd7b0c..6d2cb32a9ccc7 100644 --- a/br/pkg/lightning/config/BUILD.bazel +++ b/br/pkg/lightning/config/BUILD.bazel @@ -43,7 +43,6 @@ go_test( deps = [ ":config", "//br/pkg/lightning/common", - "//parser/mysql", "@com_github_burntsushi_toml//:toml", "@com_github_stretchr_testify//require", ], diff --git a/build/nogo_config.json b/build/nogo_config.json index 34d9463fe6cad..327a634e1008a 100644 --- a/build/nogo_config.json +++ b/build/nogo_config.json @@ -198,22 +198,22 @@ ".*_generated\\.go$": "ignore generated code" }, "only_files": { - "util/gctuner": "util/gctuner", - "br/pkg/lightning/mydump/": "br/pkg/lightning/mydump/", - "br/pkg/lightning/restore/opts": "br/pkg/lightning/restore/opts", - "executor/aggregate.go": "executor/aggregate.go", - "types/json_binary_functions.go": "types/json_binary_functions.go", - "types/json_binary_test.go": "types/json_binary_test.go", - "ddl/backfilling.go": "ddl/backfilling.go", - "ddl/column.go": "ddl/column.go", - "ddl/index.go": "ddl/index.go", - "ddl/ingest/": "ddl/ingest/", - "util/cgroup": "util/cgroup code", - "server/conn.go": "server/conn.go", - "server/conn_stmt.go": "server/conn_stmt.go", - "server/conn_test.go": "server/conn_test.go", - "planner/core/plan.go": "planner/core/plan.go", - "errno/": "only table code" + "util/gctuner": "only for util/gctuner", + "br/pkg/lightning/mydump/": "only for br/pkg/lightning/mydump/", + "br/pkg/lightning/restore/opts": "only for br/pkg/lightning/restore/opts", + "executor/aggregate.go": "only for executor/aggregate.go", + "types/json_binary_functions.go": "only for types/json_binary_functions.go", + "types/json_binary_test.go": "only for types/json_binary_test.go", + "ddl/backfilling.go": "only for ddl/backfilling.go", + "ddl/column.go": "only for ddl/column.go", + "ddl/index.go": "only for ddl/index.go", + "ddl/ingest/": "only for ddl/ingest/", + "util/cgroup": "only for util/cgroup code", + "server/conn.go": "only for server/conn.go", + "server/conn_stmt.go": "only for server/conn_stmt.go", + "server/conn_test.go": "only for server/conn_test.go", + "planner/core/plan.go": "only for planner/core/plan.go", + "errno/": "only for errno/" } }, "gofmt": { diff --git a/planner/core/BUILD.bazel b/planner/core/BUILD.bazel index 21996f693918e..711c4af298925 100644 --- a/planner/core/BUILD.bazel +++ b/planner/core/BUILD.bazel @@ -236,9 +236,12 @@ go_test( "//sessiontxn", "//statistics", "//statistics/handle", + "//store/mockstore", + "//store/mockstore/unistore", "//table", "//testkit", "//testkit/ddlhelper", + "//testkit/external", "//testkit/testdata", "//testkit/testmain", "//testkit/testsetup", @@ -263,10 +266,12 @@ go_test( "@com_github_golang_snappy//:snappy", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_failpoint//:failpoint", + "@com_github_pingcap_kvproto//pkg/metapb", "@com_github_pingcap_tipb//go-tipb", "@com_github_prometheus_client_golang//prometheus", "@com_github_prometheus_client_model//go", "@com_github_stretchr_testify//require", + "@com_github_tikv_client_go_v2//testutils", "@org_golang_x_exp//slices", "@org_uber_go_goleak//:goleak", ], diff --git a/server/BUILD.bazel b/server/BUILD.bazel index 7fc5e88a8d0d4..dc020c6affd53 100644 --- a/server/BUILD.bazel +++ b/server/BUILD.bazel @@ -168,6 +168,7 @@ go_test( "//sessionctx/binloginfo", "//sessionctx/stmtctx", "//sessionctx/variable", + "//sessiontxn", "//statistics/handle", "//store/helper", "//store/mockstore", diff --git a/statistics/BUILD.bazel b/statistics/BUILD.bazel index 654c1a56cb602..7009f749efa7f 100644 --- a/statistics/BUILD.bazel +++ b/statistics/BUILD.bazel @@ -13,6 +13,7 @@ go_library( "fmsketch.go", "histogram.go", "index.go", + "merge_worker.go", "row_sampler.go", "sample.go", "scalar.go",