diff --git a/ddl/BUILD.bazel b/ddl/BUILD.bazel index 807f65715202b..84a20db600107 100644 --- a/ddl/BUILD.bazel +++ b/ddl/BUILD.bazel @@ -112,6 +112,7 @@ go_library( go_test( name = "ddl_test", + timeout = "short", srcs = [ "attributes_sql_test.go", "callback_test.go", diff --git a/expression/BUILD.bazel b/expression/BUILD.bazel index 031d7ad48efce..7bc6af0b1bf50 100644 --- a/expression/BUILD.bazel +++ b/expression/BUILD.bazel @@ -113,6 +113,7 @@ go_library( go_test( name = "expression_test", + timeout = "short", srcs = [ "bench_test.go", "builtin_arithmetic_test.go", diff --git a/infoschema/BUILD.bazel b/infoschema/BUILD.bazel index 1f78edce74f2a..52507d34501f0 100644 --- a/infoschema/BUILD.bazel +++ b/infoschema/BUILD.bazel @@ -40,6 +40,7 @@ go_library( "//util/domainutil", "//util/execdetails", "//util/logutil", + "//util/mock", "//util/pdapi", "//util/sem", "//util/set", diff --git a/planner/core/BUILD.bazel b/planner/core/BUILD.bazel index 7c7186892db2d..c40e017e710d2 100644 --- a/planner/core/BUILD.bazel +++ b/planner/core/BUILD.bazel @@ -143,6 +143,7 @@ go_library( go_test( name = "core_test", + timeout = "short", srcs = [ "cache_test.go", "cacheable_checker_test.go", diff --git a/planner/funcdep/BUILD.bazel b/planner/funcdep/BUILD.bazel index 0687c1177e8a9..2a0c09b58a244 100644 --- a/planner/funcdep/BUILD.bazel +++ b/planner/funcdep/BUILD.bazel @@ -17,6 +17,7 @@ go_library( go_test( name = "funcdep_test", + timeout = "short", srcs = [ "extract_fd_test.go", "fast_int_set_bench_test.go", diff --git a/planner/implementation/BUILD.bazel b/planner/implementation/BUILD.bazel index a7fd495a31e3f..ec042cb40b382 100644 --- a/planner/implementation/BUILD.bazel +++ b/planner/implementation/BUILD.bazel @@ -23,6 +23,7 @@ go_library( go_test( name = "implementation_test", + timeout = "short", srcs = [ "base_test.go", "main_test.go", diff --git a/planner/memo/BUILD.bazel b/planner/memo/BUILD.bazel index 5e6fb48a5f06d..7886691fd3b9c 100644 --- a/planner/memo/BUILD.bazel +++ b/planner/memo/BUILD.bazel @@ -20,6 +20,7 @@ go_library( go_test( name = "memo_test", + timeout = "short", srcs = [ "expr_iterator_test.go", "group_expr_test.go", diff --git a/planner/util/BUILD.bazel b/planner/util/BUILD.bazel index 85359c0e11cef..78f443d4d1fa9 100644 --- a/planner/util/BUILD.bazel +++ b/planner/util/BUILD.bazel @@ -22,6 +22,7 @@ go_library( go_test( name = "util_test", + timeout = "short", srcs = [ "main_test.go", "path_test.go", diff --git a/privilege/privileges/BUILD.bazel b/privilege/privileges/BUILD.bazel index fc3084c3ff602..7ada9e31fbaa6 100644 --- a/privilege/privileges/BUILD.bazel +++ b/privilege/privileges/BUILD.bazel @@ -35,6 +35,7 @@ go_library( go_test( name = "privileges_test", + timeout = "short", srcs = [ "cache_test.go", "main_test.go", diff --git a/server/BUILD.bazel b/server/BUILD.bazel index 7a8b99826ef04..1093d540550e8 100644 --- a/server/BUILD.bazel +++ b/server/BUILD.bazel @@ -50,6 +50,7 @@ go_library( "//session/txninfo", "//sessionctx", "//sessionctx/binloginfo", + "//sessionctx/sessionstates", "//sessionctx/stmtctx", "//sessionctx/variable", "//sessiontxn", @@ -115,6 +116,7 @@ go_library( go_test( name = "server_test", + timeout = "short", srcs = [ "column_test.go", "conn_stmt_test.go", diff --git a/session/BUILD.bazel b/session/BUILD.bazel index 91e160985bfd8..b75f26dc03634 100644 --- a/session/BUILD.bazel +++ b/session/BUILD.bazel @@ -100,6 +100,7 @@ go_library( go_test( name = "session_test", + timeout = "short", srcs = [ "bench_test.go", "bootstrap_test.go", @@ -133,6 +134,7 @@ go_test( "//planner/core", "//sessionctx", "//sessionctx/variable", + "//sessiontxn", "//statistics", "//store/mockstore", "//table", diff --git a/sessionctx/BUILD.bazel b/sessionctx/BUILD.bazel index 3b542b3e8b0bd..3d966088021ba 100644 --- a/sessionctx/BUILD.bazel +++ b/sessionctx/BUILD.bazel @@ -24,6 +24,7 @@ go_library( go_test( name = "sessionctx_test", + timeout = "short", srcs = [ "context_test.go", "main_test.go", diff --git a/sessionctx/binloginfo/BUILD.bazel b/sessionctx/binloginfo/BUILD.bazel index d5964ad8cd4af..ff9c03dbfa3e2 100644 --- a/sessionctx/binloginfo/BUILD.bazel +++ b/sessionctx/binloginfo/BUILD.bazel @@ -25,6 +25,7 @@ go_library( go_test( name = "binloginfo_test", + timeout = "short", srcs = [ "binloginfo_test.go", "main_test.go", diff --git a/sessionctx/sessionstates/BUILD.bazel b/sessionctx/sessionstates/BUILD.bazel index 0b0d2c6d1c6e8..050bd784a7575 100644 --- a/sessionctx/sessionstates/BUILD.bazel +++ b/sessionctx/sessionstates/BUILD.bazel @@ -14,13 +14,18 @@ go_library( go_test( name = "sessionstates_test", + timeout = "short", srcs = ["session_states_test.go"], deps = [ "//errno", "//parser/mysql", + "//parser/terror", + "//server", "//sessionctx/variable", "//testkit", + "//types", "//util/sem", + "@com_github_pingcap_errors//:errors", "@com_github_stretchr_testify//require", ], ) diff --git a/sessionctx/stmtctx/BUILD.bazel b/sessionctx/stmtctx/BUILD.bazel index c59196a17766c..f3634845c7b4b 100644 --- a/sessionctx/stmtctx/BUILD.bazel +++ b/sessionctx/stmtctx/BUILD.bazel @@ -27,6 +27,7 @@ go_library( go_test( name = "stmtctx_test", + timeout = "short", srcs = [ "main_test.go", "stmtctx_test.go", diff --git a/sessionctx/variable/BUILD.bazel b/sessionctx/variable/BUILD.bazel index c1bfa81623030..b8ae5cb922a52 100644 --- a/sessionctx/variable/BUILD.bazel +++ b/sessionctx/variable/BUILD.bazel @@ -64,6 +64,7 @@ go_library( go_test( name = "variable_test", + timeout = "short", srcs = [ "main_test.go", "mock_globalaccessor_test.go", diff --git a/sessiontxn/BUILD.bazel b/sessiontxn/BUILD.bazel index bdb84de22657f..d20fea8d090d1 100644 --- a/sessiontxn/BUILD.bazel +++ b/sessiontxn/BUILD.bazel @@ -11,10 +11,13 @@ go_library( visibility = ["//visibility:public"], deps = [ "//infoschema", + "//kv", "//parser/ast", "//sessionctx", + "//sessionctx/variable", "//util/stringutil", "@com_github_opentracing_opentracing_go//:opentracing-go", + "@com_github_pingcap_kvproto//pkg/kvrpcpb", "@com_github_tikv_client_go_v2//oracle", ], ) diff --git a/sessiontxn/isolation/BUILD.bazel b/sessiontxn/isolation/BUILD.bazel index 16ebeaecfb9a0..be023d95df2bb 100644 --- a/sessiontxn/isolation/BUILD.bazel +++ b/sessiontxn/isolation/BUILD.bazel @@ -22,6 +22,7 @@ go_library( "//sessionctx/variable", "//sessiontxn", "//sessiontxn/staleread", + "//table/temptable", "//util/logutil", "@com_github_pingcap_errors//:errors", "@com_github_tikv_client_go_v2//error", diff --git a/sessiontxn/staleread/BUILD.bazel b/sessiontxn/staleread/BUILD.bazel index 727ee725341ec..e6a5696974964 100644 --- a/sessiontxn/staleread/BUILD.bazel +++ b/sessiontxn/staleread/BUILD.bazel @@ -16,6 +16,7 @@ go_library( "//errno", "//expression", "//infoschema", + "//kv", "//parser/ast", "//parser/mysql", "//sessionctx", diff --git a/statistics/handle/BUILD.bazel b/statistics/handle/BUILD.bazel index 716c78f2708fc..3cb657f37d436 100644 --- a/statistics/handle/BUILD.bazel +++ b/statistics/handle/BUILD.bazel @@ -56,6 +56,7 @@ go_library( go_test( name = "handle_test", + timeout = "short", srcs = [ "ddl_test.go", "dump_test.go", diff --git a/table/BUILD.bazel b/table/BUILD.bazel index e5ad2bb8c1b12..de9150fad4fdf 100644 --- a/table/BUILD.bazel +++ b/table/BUILD.bazel @@ -37,6 +37,7 @@ go_library( go_test( name = "table_test", + timeout = "short", srcs = [ "column_test.go", "main_test.go", diff --git a/table/tables/BUILD.bazel b/table/tables/BUILD.bazel index 87a7fe63ad1b2..a6e9bec521355 100644 --- a/table/tables/BUILD.bazel +++ b/table/tables/BUILD.bazel @@ -61,6 +61,7 @@ go_library( go_test( name = "tables_test", + timeout = "short", srcs = [ "cache_test.go", "index_test.go", diff --git a/tests/realtikvtest/sessiontest/BUILD.bazel b/tests/realtikvtest/sessiontest/BUILD.bazel index b0e5afb4dc0fd..14923fa0fa623 100644 --- a/tests/realtikvtest/sessiontest/BUILD.bazel +++ b/tests/realtikvtest/sessiontest/BUILD.bazel @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "sessiontest_test", + timeout = "short", srcs = [ "main_test.go", "retry_test.go", diff --git a/util/admin/BUILD.bazel b/util/admin/BUILD.bazel index b46e0ea03bc7f..d6b829bb4ed2c 100644 --- a/util/admin/BUILD.bazel +++ b/util/admin/BUILD.bazel @@ -28,6 +28,7 @@ go_library( go_test( name = "admin_test", + timeout = "short", srcs = [ "admin_integration_test.go", "main_test.go", diff --git a/util/arena/BUILD.bazel b/util/arena/BUILD.bazel index 412221d3af4e3..3b7582f4ea356 100644 --- a/util/arena/BUILD.bazel +++ b/util/arena/BUILD.bazel @@ -9,6 +9,7 @@ go_library( go_test( name = "arena_test", + timeout = "short", srcs = [ "arena_test.go", "main_test.go", diff --git a/util/collate/BUILD.bazel b/util/collate/BUILD.bazel index d104760eb78f5..e30bc60cf4818 100644 --- a/util/collate/BUILD.bazel +++ b/util/collate/BUILD.bazel @@ -32,6 +32,7 @@ go_library( go_test( name = "collate_test", + timeout = "short", srcs = [ "collate_bench_test.go", "collate_test.go", diff --git a/util/ddl-checker/BUILD.bazel b/util/ddl-checker/BUILD.bazel index 07ae93eca9980..f364776532653 100644 --- a/util/ddl-checker/BUILD.bazel +++ b/util/ddl-checker/BUILD.bazel @@ -23,6 +23,7 @@ go_library( go_test( name = "ddl-checker_test", + timeout = "short", srcs = ["executable_checker_test.go"], embed = [":ddl-checker"], deps = [ diff --git a/util/deadlockhistory/BUILD.bazel b/util/deadlockhistory/BUILD.bazel index 55b4c6199eeec..da5bff2870aed 100644 --- a/util/deadlockhistory/BUILD.bazel +++ b/util/deadlockhistory/BUILD.bazel @@ -17,6 +17,7 @@ go_library( go_test( name = "deadlockhistory_test", + timeout = "short", srcs = [ "deadlock_history_test.go", "main_test.go", diff --git a/util/disk/BUILD.bazel b/util/disk/BUILD.bazel index 7f28bc941a2b5..84ea6c67d676f 100644 --- a/util/disk/BUILD.bazel +++ b/util/disk/BUILD.bazel @@ -22,6 +22,7 @@ go_library( go_test( name = "disk_test", + timeout = "short", srcs = [ "main_test.go", "tempDir_test.go",