From 963d955a394647be16975c59a9a5070177626d37 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 12:53:47 +0800 Subject: [PATCH 01/11] *: update bazel Signed-off-by: Weizhen Wang --- executor/loadremotetest/BUILD.bazel | 2 ++ 1 file changed, 2 insertions(+) diff --git a/executor/loadremotetest/BUILD.bazel b/executor/loadremotetest/BUILD.bazel index ed2cd5bb848e2..5db2476b844c2 100644 --- a/executor/loadremotetest/BUILD.bazel +++ b/executor/loadremotetest/BUILD.bazel @@ -2,11 +2,13 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "loadremotetest_test", + timeout = "short", srcs = [ "main_test.go", "one_csv_test.go", "util_test.go", ], + flaky = True, deps = [ "//executor", "//kv", From 5cb68807a13424b4791198fc6228c47295e04068 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 13:03:15 +0800 Subject: [PATCH 02/11] *: update bazel Signed-off-by: Weizhen Wang --- autoid_service/BUILD.bazel | 2 ++ distsql/BUILD.bazel | 1 + extension/BUILD.bazel | 2 ++ util/cgroup/BUILD.bazel | 1 + 4 files changed, 6 insertions(+) diff --git a/autoid_service/BUILD.bazel b/autoid_service/BUILD.bazel index 26eb992c89474..6b206586fc6bb 100644 --- a/autoid_service/BUILD.bazel +++ b/autoid_service/BUILD.bazel @@ -27,8 +27,10 @@ go_library( go_test( name = "autoid_service_test", + timeout = "short", srcs = ["autoid_test.go"], embed = [":autoid_service"], + flaky = True, deps = [ "//parser/model", "//testkit", diff --git a/distsql/BUILD.bazel b/distsql/BUILD.bazel index d737718a2e084..cb9bbc63dd524 100644 --- a/distsql/BUILD.bazel +++ b/distsql/BUILD.bazel @@ -64,6 +64,7 @@ go_test( embed = [":distsql"], flaky = True, race = "on", + shard_count = 2, deps = [ "//kv", "//parser/charset", diff --git a/extension/BUILD.bazel b/extension/BUILD.bazel index 12ca672b3c86f..f180dcf7a9955 100644 --- a/extension/BUILD.bazel +++ b/extension/BUILD.bazel @@ -29,6 +29,7 @@ go_library( go_test( name = "extension_test", + timeout = "short", srcs = [ "bootstrap_test.go", "event_listener_test.go", @@ -37,6 +38,7 @@ go_test( "registry_test.go", ], embed = [":extension"], + flaky = True, deps = [ "//expression", "//parser/ast", diff --git a/util/cgroup/BUILD.bazel b/util/cgroup/BUILD.bazel index 58848ac153701..710c9f930f535 100644 --- a/util/cgroup/BUILD.bazel +++ b/util/cgroup/BUILD.bazel @@ -21,6 +21,7 @@ go_library( go_test( name = "cgroup_test", + timeout = "short", srcs = [ "cgroup_cpu_test.go", "cgroup_mock_test.go", From d7437239e708a49adc0ef20232088ea3b9e81daa Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 17:00:37 +0800 Subject: [PATCH 03/11] *: update bazel Signed-off-by: Weizhen Wang --- br/pkg/checkpoint/BUILD.bazel | 1 + config/BUILD.bazel | 1 + ddl/metadatalocktest/BUILD.bazel | 1 + ddl/resourcegroup/BUILD.bazel | 2 ++ 4 files changed, 5 insertions(+) diff --git a/br/pkg/checkpoint/BUILD.bazel b/br/pkg/checkpoint/BUILD.bazel index 20e39dc39025b..1abc2d82323dc 100644 --- a/br/pkg/checkpoint/BUILD.bazel +++ b/br/pkg/checkpoint/BUILD.bazel @@ -23,6 +23,7 @@ go_library( go_test( name = "checkpoint_test", srcs = ["checkpoint_test.go"], + flaky = True, deps = [ ":checkpoint", "//br/pkg/rtree", diff --git a/config/BUILD.bazel b/config/BUILD.bazel index 069133cba41bb..e3034c60caff6 100644 --- a/config/BUILD.bazel +++ b/config/BUILD.bazel @@ -37,6 +37,7 @@ go_test( data = glob(["**"]), embed = [":config"], flaky = True, + shard_count = 2, deps = [ "//testkit/testsetup", "//util/logutil", diff --git a/ddl/metadatalocktest/BUILD.bazel b/ddl/metadatalocktest/BUILD.bazel index 7f1fc31f9987a..4e36531bd5a6a 100644 --- a/ddl/metadatalocktest/BUILD.bazel +++ b/ddl/metadatalocktest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "metadatalocktest_test", + timeout = "short", srcs = [ "main_test.go", "mdl_test.go", diff --git a/ddl/resourcegroup/BUILD.bazel b/ddl/resourcegroup/BUILD.bazel index c87674b34ef83..ae19c6f654e86 100644 --- a/ddl/resourcegroup/BUILD.bazel +++ b/ddl/resourcegroup/BUILD.bazel @@ -17,8 +17,10 @@ go_library( go_test( name = "resourcegroup_test", + timeout = "short", srcs = ["group_test.go"], embed = [":resourcegroup"], + flaky = True, deps = [ "//parser/model", "@com_github_pingcap_kvproto//pkg/resource_manager", From 0da6b9b49644a01c55a0a1baeaf6dd9f60654783 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 17:14:39 +0800 Subject: [PATCH 04/11] *: update bazel Signed-off-by: Weizhen Wang --- br/pkg/aws/BUILD.bazel | 2 ++ br/pkg/checkpoint/BUILD.bazel | 1 + br/pkg/config/BUILD.bazel | 2 ++ br/pkg/restore/prealloc_table_id/BUILD.bazel | 1 + br/pkg/restore/split/BUILD.bazel | 2 ++ br/pkg/restore/tiflashrec/BUILD.bazel | 1 + br/pkg/storage/BUILD.bazel | 2 +- br/pkg/streamhelper/daemon/BUILD.bazel | 1 + br/pkg/streamhelper/spans/BUILD.bazel | 2 ++ br/pkg/utils/iter/BUILD.bazel | 1 + ddl/BUILD.bazel | 2 +- ddl/failtest/BUILD.bazel | 2 +- ddl/fktest/BUILD.bazel | 1 + ddl/indexmergetest/BUILD.bazel | 2 +- ddl/ingest/BUILD.bazel | 1 + ddl/internal/callback/BUILD.bazel | 27 ++----------------- ddl/syncer/BUILD.bazel | 1 + ddl/tiflashtest/BUILD.bazel | 1 + executor/aggfuncs/BUILD.bazel | 2 +- executor/autoidtest/BUILD.bazel | 1 + executor/issuetest/BUILD.bazel | 1 + executor/oomtest/BUILD.bazel | 2 +- executor/writetest/BUILD.bazel | 1 + expression/BUILD.bazel | 2 +- parser/duration/BUILD.bazel | 2 ++ planner/core/BUILD.bazel | 2 +- resourcemanager/pooltask/BUILD.bazel | 2 ++ resourcemanager/util/BUILD.bazel | 2 ++ server/BUILD.bazel | 2 +- session/BUILD.bazel | 2 +- session/session_test/BUILD.bazel | 2 +- sessionctx/BUILD.bazel | 2 +- sessiontxn/BUILD.bazel | 2 +- sessiontxn/isolation/BUILD.bazel | 2 +- statistics/handle/BUILD.bazel | 2 +- store/copr/copr_test/BUILD.bazel | 2 ++ telemetry/BUILD.bazel | 2 +- tests/realtikvtest/addindextest/BUILD.bazel | 3 ++- tests/realtikvtest/brietest/BUILD.bazel | 2 +- tests/realtikvtest/flashbacktest/BUILD.bazel | 1 + .../realtikvtest/pessimistictest/BUILD.bazel | 2 +- tests/realtikvtest/sessiontest/BUILD.bazel | 2 +- tests/realtikvtest/statisticstest/BUILD.bazel | 2 +- tests/realtikvtest/txntest/BUILD.bazel | 2 +- ttl/client/BUILD.bazel | 1 + ttl/metrics/BUILD.bazel | 1 + ttl/ttlworker/BUILD.bazel | 2 +- util/cpu/BUILD.bazel | 1 + util/gctuner/BUILD.bazel | 1 + util/generic/BUILD.bazel | 2 ++ util/gpool/spmc/BUILD.bazel | 1 + util/memoryusagealarm/BUILD.bazel | 1 + util/password-validation/BUILD.bazel | 2 ++ util/servermemorylimit/BUILD.bazel | 1 + util/stmtsummary/v2/BUILD.bazel | 2 ++ util/stmtsummary/v2/tests/BUILD.bazel | 2 ++ 56 files changed, 70 insertions(+), 48 deletions(-) diff --git a/br/pkg/aws/BUILD.bazel b/br/pkg/aws/BUILD.bazel index 28f58d2a1e1ad..2930569987d8b 100644 --- a/br/pkg/aws/BUILD.bazel +++ b/br/pkg/aws/BUILD.bazel @@ -23,8 +23,10 @@ go_library( go_test( name = "aws_test", + timeout = "short", srcs = ["ebs_test.go"], embed = [":aws"], + flaky = True, deps = [ "@com_github_aws_aws_sdk_go//aws", "@com_github_aws_aws_sdk_go//service/ec2", diff --git a/br/pkg/checkpoint/BUILD.bazel b/br/pkg/checkpoint/BUILD.bazel index 1abc2d82323dc..e8e0f0bd536d5 100644 --- a/br/pkg/checkpoint/BUILD.bazel +++ b/br/pkg/checkpoint/BUILD.bazel @@ -22,6 +22,7 @@ go_library( go_test( name = "checkpoint_test", + timeout = "short", srcs = ["checkpoint_test.go"], flaky = True, deps = [ diff --git a/br/pkg/config/BUILD.bazel b/br/pkg/config/BUILD.bazel index 942fd3462a7b9..610787d039894 100644 --- a/br/pkg/config/BUILD.bazel +++ b/br/pkg/config/BUILD.bazel @@ -15,8 +15,10 @@ go_library( go_test( name = "config_test", + timeout = "short", srcs = ["ebs_test.go"], data = ["ebs_backup.json"], embed = [":config"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/br/pkg/restore/prealloc_table_id/BUILD.bazel b/br/pkg/restore/prealloc_table_id/BUILD.bazel index cfdb0432fd446..b8c69a206ad21 100644 --- a/br/pkg/restore/prealloc_table_id/BUILD.bazel +++ b/br/pkg/restore/prealloc_table_id/BUILD.bazel @@ -13,6 +13,7 @@ go_library( go_test( name = "prealloc_table_id_test", + timeout = "short", srcs = ["alloc_test.go"], flaky = True, race = "on", diff --git a/br/pkg/restore/split/BUILD.bazel b/br/pkg/restore/split/BUILD.bazel index 5ddd7b7671822..7c91f32cfae90 100644 --- a/br/pkg/restore/split/BUILD.bazel +++ b/br/pkg/restore/split/BUILD.bazel @@ -42,7 +42,9 @@ go_library( go_test( name = "split_test", + timeout = "short", srcs = ["sum_sorted_test.go"], + flaky = True, deps = [ ":split", "@com_github_stretchr_testify//require", diff --git a/br/pkg/restore/tiflashrec/BUILD.bazel b/br/pkg/restore/tiflashrec/BUILD.bazel index fbe6ba415cb8c..2025370a8d9d0 100644 --- a/br/pkg/restore/tiflashrec/BUILD.bazel +++ b/br/pkg/restore/tiflashrec/BUILD.bazel @@ -19,6 +19,7 @@ go_library( go_test( name = "tiflashrec_test", + timeout = "short", srcs = ["tiflash_recorder_test.go"], flaky = True, deps = [ diff --git a/br/pkg/storage/BUILD.bazel b/br/pkg/storage/BUILD.bazel index 68b0a8b03aca2..8c98a13e59500 100644 --- a/br/pkg/storage/BUILD.bazel +++ b/br/pkg/storage/BUILD.bazel @@ -56,7 +56,7 @@ go_library( go_test( name = "storage_test", - timeout = "moderate", + timeout = "short", srcs = [ "azblob_test.go", "compress_test.go", diff --git a/br/pkg/streamhelper/daemon/BUILD.bazel b/br/pkg/streamhelper/daemon/BUILD.bazel index e096487050d04..751ade885e324 100644 --- a/br/pkg/streamhelper/daemon/BUILD.bazel +++ b/br/pkg/streamhelper/daemon/BUILD.bazel @@ -18,6 +18,7 @@ go_library( go_test( name = "daemon_test", + timeout = "short", srcs = ["owner_daemon_test.go"], flaky = True, deps = [ diff --git a/br/pkg/streamhelper/spans/BUILD.bazel b/br/pkg/streamhelper/spans/BUILD.bazel index 899f6f6ade6b1..67f9f14546a59 100644 --- a/br/pkg/streamhelper/spans/BUILD.bazel +++ b/br/pkg/streamhelper/spans/BUILD.bazel @@ -19,11 +19,13 @@ go_library( go_test( name = "spans_test", + timeout = "short", srcs = [ "sorted_test.go", "utils_test.go", "value_sorted_test.go", ], + flaky = True, deps = [ ":spans", "@com_github_stretchr_testify//require", diff --git a/br/pkg/utils/iter/BUILD.bazel b/br/pkg/utils/iter/BUILD.bazel index 0e4c55ed67d56..eecf8e82e1cd5 100644 --- a/br/pkg/utils/iter/BUILD.bazel +++ b/br/pkg/utils/iter/BUILD.bazel @@ -20,6 +20,7 @@ go_library( go_test( name = "iter_test", + timeout = "short", srcs = ["combinator_test.go"], flaky = True, race = "on", diff --git a/ddl/BUILD.bazel b/ddl/BUILD.bazel index 080f2ccbb1584..d797044d343da 100644 --- a/ddl/BUILD.bazel +++ b/ddl/BUILD.bazel @@ -153,7 +153,7 @@ go_library( go_test( name = "ddl_test", - timeout = "moderate", + timeout = "short", srcs = [ "attributes_sql_test.go", "backfilling_test.go", diff --git a/ddl/failtest/BUILD.bazel b/ddl/failtest/BUILD.bazel index 4b7980412adc0..025f6097ae8be 100644 --- a/ddl/failtest/BUILD.bazel +++ b/ddl/failtest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "failtest_test", - timeout = "moderate", + timeout = "short", srcs = [ "fail_db_test.go", "main_test.go", diff --git a/ddl/fktest/BUILD.bazel b/ddl/fktest/BUILD.bazel index a2452785fcaa8..9e2c14fe0718a 100644 --- a/ddl/fktest/BUILD.bazel +++ b/ddl/fktest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "fktest_test", + timeout = "short", srcs = [ "foreign_key_test.go", "main_test.go", diff --git a/ddl/indexmergetest/BUILD.bazel b/ddl/indexmergetest/BUILD.bazel index b70146ae8d461..15949261caff0 100644 --- a/ddl/indexmergetest/BUILD.bazel +++ b/ddl/indexmergetest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "indexmergetest_test", - timeout = "moderate", + timeout = "short", srcs = [ "main_test.go", "merge_test.go", diff --git a/ddl/ingest/BUILD.bazel b/ddl/ingest/BUILD.bazel index 962ae4da35637..902900c316a12 100644 --- a/ddl/ingest/BUILD.bazel +++ b/ddl/ingest/BUILD.bazel @@ -46,6 +46,7 @@ go_library( go_test( name = "ingest_test", + timeout = "short", srcs = [ "env_test.go", "mem_root_test.go", diff --git a/ddl/internal/callback/BUILD.bazel b/ddl/internal/callback/BUILD.bazel index e0bb07c3b2c21..63a4cf7f4687f 100644 --- a/ddl/internal/callback/BUILD.bazel +++ b/ddl/internal/callback/BUILD.bazel @@ -17,33 +17,10 @@ go_library( go_test( name = "callback_test", + timeout = "short", srcs = ["callback_test.go"], embed = [":callback"], - deps = [ - "//ddl", - "@com_github_stretchr_testify//require", - ], -) - -go_library( - name = "ddlcallback", - srcs = ["callback.go"], - importpath = "github.com/pingcap/tidb/ddl/internal/ddlcallback", - visibility = ["//ddl:__subpackages__"], - deps = [ - "//ddl", - "//infoschema", - "//parser/model", - "//sessionctx", - "//util/logutil", - "@org_uber_go_zap//:zap", - ], -) - -go_test( - name = "ddlcallback_test", - srcs = ["callback_test.go"], - embed = [":ddlcallback"], + flaky = True, deps = [ "//ddl", "@com_github_stretchr_testify//require", diff --git a/ddl/syncer/BUILD.bazel b/ddl/syncer/BUILD.bazel index a608822051aaf..7c32da69cd5ce 100644 --- a/ddl/syncer/BUILD.bazel +++ b/ddl/syncer/BUILD.bazel @@ -22,6 +22,7 @@ go_library( go_test( name = "syncer_test", + timeout = "short", srcs = ["syncer_test.go"], flaky = True, deps = [ diff --git a/ddl/tiflashtest/BUILD.bazel b/ddl/tiflashtest/BUILD.bazel index 2a803cf03c5af..df876043ab95d 100644 --- a/ddl/tiflashtest/BUILD.bazel +++ b/ddl/tiflashtest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "tiflashtest_test", + timeout = "short", srcs = [ "ddl_tiflash_test.go", "main_test.go", diff --git a/executor/aggfuncs/BUILD.bazel b/executor/aggfuncs/BUILD.bazel index 958cbba4ac7d7..1db81ffe3f4aa 100644 --- a/executor/aggfuncs/BUILD.bazel +++ b/executor/aggfuncs/BUILD.bazel @@ -58,7 +58,7 @@ go_library( go_test( name = "aggfuncs_test", - timeout = "moderate", + timeout = "short", srcs = [ "aggfunc_test.go", "export_test.go", diff --git a/executor/autoidtest/BUILD.bazel b/executor/autoidtest/BUILD.bazel index a59514bef3bd6..28aad8e63fa8c 100644 --- a/executor/autoidtest/BUILD.bazel +++ b/executor/autoidtest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "autoidtest_test", + timeout = "short", srcs = [ "autoid_test.go", "main_test.go", diff --git a/executor/issuetest/BUILD.bazel b/executor/issuetest/BUILD.bazel index 8d930738d2b7c..12282131b98e0 100644 --- a/executor/issuetest/BUILD.bazel +++ b/executor/issuetest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "issuetest_test", + timeout = "short", srcs = [ "executor_issue_test.go", "main_test.go", diff --git a/executor/oomtest/BUILD.bazel b/executor/oomtest/BUILD.bazel index d6d7915a0b634..2fd8fe00f7d23 100644 --- a/executor/oomtest/BUILD.bazel +++ b/executor/oomtest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "oomtest_test", - timeout = "moderate", + timeout = "short", srcs = ["oom_test.go"], flaky = True, race = "on", diff --git a/executor/writetest/BUILD.bazel b/executor/writetest/BUILD.bazel index 2ddc46c29ad82..5ef1885be7ec6 100644 --- a/executor/writetest/BUILD.bazel +++ b/executor/writetest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "writetest_test", + timeout = "short", srcs = [ "main_test.go", "write_test.go", diff --git a/expression/BUILD.bazel b/expression/BUILD.bazel index 17436f517a673..5a201d906b5a3 100644 --- a/expression/BUILD.bazel +++ b/expression/BUILD.bazel @@ -122,7 +122,7 @@ go_library( go_test( name = "expression_test", - timeout = "moderate", + timeout = "short", srcs = [ "bench_test.go", "builtin_arithmetic_test.go", diff --git a/parser/duration/BUILD.bazel b/parser/duration/BUILD.bazel index 0e676c8d58566..8015c5ce5df7d 100644 --- a/parser/duration/BUILD.bazel +++ b/parser/duration/BUILD.bazel @@ -10,7 +10,9 @@ go_library( go_test( name = "duration_test", + timeout = "short", srcs = ["duration_test.go"], embed = [":duration"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/planner/core/BUILD.bazel b/planner/core/BUILD.bazel index fe3eafb13a94f..cd20248f05d55 100644 --- a/planner/core/BUILD.bazel +++ b/planner/core/BUILD.bazel @@ -157,7 +157,7 @@ go_library( go_test( name = "core_test", - timeout = "moderate", + timeout = "short", srcs = [ "binary_plan_test.go", "cbo_test.go", diff --git a/resourcemanager/pooltask/BUILD.bazel b/resourcemanager/pooltask/BUILD.bazel index 6171e1fa3598d..176bd1871cd9e 100644 --- a/resourcemanager/pooltask/BUILD.bazel +++ b/resourcemanager/pooltask/BUILD.bazel @@ -18,7 +18,9 @@ go_library( go_test( name = "pooltask_test", + timeout = "short", srcs = ["task_test.go"], embed = [":pooltask"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/resourcemanager/util/BUILD.bazel b/resourcemanager/util/BUILD.bazel index 37283d38f7e07..ed91648321472 100644 --- a/resourcemanager/util/BUILD.bazel +++ b/resourcemanager/util/BUILD.bazel @@ -18,8 +18,10 @@ go_library( go_test( name = "util_test", + timeout = "short", srcs = ["shard_pool_map_test.go"], embed = [":util"], + flaky = True, deps = [ "//util/intest", "@com_github_stretchr_testify//require", diff --git a/server/BUILD.bazel b/server/BUILD.bazel index 2f7de500099cf..2b3e60c7676a1 100644 --- a/server/BUILD.bazel +++ b/server/BUILD.bazel @@ -126,7 +126,7 @@ go_library( go_test( name = "server_test", - timeout = "moderate", + timeout = "short", srcs = [ "column_test.go", "conn_stmt_test.go", diff --git a/session/BUILD.bazel b/session/BUILD.bazel index 2af8f62b74fa9..04b0380bd1a96 100644 --- a/session/BUILD.bazel +++ b/session/BUILD.bazel @@ -107,7 +107,7 @@ go_library( go_test( name = "session_test", - timeout = "moderate", + timeout = "short", srcs = [ "bench_test.go", "bootstrap_test.go", diff --git a/session/session_test/BUILD.bazel b/session/session_test/BUILD.bazel index f0fa774e9f9e3..57c64f49d3197 100644 --- a/session/session_test/BUILD.bazel +++ b/session/session_test/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "session_test_test", - timeout = "moderate", + timeout = "short", srcs = [ "main_test.go", "session_test.go", diff --git a/sessionctx/BUILD.bazel b/sessionctx/BUILD.bazel index f1987e5ddb063..800001fd426b3 100644 --- a/sessionctx/BUILD.bazel +++ b/sessionctx/BUILD.bazel @@ -26,7 +26,7 @@ go_library( go_test( name = "sessionctx_test", - timeout = "moderate", + timeout = "short", srcs = [ "context_test.go", "main_test.go", diff --git a/sessiontxn/BUILD.bazel b/sessiontxn/BUILD.bazel index b37a5e4ec04d3..51a54724b33ec 100644 --- a/sessiontxn/BUILD.bazel +++ b/sessiontxn/BUILD.bazel @@ -20,7 +20,7 @@ go_library( go_test( name = "sessiontxn_test", - timeout = "moderate", + timeout = "short", srcs = [ "txn_context_test.go", "txn_manager_test.go", diff --git a/sessiontxn/isolation/BUILD.bazel b/sessiontxn/isolation/BUILD.bazel index 21ca84f60ad0f..c89b245021655 100644 --- a/sessiontxn/isolation/BUILD.bazel +++ b/sessiontxn/isolation/BUILD.bazel @@ -38,7 +38,7 @@ go_library( go_test( name = "isolation_test", - timeout = "moderate", + timeout = "short", srcs = [ "main_test.go", "optimistic_test.go", diff --git a/statistics/handle/BUILD.bazel b/statistics/handle/BUILD.bazel index d52847495d539..8b351e549776b 100644 --- a/statistics/handle/BUILD.bazel +++ b/statistics/handle/BUILD.bazel @@ -59,7 +59,7 @@ go_library( go_test( name = "handle_test", - timeout = "moderate", + timeout = "short", srcs = [ "ddl_test.go", "dump_test.go", diff --git a/store/copr/copr_test/BUILD.bazel b/store/copr/copr_test/BUILD.bazel index af7d46d052bf5..e0ebf384543a2 100644 --- a/store/copr/copr_test/BUILD.bazel +++ b/store/copr/copr_test/BUILD.bazel @@ -2,10 +2,12 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "copr_test_test", + timeout = "short", srcs = [ "coprocessor_test.go", "main_test.go", ], + flaky = True, deps = [ "//config", "//kv", diff --git a/telemetry/BUILD.bazel b/telemetry/BUILD.bazel index 8b67ae1144e7b..12c9f049675da 100644 --- a/telemetry/BUILD.bazel +++ b/telemetry/BUILD.bazel @@ -51,7 +51,7 @@ go_library( go_test( name = "telemetry_test", - timeout = "moderate", + timeout = "short", srcs = [ "data_cluster_hardware_test.go", "data_feature_usage_test.go", diff --git a/tests/realtikvtest/addindextest/BUILD.bazel b/tests/realtikvtest/addindextest/BUILD.bazel index 573fb1f531abc..811229c594056 100644 --- a/tests/realtikvtest/addindextest/BUILD.bazel +++ b/tests/realtikvtest/addindextest/BUILD.bazel @@ -21,7 +21,7 @@ go_library( go_test( name = "addindextest_test", - timeout = "long", + timeout = "short", srcs = [ "add_index_test.go", "concurrent_ddl_test.go", @@ -32,6 +32,7 @@ go_test( "pitr_test.go", ], embed = [":addindextest"], + flaky = True, deps = [ "//br/pkg/lightning/backend/local", "//config", diff --git a/tests/realtikvtest/brietest/BUILD.bazel b/tests/realtikvtest/brietest/BUILD.bazel index c3118c4d7a88a..5b549a6492c5a 100644 --- a/tests/realtikvtest/brietest/BUILD.bazel +++ b/tests/realtikvtest/brietest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "brietest_test", - timeout = "moderate", + timeout = "short", srcs = [ "backup_restore_test.go", "binlog_test.go", diff --git a/tests/realtikvtest/flashbacktest/BUILD.bazel b/tests/realtikvtest/flashbacktest/BUILD.bazel index a3d81277e6e06..857a9554d09a3 100644 --- a/tests/realtikvtest/flashbacktest/BUILD.bazel +++ b/tests/realtikvtest/flashbacktest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "flashbacktest_test", + timeout = "short", srcs = [ "flashback_test.go", "main_test.go", diff --git a/tests/realtikvtest/pessimistictest/BUILD.bazel b/tests/realtikvtest/pessimistictest/BUILD.bazel index 201a27a3c26c7..26996fcf8d56a 100644 --- a/tests/realtikvtest/pessimistictest/BUILD.bazel +++ b/tests/realtikvtest/pessimistictest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "pessimistictest_test", - timeout = "long", + timeout = "short", srcs = [ "main_test.go", "pessimistic_test.go", diff --git a/tests/realtikvtest/sessiontest/BUILD.bazel b/tests/realtikvtest/sessiontest/BUILD.bazel index 98f9f2e0b2335..cdcf07e554cb4 100644 --- a/tests/realtikvtest/sessiontest/BUILD.bazel +++ b/tests/realtikvtest/sessiontest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "sessiontest_test", - timeout = "moderate", + timeout = "short", srcs = [ "main_test.go", "paging_test.go", diff --git a/tests/realtikvtest/statisticstest/BUILD.bazel b/tests/realtikvtest/statisticstest/BUILD.bazel index e9d8f215e7939..05a79aa114dd1 100644 --- a/tests/realtikvtest/statisticstest/BUILD.bazel +++ b/tests/realtikvtest/statisticstest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "statisticstest_test", - timeout = "moderate", + timeout = "short", srcs = [ "main_test.go", "statistics_test.go", diff --git a/tests/realtikvtest/txntest/BUILD.bazel b/tests/realtikvtest/txntest/BUILD.bazel index 83bc4c549ce1d..d5056004429ec 100644 --- a/tests/realtikvtest/txntest/BUILD.bazel +++ b/tests/realtikvtest/txntest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "txntest_test", - timeout = "moderate", + timeout = "short", srcs = [ "isolation_test.go", "main_test.go", diff --git a/ttl/client/BUILD.bazel b/ttl/client/BUILD.bazel index 31577c1161263..6c045a6e08fe9 100644 --- a/ttl/client/BUILD.bazel +++ b/ttl/client/BUILD.bazel @@ -23,6 +23,7 @@ go_test( timeout = "short", srcs = ["command_test.go"], embed = [":client"], + flaky = True, shard_count = 5, deps = [ "@com_github_pingcap_errors//:errors", diff --git a/ttl/metrics/BUILD.bazel b/ttl/metrics/BUILD.bazel index f8fbe4ef8030b..5945532cfda66 100644 --- a/ttl/metrics/BUILD.bazel +++ b/ttl/metrics/BUILD.bazel @@ -16,6 +16,7 @@ go_test( timeout = "short", srcs = ["metrics_test.go"], embed = [":metrics"], + flaky = True, shard_count = 5, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/ttl/ttlworker/BUILD.bazel b/ttl/ttlworker/BUILD.bazel index 6e80e4f298145..943f206ec16fe 100644 --- a/ttl/ttlworker/BUILD.bazel +++ b/ttl/ttlworker/BUILD.bazel @@ -44,7 +44,7 @@ go_library( go_test( name = "ttlworker_test", - timeout = "moderate", + timeout = "short", srcs = [ "del_test.go", "job_manager_integration_test.go", diff --git a/util/cpu/BUILD.bazel b/util/cpu/BUILD.bazel index b831ba544947b..1c351382fc238 100644 --- a/util/cpu/BUILD.bazel +++ b/util/cpu/BUILD.bazel @@ -18,6 +18,7 @@ go_library( go_test( name = "cpu_test", + timeout = "short", srcs = ["cpu_test.go"], embed = [":cpu"], flaky = True, diff --git a/util/gctuner/BUILD.bazel b/util/gctuner/BUILD.bazel index d20f8b6a5b418..f097c68c6b761 100644 --- a/util/gctuner/BUILD.bazel +++ b/util/gctuner/BUILD.bazel @@ -20,6 +20,7 @@ go_library( go_test( name = "gctuner_test", + timeout = "short", srcs = [ "finalizer_test.go", "mem_test.go", diff --git a/util/generic/BUILD.bazel b/util/generic/BUILD.bazel index 2f89ee97655fd..609168becf49b 100644 --- a/util/generic/BUILD.bazel +++ b/util/generic/BUILD.bazel @@ -9,7 +9,9 @@ go_library( go_test( name = "generic_test", + timeout = "short", srcs = ["sync_map_test.go"], + flaky = True, deps = [ ":generic", "@com_github_stretchr_testify//require", diff --git a/util/gpool/spmc/BUILD.bazel b/util/gpool/spmc/BUILD.bazel index 68028a5573b34..a3cc3dad188d9 100644 --- a/util/gpool/spmc/BUILD.bazel +++ b/util/gpool/spmc/BUILD.bazel @@ -27,6 +27,7 @@ go_library( go_test( name = "spmc_test", + timeout = "short", srcs = [ "main_test.go", "spmcpool_benchmark_test.go", diff --git a/util/memoryusagealarm/BUILD.bazel b/util/memoryusagealarm/BUILD.bazel index 80d092d6e4723..43ac9094cb002 100644 --- a/util/memoryusagealarm/BUILD.bazel +++ b/util/memoryusagealarm/BUILD.bazel @@ -20,6 +20,7 @@ go_library( go_test( name = "memoryusagealarm_test", + timeout = "short", srcs = ["memoryusagealarm_test.go"], embed = [":memoryusagealarm"], flaky = True, diff --git a/util/password-validation/BUILD.bazel b/util/password-validation/BUILD.bazel index c3649a3a15383..f81e360882b1b 100644 --- a/util/password-validation/BUILD.bazel +++ b/util/password-validation/BUILD.bazel @@ -13,8 +13,10 @@ go_library( go_test( name = "password-validation_test", + timeout = "short", srcs = ["password_validation_test.go"], embed = [":password-validation"], + flaky = True, deps = [ "//parser/auth", "//sessionctx/variable", diff --git a/util/servermemorylimit/BUILD.bazel b/util/servermemorylimit/BUILD.bazel index 0d2c4d4f3cb59..c8fcc3e3c4c79 100644 --- a/util/servermemorylimit/BUILD.bazel +++ b/util/servermemorylimit/BUILD.bazel @@ -18,6 +18,7 @@ go_library( go_test( name = "servermemorylimit_test", + timeout = "short", srcs = ["servermemorylimit_test.go"], embed = [":servermemorylimit"], flaky = True, diff --git a/util/stmtsummary/v2/BUILD.bazel b/util/stmtsummary/v2/BUILD.bazel index 53f3fb0f0cd98..634afc3e2802f 100644 --- a/util/stmtsummary/v2/BUILD.bazel +++ b/util/stmtsummary/v2/BUILD.bazel @@ -39,6 +39,7 @@ go_library( go_test( name = "stmtsummary_test", + timeout = "short", srcs = [ "column_test.go", "main_test.go", @@ -47,6 +48,7 @@ go_test( "stmtsummary_test.go", ], embed = [":stmtsummary"], + flaky = True, deps = [ "//parser/auth", "//parser/model", diff --git a/util/stmtsummary/v2/tests/BUILD.bazel b/util/stmtsummary/v2/tests/BUILD.bazel index 22a042878e6fe..988cc24c95abb 100644 --- a/util/stmtsummary/v2/tests/BUILD.bazel +++ b/util/stmtsummary/v2/tests/BUILD.bazel @@ -2,10 +2,12 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "tests_test", + timeout = "short", srcs = [ "main_test.go", "table_test.go", ], + flaky = True, deps = [ "//config", "//kv", From e3f1bcd616b508b8c64378169e32ff705b713533 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 17:18:28 +0800 Subject: [PATCH 05/11] *: update bazel Signed-off-by: Weizhen Wang --- ddl/BUILD.bazel | 2 +- ddl/failtest/BUILD.bazel | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ddl/BUILD.bazel b/ddl/BUILD.bazel index d797044d343da..080f2ccbb1584 100644 --- a/ddl/BUILD.bazel +++ b/ddl/BUILD.bazel @@ -153,7 +153,7 @@ go_library( go_test( name = "ddl_test", - timeout = "short", + timeout = "moderate", srcs = [ "attributes_sql_test.go", "backfilling_test.go", diff --git a/ddl/failtest/BUILD.bazel b/ddl/failtest/BUILD.bazel index 025f6097ae8be..4b7980412adc0 100644 --- a/ddl/failtest/BUILD.bazel +++ b/ddl/failtest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "failtest_test", - timeout = "short", + timeout = "moderate", srcs = [ "fail_db_test.go", "main_test.go", From 47a48f80706d14512932535f79840b2ca916c5fb Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 17:21:13 +0800 Subject: [PATCH 06/11] *: update bazel Signed-off-by: Weizhen Wang --- ddl/indexmergetest/BUILD.bazel | 2 +- executor/aggfuncs/BUILD.bazel | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ddl/indexmergetest/BUILD.bazel b/ddl/indexmergetest/BUILD.bazel index 15949261caff0..b70146ae8d461 100644 --- a/ddl/indexmergetest/BUILD.bazel +++ b/ddl/indexmergetest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "indexmergetest_test", - timeout = "short", + timeout = "moderate", srcs = [ "main_test.go", "merge_test.go", diff --git a/executor/aggfuncs/BUILD.bazel b/executor/aggfuncs/BUILD.bazel index 1db81ffe3f4aa..ce1aa103869f0 100644 --- a/executor/aggfuncs/BUILD.bazel +++ b/executor/aggfuncs/BUILD.bazel @@ -58,7 +58,7 @@ go_library( go_test( name = "aggfuncs_test", - timeout = "short", + timeout = "moderate", srcs = [ "aggfunc_test.go", "export_test.go", @@ -89,7 +89,7 @@ go_test( embed = [":aggfuncs"], flaky = True, race = "on", - shard_count = 25, + shard_count = 40, deps = [ "//expression", "//expression/aggregation", From ac7c14b5d3096b0e81c25217ec3dbf155ab62759 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 17:23:44 +0800 Subject: [PATCH 07/11] *: update bazel Signed-off-by: Weizhen Wang --- executor/oomtest/BUILD.bazel | 2 +- expression/BUILD.bazel | 2 +- planner/core/BUILD.bazel | 2 +- server/BUILD.bazel | 2 +- session/BUILD.bazel | 2 +- session/session_test/BUILD.bazel | 2 +- sessionctx/BUILD.bazel | 2 +- sessiontxn/isolation/BUILD.bazel | 2 +- statistics/handle/BUILD.bazel | 2 +- tests/realtikvtest/addindextest/BUILD.bazel | 3 +-- tests/realtikvtest/brietest/BUILD.bazel | 2 +- tests/realtikvtest/flashbacktest/BUILD.bazel | 1 - tests/realtikvtest/pessimistictest/BUILD.bazel | 2 +- tests/realtikvtest/sessiontest/BUILD.bazel | 2 +- tests/realtikvtest/statisticstest/BUILD.bazel | 2 +- tests/realtikvtest/txntest/BUILD.bazel | 2 +- 16 files changed, 15 insertions(+), 17 deletions(-) diff --git a/executor/oomtest/BUILD.bazel b/executor/oomtest/BUILD.bazel index 2fd8fe00f7d23..d6d7915a0b634 100644 --- a/executor/oomtest/BUILD.bazel +++ b/executor/oomtest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "oomtest_test", - timeout = "short", + timeout = "moderate", srcs = ["oom_test.go"], flaky = True, race = "on", diff --git a/expression/BUILD.bazel b/expression/BUILD.bazel index 5a201d906b5a3..17436f517a673 100644 --- a/expression/BUILD.bazel +++ b/expression/BUILD.bazel @@ -122,7 +122,7 @@ go_library( go_test( name = "expression_test", - timeout = "short", + timeout = "moderate", srcs = [ "bench_test.go", "builtin_arithmetic_test.go", diff --git a/planner/core/BUILD.bazel b/planner/core/BUILD.bazel index cd20248f05d55..fe3eafb13a94f 100644 --- a/planner/core/BUILD.bazel +++ b/planner/core/BUILD.bazel @@ -157,7 +157,7 @@ go_library( go_test( name = "core_test", - timeout = "short", + timeout = "moderate", srcs = [ "binary_plan_test.go", "cbo_test.go", diff --git a/server/BUILD.bazel b/server/BUILD.bazel index 2b3e60c7676a1..2f7de500099cf 100644 --- a/server/BUILD.bazel +++ b/server/BUILD.bazel @@ -126,7 +126,7 @@ go_library( go_test( name = "server_test", - timeout = "short", + timeout = "moderate", srcs = [ "column_test.go", "conn_stmt_test.go", diff --git a/session/BUILD.bazel b/session/BUILD.bazel index 04b0380bd1a96..2af8f62b74fa9 100644 --- a/session/BUILD.bazel +++ b/session/BUILD.bazel @@ -107,7 +107,7 @@ go_library( go_test( name = "session_test", - timeout = "short", + timeout = "moderate", srcs = [ "bench_test.go", "bootstrap_test.go", diff --git a/session/session_test/BUILD.bazel b/session/session_test/BUILD.bazel index 57c64f49d3197..f0fa774e9f9e3 100644 --- a/session/session_test/BUILD.bazel +++ b/session/session_test/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "session_test_test", - timeout = "short", + timeout = "moderate", srcs = [ "main_test.go", "session_test.go", diff --git a/sessionctx/BUILD.bazel b/sessionctx/BUILD.bazel index 800001fd426b3..f1987e5ddb063 100644 --- a/sessionctx/BUILD.bazel +++ b/sessionctx/BUILD.bazel @@ -26,7 +26,7 @@ go_library( go_test( name = "sessionctx_test", - timeout = "short", + timeout = "moderate", srcs = [ "context_test.go", "main_test.go", diff --git a/sessiontxn/isolation/BUILD.bazel b/sessiontxn/isolation/BUILD.bazel index c89b245021655..21ca84f60ad0f 100644 --- a/sessiontxn/isolation/BUILD.bazel +++ b/sessiontxn/isolation/BUILD.bazel @@ -38,7 +38,7 @@ go_library( go_test( name = "isolation_test", - timeout = "short", + timeout = "moderate", srcs = [ "main_test.go", "optimistic_test.go", diff --git a/statistics/handle/BUILD.bazel b/statistics/handle/BUILD.bazel index 8b351e549776b..d52847495d539 100644 --- a/statistics/handle/BUILD.bazel +++ b/statistics/handle/BUILD.bazel @@ -59,7 +59,7 @@ go_library( go_test( name = "handle_test", - timeout = "short", + timeout = "moderate", srcs = [ "ddl_test.go", "dump_test.go", diff --git a/tests/realtikvtest/addindextest/BUILD.bazel b/tests/realtikvtest/addindextest/BUILD.bazel index 811229c594056..573fb1f531abc 100644 --- a/tests/realtikvtest/addindextest/BUILD.bazel +++ b/tests/realtikvtest/addindextest/BUILD.bazel @@ -21,7 +21,7 @@ go_library( go_test( name = "addindextest_test", - timeout = "short", + timeout = "long", srcs = [ "add_index_test.go", "concurrent_ddl_test.go", @@ -32,7 +32,6 @@ go_test( "pitr_test.go", ], embed = [":addindextest"], - flaky = True, deps = [ "//br/pkg/lightning/backend/local", "//config", diff --git a/tests/realtikvtest/brietest/BUILD.bazel b/tests/realtikvtest/brietest/BUILD.bazel index 5b549a6492c5a..c3118c4d7a88a 100644 --- a/tests/realtikvtest/brietest/BUILD.bazel +++ b/tests/realtikvtest/brietest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "brietest_test", - timeout = "short", + timeout = "moderate", srcs = [ "backup_restore_test.go", "binlog_test.go", diff --git a/tests/realtikvtest/flashbacktest/BUILD.bazel b/tests/realtikvtest/flashbacktest/BUILD.bazel index 857a9554d09a3..a3d81277e6e06 100644 --- a/tests/realtikvtest/flashbacktest/BUILD.bazel +++ b/tests/realtikvtest/flashbacktest/BUILD.bazel @@ -2,7 +2,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "flashbacktest_test", - timeout = "short", srcs = [ "flashback_test.go", "main_test.go", diff --git a/tests/realtikvtest/pessimistictest/BUILD.bazel b/tests/realtikvtest/pessimistictest/BUILD.bazel index 26996fcf8d56a..201a27a3c26c7 100644 --- a/tests/realtikvtest/pessimistictest/BUILD.bazel +++ b/tests/realtikvtest/pessimistictest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "pessimistictest_test", - timeout = "short", + timeout = "long", srcs = [ "main_test.go", "pessimistic_test.go", diff --git a/tests/realtikvtest/sessiontest/BUILD.bazel b/tests/realtikvtest/sessiontest/BUILD.bazel index cdcf07e554cb4..98f9f2e0b2335 100644 --- a/tests/realtikvtest/sessiontest/BUILD.bazel +++ b/tests/realtikvtest/sessiontest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "sessiontest_test", - timeout = "short", + timeout = "moderate", srcs = [ "main_test.go", "paging_test.go", diff --git a/tests/realtikvtest/statisticstest/BUILD.bazel b/tests/realtikvtest/statisticstest/BUILD.bazel index 05a79aa114dd1..e9d8f215e7939 100644 --- a/tests/realtikvtest/statisticstest/BUILD.bazel +++ b/tests/realtikvtest/statisticstest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "statisticstest_test", - timeout = "short", + timeout = "moderate", srcs = [ "main_test.go", "statistics_test.go", diff --git a/tests/realtikvtest/txntest/BUILD.bazel b/tests/realtikvtest/txntest/BUILD.bazel index d5056004429ec..83bc4c549ce1d 100644 --- a/tests/realtikvtest/txntest/BUILD.bazel +++ b/tests/realtikvtest/txntest/BUILD.bazel @@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "txntest_test", - timeout = "short", + timeout = "moderate", srcs = [ "isolation_test.go", "main_test.go", From 975a72879f79564fb939bfb56e935e81e7683cdc Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 17:45:20 +0800 Subject: [PATCH 08/11] *: update bazel Signed-off-by: Weizhen Wang --- br/pkg/storage/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/br/pkg/storage/BUILD.bazel b/br/pkg/storage/BUILD.bazel index 8c98a13e59500..68b0a8b03aca2 100644 --- a/br/pkg/storage/BUILD.bazel +++ b/br/pkg/storage/BUILD.bazel @@ -56,7 +56,7 @@ go_library( go_test( name = "storage_test", - timeout = "short", + timeout = "moderate", srcs = [ "azblob_test.go", "compress_test.go", From 47f52bd16d808ddc469a623b806fd9cca88dfc33 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Sat, 11 Feb 2023 18:10:48 +0800 Subject: [PATCH 09/11] *: update bazel Signed-off-by: Weizhen Wang --- tablecodec/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/tablecodec/BUILD.bazel b/tablecodec/BUILD.bazel index db89b945b183d..40530d596c488 100644 --- a/tablecodec/BUILD.bazel +++ b/tablecodec/BUILD.bazel @@ -36,6 +36,7 @@ go_test( ], embed = [":tablecodec"], flaky = True, + shard_count = 30, deps = [ "//kv", "//parser/mysql", From 6866156e412a4f5c7ec5cf5ec784268bb000deed Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Mon, 13 Feb 2023 11:51:54 +0800 Subject: [PATCH 10/11] update Signed-off-by: Weizhen Wang --- br/pkg/utils/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/br/pkg/utils/BUILD.bazel b/br/pkg/utils/BUILD.bazel index 323b126eb5c6b..498400fc53166 100644 --- a/br/pkg/utils/BUILD.bazel +++ b/br/pkg/utils/BUILD.bazel @@ -81,7 +81,7 @@ go_test( ], embed = [":utils"], flaky = True, - shard_count = 20, + shard_count = 30, deps = [ "//br/pkg/errors", "//br/pkg/metautil", From f86f873554bc795b85bfecf1767a8de14f1fe2dc Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Mon, 13 Feb 2023 12:59:57 +0800 Subject: [PATCH 11/11] update Signed-off-by: Weizhen Wang --- .bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 1ac13a3e138a7..61356f086fda5 100644 --- a/.bazelrc +++ b/.bazelrc @@ -20,7 +20,7 @@ build:race --@io_bazel_rules_go//go/config:race --test_env=GORACE=halt_on_error= test --test_env=TZ=Asia/Shanghai test --test_output=errors --test_summary=testcase -test:ci --color=yes --spawn_strategy=local +test:ci --color=yes test:ci --verbose_failures --test_verbose_timeout_warnings test:ci --test_env=GO_TEST_WRAP_TESTV=1 test:ci --experimental_ui_max_stdouterr_bytes=104857600