From a855cc21a1d3b069c0221292789de3d892c0437a Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 15 Feb 2023 10:13:17 +0800 Subject: [PATCH 1/4] *: bazel upgrade shard_count Signed-off-by: Weizhen Wang --- br/pkg/lightning/backend/local/BUILD.bazel | 2 +- ddl/metadatalocktest/BUILD.bazel | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/br/pkg/lightning/backend/local/BUILD.bazel b/br/pkg/lightning/backend/local/BUILD.bazel index 42fbadabc9e11..e404b5f971c22 100644 --- a/br/pkg/lightning/backend/local/BUILD.bazel +++ b/br/pkg/lightning/backend/local/BUILD.bazel @@ -96,7 +96,7 @@ go_test( ], embed = [":local"], flaky = True, - shard_count = 40, + shard_count = 45, deps = [ "//br/pkg/errors", "//br/pkg/lightning/backend", diff --git a/ddl/metadatalocktest/BUILD.bazel b/ddl/metadatalocktest/BUILD.bazel index 4e36531bd5a6a..ee9d25ea7ec85 100644 --- a/ddl/metadatalocktest/BUILD.bazel +++ b/ddl/metadatalocktest/BUILD.bazel @@ -8,6 +8,7 @@ go_test( "mdl_test.go", ], flaky = True, + shard_count = 30, deps = [ "//config", "//ddl", From 2ed4ac9961c21e2f04f05f6deab94920d5ab52f4 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 15 Feb 2023 10:19:50 +0800 Subject: [PATCH 2/4] *: bazel upgrade shard_count Signed-off-by: Weizhen Wang --- util/ranger/BUILD.bazel | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/ranger/BUILD.bazel b/util/ranger/BUILD.bazel index 2183e7f361b7c..8c649af56e52f 100644 --- a/util/ranger/BUILD.bazel +++ b/util/ranger/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "ranger", + timeout = "short", srcs = [ "checker.go", "detacher.go", @@ -9,7 +10,9 @@ go_library( "ranger.go", "types.go", ], + flaky = True, importpath = "github.com/pingcap/tidb/util/ranger", + shard_count = 26, visibility = ["//visibility:public"], deps = [ "//errno", From c9f2f24d740ad63878e915c912233d0889ac2e41 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 15 Feb 2023 10:25:25 +0800 Subject: [PATCH 3/4] *: bazel upgrade shard_count Signed-off-by: Weizhen Wang --- util/ranger/BUILD.bazel | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/ranger/BUILD.bazel b/util/ranger/BUILD.bazel index 8c649af56e52f..78d6091bb5749 100644 --- a/util/ranger/BUILD.bazel +++ b/util/ranger/BUILD.bazel @@ -2,7 +2,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "ranger", - timeout = "short", srcs = [ "checker.go", "detacher.go", @@ -10,9 +9,7 @@ go_library( "ranger.go", "types.go", ], - flaky = True, importpath = "github.com/pingcap/tidb/util/ranger", - shard_count = 26, visibility = ["//visibility:public"], deps = [ "//errno", @@ -48,6 +45,7 @@ go_test( ], data = glob(["testdata/**"]), flaky = True, + shard_count = 26, deps = [ ":ranger", "//config", From dc649b9d6774c4ed9f897789bd4efebf77921d45 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 15 Feb 2023 10:28:11 +0800 Subject: [PATCH 4/4] *: bazel upgrade shard_count Signed-off-by: Weizhen Wang --- parser/types/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/parser/types/BUILD.bazel b/parser/types/BUILD.bazel index 7a281d8e5ff34..df3346c496a3f 100644 --- a/parser/types/BUILD.bazel +++ b/parser/types/BUILD.bazel @@ -27,6 +27,7 @@ go_test( ], embed = [":types"], flaky = True, + shard_count = 50, deps = [ "//parser", "//parser/ast",