From bf743a6ca0326675caf55f86a7bf0a93130a2918 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Fri, 22 Jul 2022 15:35:09 +0800 Subject: [PATCH] *: enable flaky test for all test (#36385) close pingcap/tidb#36404 --- Makefile | 4 ++-- bindinfo/BUILD.bazel | 1 + br/cmd/br/BUILD.bazel | 1 + br/cmd/tidb-lightning-ctl/BUILD.bazel | 1 + br/cmd/tidb-lightning/BUILD.bazel | 1 + br/pkg/backup/BUILD.bazel | 1 + br/pkg/checksum/BUILD.bazel | 1 + br/pkg/conn/BUILD.bazel | 2 ++ br/pkg/errors/BUILD.bazel | 1 + br/pkg/glue/BUILD.bazel | 1 + br/pkg/gluetikv/BUILD.bazel | 1 + br/pkg/lightning/BUILD.bazel | 1 + br/pkg/lightning/backend/BUILD.bazel | 1 + br/pkg/lightning/backend/kv/BUILD.bazel | 1 + br/pkg/lightning/backend/local/BUILD.bazel | 4 +++- br/pkg/lightning/backend/tidb/BUILD.bazel | 1 + br/pkg/lightning/checkpoints/BUILD.bazel | 1 + br/pkg/lightning/common/BUILD.bazel | 1 + br/pkg/lightning/config/BUILD.bazel | 1 + br/pkg/lightning/errormanager/BUILD.bazel | 1 + br/pkg/lightning/log/BUILD.bazel | 1 + br/pkg/lightning/metric/BUILD.bazel | 1 + br/pkg/lightning/mydump/BUILD.bazel | 1 + br/pkg/lightning/restore/BUILD.bazel | 2 ++ br/pkg/lightning/restore/mock/BUILD.bazel | 1 + br/pkg/lightning/tikv/BUILD.bazel | 1 + br/pkg/lightning/verification/BUILD.bazel | 1 + br/pkg/lightning/worker/BUILD.bazel | 1 + br/pkg/logutil/BUILD.bazel | 1 + br/pkg/membuf/BUILD.bazel | 1 + br/pkg/metautil/BUILD.bazel | 1 + br/pkg/mock/BUILD.bazel | 1 + br/pkg/pdutil/BUILD.bazel | 1 + br/pkg/redact/BUILD.bazel | 1 + br/pkg/restore/BUILD.bazel | 1 + br/pkg/rtree/BUILD.bazel | 1 + br/pkg/storage/BUILD.bazel | 1 + br/pkg/stream/BUILD.bazel | 4 ++++ br/pkg/streamhelper/BUILD.bazel | 2 ++ br/pkg/summary/BUILD.bazel | 1 + br/pkg/task/BUILD.bazel | 2 +- br/pkg/trace/BUILD.bazel | 1 + br/pkg/utils/BUILD.bazel | 3 +++ br/pkg/version/BUILD.bazel | 2 ++ br/pkg/version/build/BUILD.bazel | 1 + cmd/ddltest/BUILD.bazel | 1 + cmd/explaintest/BUILD.bazel | 1 + cmd/importer/BUILD.bazel | 1 + config/BUILD.bazel | 1 + ddl/label/BUILD.bazel | 1 + ddl/schematracker/BUILD.bazel | 1 + domain/globalconfigsync/BUILD.bazel | 1 + domain/infosync/BUILD.bazel | 3 +++ dumpling/export/BUILD.bazel | 1 + errno/BUILD.bazel | 1 + executor/BUILD.bazel | 1 + executor/aggfuncs/BUILD.bazel | 1 + executor/kvtest/BUILD.bazel | 1 + executor/oomtest/BUILD.bazel | 1 + executor/seqtest/BUILD.bazel | 1 + executor/tiflashtest/BUILD.bazel | 1 + infoschema/perfschema/BUILD.bazel | 1 + kv/BUILD.bazel | 1 + meta/autoid/BUILD.bazel | 1 + metrics/BUILD.bazel | 2 ++ parser/BUILD.bazel | 1 + parser/ast/BUILD.bazel | 1 + parser/auth/BUILD.bazel | 1 + parser/charset/BUILD.bazel | 1 + parser/format/BUILD.bazel | 1 + parser/model/BUILD.bazel | 1 + parser/mysql/BUILD.bazel | 1 + parser/opcode/BUILD.bazel | 1 + parser/terror/BUILD.bazel | 1 + parser/types/BUILD.bazel | 1 + planner/cascades/BUILD.bazel | 1 + planner/core/BUILD.bazel | 2 ++ planner/funcdep/BUILD.bazel | 1 + planner/implementation/BUILD.bazel | 1 + planner/memo/BUILD.bazel | 1 + planner/util/BUILD.bazel | 1 + plugin/BUILD.bazel | 1 + plugin/conn_ip_example/BUILD.bazel | 1 + sessionctx/BUILD.bazel | 1 + sessionctx/binloginfo/BUILD.bazel | 1 + sessionctx/sessionstates/BUILD.bazel | 1 + sessionctx/stmtctx/BUILD.bazel | 1 + sessionctx/variable/BUILD.bazel | 2 ++ sessiontxn/BUILD.bazel | 2 ++ sessiontxn/isolation/BUILD.bazel | 1 + sessiontxn/staleread/BUILD.bazel | 1 + statistics/BUILD.bazel | 4 ++++ store/BUILD.bazel | 1 + store/copr/BUILD.bazel | 1 + store/driver/BUILD.bazel | 1 + store/driver/error/BUILD.bazel | 1 + store/driver/txn/BUILD.bazel | 1 + store/gcworker/BUILD.bazel | 1 + store/helper/BUILD.bazel | 1 + store/mockstore/BUILD.bazel | 1 + store/mockstore/mockcopr/BUILD.bazel | 1 + store/mockstore/unistore/BUILD.bazel | 1 + store/mockstore/unistore/cophandler/BUILD.bazel | 1 + store/mockstore/unistore/lockstore/BUILD.bazel | 1 + store/mockstore/unistore/tikv/BUILD.bazel | 1 + store/mockstore/unistore/util/lockwaiter/BUILD.bazel | 1 + structure/BUILD.bazel | 1 + table/temptable/BUILD.bazel | 1 + tablecodec/BUILD.bazel | 1 + tablecodec/rowindexcodec/BUILD.bazel | 1 + telemetry/BUILD.bazel | 1 + telemetry/cte_test/BUILD.bazel | 1 + testkit/testfork/BUILD.bazel | 1 + testkit/testutil/BUILD.bazel | 1 + tests/globalkilltest/BUILD.bazel | 1 + tests/graceshutdown/BUILD.bazel | 1 + tests/readonlytest/BUILD.bazel | 1 + tests/realtikvtest/brietest/BUILD.bazel | 1 + tests/realtikvtest/pessimistictest/BUILD.bazel | 1 + tests/realtikvtest/statisticstest/BUILD.bazel | 1 + tests/realtikvtest/txntest/BUILD.bazel | 1 + tidb-binlog/driver/reader/BUILD.bazel | 1 + tidb-binlog/node/BUILD.bazel | 1 + tidb-binlog/pump_client/BUILD.bazel | 1 + tidb-server/BUILD.bazel | 3 +++ types/BUILD.bazel | 1 + types/json/BUILD.bazel | 1 + types/parser_driver/BUILD.bazel | 1 + util/admin/BUILD.bazel | 1 + util/arena/BUILD.bazel | 1 + util/benchdaily/BUILD.bazel | 1 + util/bitmap/BUILD.bazel | 1 + util/checksum/BUILD.bazel | 1 + util/chunk/BUILD.bazel | 1 + util/codec/BUILD.bazel | 1 + util/collate/BUILD.bazel | 1 + util/column-mapping/BUILD.bazel | 1 + util/cpuprofile/BUILD.bazel | 1 + util/cteutil/BUILD.bazel | 1 + util/dbterror/BUILD.bazel | 1 + util/dbutil/BUILD.bazel | 1 + util/ddl-checker/BUILD.bazel | 1 + util/deadlockhistory/BUILD.bazel | 1 + util/disjointset/BUILD.bazel | 1 + util/disk/BUILD.bazel | 1 + util/encrypt/BUILD.bazel | 1 + util/engine/BUILD.bazel | 9 +++++++++ util/etcd/BUILD.bazel | 1 + util/execdetails/BUILD.bazel | 1 + util/expensivequery/BUILD.bazel | 1 + util/fastrand/BUILD.bazel | 1 + util/filter/BUILD.bazel | 1 + util/format/BUILD.bazel | 1 + util/generatedexpr/BUILD.bazel | 1 + util/hack/BUILD.bazel | 1 + util/keydecoder/BUILD.bazel | 1 + util/kvcache/BUILD.bazel | 1 + util/localpool/BUILD.bazel | 1 + util/logutil/BUILD.bazel | 1 + util/mathutil/BUILD.bazel | 1 + util/memory/BUILD.bazel | 1 + util/mock/BUILD.bazel | 1 + util/mvmap/BUILD.bazel | 1 + util/paging/BUILD.bazel | 1 + util/parser/BUILD.bazel | 1 + util/plancodec/BUILD.bazel | 1 + util/printer/BUILD.bazel | 1 + util/profile/BUILD.bazel | 1 + util/promutil/BUILD.bazel | 1 + util/ranger/BUILD.bazel | 1 + util/regexpr-router/BUILD.bazel | 1 + util/resourcegrouptag/BUILD.bazel | 1 + util/rowDecoder/BUILD.bazel | 1 + util/rowcodec/BUILD.bazel | 1 + util/schemacmp/BUILD.bazel | 1 + util/selection/BUILD.bazel | 1 + util/sem/BUILD.bazel | 1 + util/set/BUILD.bazel | 1 + util/slice/BUILD.bazel | 1 + util/sqlexec/BUILD.bazel | 1 + util/stmtsummary/BUILD.bazel | 1 + util/stringutil/BUILD.bazel | 1 + util/sys/linux/BUILD.bazel | 1 + util/sys/storage/BUILD.bazel | 1 + util/systimemon/BUILD.bazel | 1 + util/table-filter/BUILD.bazel | 1 + util/table-router/BUILD.bazel | 1 + util/table-rule-selector/BUILD.bazel | 1 + util/texttree/BUILD.bazel | 1 + util/timeutil/BUILD.bazel | 1 + util/topsql/BUILD.bazel | 1 + util/topsql/collector/BUILD.bazel | 1 + util/topsql/reporter/BUILD.bazel | 1 + util/topsql/stmtstats/BUILD.bazel | 1 + util/tracing/BUILD.bazel | 1 + util/vitess/BUILD.bazel | 1 + 196 files changed, 227 insertions(+), 4 deletions(-) create mode 100644 util/engine/BUILD.bazel diff --git a/Makefile b/Makefile index 631afca546073..c8a1d29ea761b 100644 --- a/Makefile +++ b/Makefile @@ -435,10 +435,10 @@ bazel_test: failpoint-enable bazel_ci_prepare bazel_coverage_test: failpoint-enable bazel_ci_prepare - bazel --output_user_root=/home/jenkins/.tidb/tmp coverage --config=ci --@io_bazel_rules_go//go/config:cover_format=go_cover \ + bazel --output_user_root=/home/jenkins/.tidb/tmp coverage --config=ci --build_event_json_file=bazel_1.json --@io_bazel_rules_go//go/config:cover_format=go_cover \ -- //... -//cmd/... -//tests/graceshutdown/... \ -//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test - bazel --output_user_root=/home/jenkins/.tidb/tmp coverage --config=ci --@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=featuretag \ + bazel --output_user_root=/home/jenkins/.tidb/tmp coverage --config=ci --build_event_json_file=bazel_2.json --@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=featuretag \ -- //... -//cmd/... -//tests/graceshutdown/... \ -//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test diff --git a/bindinfo/BUILD.bazel b/bindinfo/BUILD.bazel index 299bcc1c6cbee..37339a990cf13 100644 --- a/bindinfo/BUILD.bazel +++ b/bindinfo/BUILD.bazel @@ -55,6 +55,7 @@ go_test( "temptable_test.go", ], embed = [":bindinfo"], + flaky = True, deps = [ "//config", "//domain", diff --git a/br/cmd/br/BUILD.bazel b/br/cmd/br/BUILD.bazel index e558bf367b4ec..7254e0b4c3fdb 100644 --- a/br/cmd/br/BUILD.bazel +++ b/br/cmd/br/BUILD.bazel @@ -56,4 +56,5 @@ go_test( name = "br_test", srcs = ["main_test.go"], embed = [":br_lib"], + flaky = True, ) diff --git a/br/cmd/tidb-lightning-ctl/BUILD.bazel b/br/cmd/tidb-lightning-ctl/BUILD.bazel index 33aa0bdfa37e0..32fc01fbefbbd 100644 --- a/br/cmd/tidb-lightning-ctl/BUILD.bazel +++ b/br/cmd/tidb-lightning-ctl/BUILD.bazel @@ -28,4 +28,5 @@ go_test( name = "tidb-lightning-ctl_test", srcs = ["main_test.go"], embed = [":tidb-lightning-ctl_lib"], + flaky = True, ) diff --git a/br/cmd/tidb-lightning/BUILD.bazel b/br/cmd/tidb-lightning/BUILD.bazel index 6098f1db43f84..cf4d53c6626bb 100644 --- a/br/cmd/tidb-lightning/BUILD.bazel +++ b/br/cmd/tidb-lightning/BUILD.bazel @@ -25,4 +25,5 @@ go_test( name = "tidb-lightning_test", srcs = ["main_test.go"], embed = [":tidb-lightning_lib"], + flaky = True, ) diff --git a/br/pkg/backup/BUILD.bazel b/br/pkg/backup/BUILD.bazel index 0ee2f27af135f..89ac1aec73288 100644 --- a/br/pkg/backup/BUILD.bazel +++ b/br/pkg/backup/BUILD.bazel @@ -64,6 +64,7 @@ go_test( "schema_test.go", ], embed = [":backup"], + flaky = True, deps = [ "//br/pkg/conn", "//br/pkg/metautil", diff --git a/br/pkg/checksum/BUILD.bazel b/br/pkg/checksum/BUILD.bazel index db1bf73ea87bd..3b668877113ad 100644 --- a/br/pkg/checksum/BUILD.bazel +++ b/br/pkg/checksum/BUILD.bazel @@ -35,6 +35,7 @@ go_test( "main_test.go", ], embed = [":checksum"], + flaky = True, deps = [ "//br/pkg/backup", "//br/pkg/metautil", diff --git a/br/pkg/conn/BUILD.bazel b/br/pkg/conn/BUILD.bazel index ad1bcacaaac8d..c1deb8e6c489f 100644 --- a/br/pkg/conn/BUILD.bazel +++ b/br/pkg/conn/BUILD.bazel @@ -14,6 +14,7 @@ go_library( "//br/pkg/version", "//domain", "//kv", + "//util/engine", "@com_github_docker_go_units//:go-units", "@com_github_opentracing_opentracing_go//:opentracing-go", "@com_github_pingcap_errors//:errors", @@ -41,6 +42,7 @@ go_test( "main_test.go", ], embed = [":conn"], + flaky = True, deps = [ "//br/pkg/pdutil", "//br/pkg/utils", diff --git a/br/pkg/errors/BUILD.bazel b/br/pkg/errors/BUILD.bazel index fd6f45603d35c..7b3cc9043a507 100644 --- a/br/pkg/errors/BUILD.bazel +++ b/br/pkg/errors/BUILD.bazel @@ -11,6 +11,7 @@ go_library( go_test( name = "errors_test", srcs = ["errors_test.go"], + flaky = True, deps = [ ":errors", "@com_github_pingcap_errors//:errors", diff --git a/br/pkg/glue/BUILD.bazel b/br/pkg/glue/BUILD.bazel index e51549b578927..05955a4ca5e22 100644 --- a/br/pkg/glue/BUILD.bazel +++ b/br/pkg/glue/BUILD.bazel @@ -25,6 +25,7 @@ go_library( go_test( name = "glue_test", srcs = ["console_glue_test.go"], + flaky = True, deps = [ ":glue", "@com_github_fatih_color//:color", diff --git a/br/pkg/gluetikv/BUILD.bazel b/br/pkg/gluetikv/BUILD.bazel index 7d8c6118604e4..884514ee86255 100644 --- a/br/pkg/gluetikv/BUILD.bazel +++ b/br/pkg/gluetikv/BUILD.bazel @@ -22,5 +22,6 @@ go_test( name = "gluetikv_test", srcs = ["glue_test.go"], embed = [":gluetikv"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/br/pkg/lightning/BUILD.bazel b/br/pkg/lightning/BUILD.bazel index 99d534762fc69..6da0f6c1b8bea 100644 --- a/br/pkg/lightning/BUILD.bazel +++ b/br/pkg/lightning/BUILD.bazel @@ -48,6 +48,7 @@ go_test( "main_test.go", ], embed = [":lightning"], + flaky = True, deps = [ "//br/pkg/lightning/checkpoints", "//br/pkg/lightning/config", diff --git a/br/pkg/lightning/backend/BUILD.bazel b/br/pkg/lightning/backend/BUILD.bazel index 225c39df4c10b..c0d1e511880fa 100644 --- a/br/pkg/lightning/backend/BUILD.bazel +++ b/br/pkg/lightning/backend/BUILD.bazel @@ -26,6 +26,7 @@ go_library( go_test( name = "backend_test", srcs = ["backend_test.go"], + flaky = True, deps = [ ":backend", "//br/pkg/lightning/backend/kv", diff --git a/br/pkg/lightning/backend/kv/BUILD.bazel b/br/pkg/lightning/backend/kv/BUILD.bazel index f0b8c5545c330..977b0a71ef583 100644 --- a/br/pkg/lightning/backend/kv/BUILD.bazel +++ b/br/pkg/lightning/backend/kv/BUILD.bazel @@ -50,6 +50,7 @@ go_test( "sql2kv_test.go", ], embed = [":kv"], + flaky = True, deps = [ "//br/pkg/lightning/common", "//br/pkg/lightning/log", diff --git a/br/pkg/lightning/backend/local/BUILD.bazel b/br/pkg/lightning/backend/local/BUILD.bazel index 02358eb492d32..34824a6f6b10d 100644 --- a/br/pkg/lightning/backend/local/BUILD.bazel +++ b/br/pkg/lightning/backend/local/BUILD.bazel @@ -43,6 +43,7 @@ go_library( "//table", "//tablecodec", "//util/codec", + "//util/engine", "//util/hack", "//util/mathutil", "//util/ranger", @@ -88,6 +89,7 @@ go_test( "localhelper_test.go", ], embed = [":local"], + flaky = True, deps = [ "//br/pkg/lightning/backend", "//br/pkg/lightning/backend/kv", @@ -100,7 +102,6 @@ go_test( "//br/pkg/pdutil", "//br/pkg/restore", "//br/pkg/utils", - "//br/pkg/version", "//kv", "//parser/mysql", "//sessionctx/stmtctx", @@ -108,6 +109,7 @@ go_test( "//tablecodec", "//types", "//util/codec", + "//util/engine", "//util/hack", "@com_github_cockroachdb_pebble//:pebble", "@com_github_cockroachdb_pebble//sstable", diff --git a/br/pkg/lightning/backend/tidb/BUILD.bazel b/br/pkg/lightning/backend/tidb/BUILD.bazel index 9dd8a9a876c14..b8a6a3f306308 100644 --- a/br/pkg/lightning/backend/tidb/BUILD.bazel +++ b/br/pkg/lightning/backend/tidb/BUILD.bazel @@ -32,6 +32,7 @@ go_library( go_test( name = "tidb_test", srcs = ["tidb_test.go"], + flaky = True, deps = [ ":tidb", "//br/pkg/lightning/backend", diff --git a/br/pkg/lightning/checkpoints/BUILD.bazel b/br/pkg/lightning/checkpoints/BUILD.bazel index 35d6b216b7d49..ceac0f75b8aaa 100644 --- a/br/pkg/lightning/checkpoints/BUILD.bazel +++ b/br/pkg/lightning/checkpoints/BUILD.bazel @@ -40,6 +40,7 @@ go_test( "main_test.go", ], embed = [":checkpoints"], + flaky = True, deps = [ "//br/pkg/lightning/checkpoints/checkpointspb", "//br/pkg/lightning/config", diff --git a/br/pkg/lightning/common/BUILD.bazel b/br/pkg/lightning/common/BUILD.bazel index c64a3fdf85654..66921cd4e1f14 100644 --- a/br/pkg/lightning/common/BUILD.bazel +++ b/br/pkg/lightning/common/BUILD.bazel @@ -50,6 +50,7 @@ go_test( "util_test.go", ], embed = [":common"], + flaky = True, deps = [ "//br/pkg/errors", "//br/pkg/lightning/log", diff --git a/br/pkg/lightning/config/BUILD.bazel b/br/pkg/lightning/config/BUILD.bazel index 04e5e38403b2b..71393ea9546bb 100644 --- a/br/pkg/lightning/config/BUILD.bazel +++ b/br/pkg/lightning/config/BUILD.bazel @@ -36,6 +36,7 @@ go_test( "config_test.go", "configlist_test.go", ], + flaky = True, deps = [ ":config", "//parser/mysql", diff --git a/br/pkg/lightning/errormanager/BUILD.bazel b/br/pkg/lightning/errormanager/BUILD.bazel index 7aea8447865e8..5fcc8f47ea3f1 100644 --- a/br/pkg/lightning/errormanager/BUILD.bazel +++ b/br/pkg/lightning/errormanager/BUILD.bazel @@ -24,6 +24,7 @@ go_test( name = "errormanager_test", srcs = ["errormanager_test.go"], embed = [":errormanager"], + flaky = True, deps = [ "//br/pkg/lightning/config", "//br/pkg/lightning/log", diff --git a/br/pkg/lightning/log/BUILD.bazel b/br/pkg/lightning/log/BUILD.bazel index 3e3865487f3e0..a076f60c110ed 100644 --- a/br/pkg/lightning/log/BUILD.bazel +++ b/br/pkg/lightning/log/BUILD.bazel @@ -27,6 +27,7 @@ go_test( "filter_test.go", "log_test.go", ], + flaky = True, importpath = "github.com/pingcap/tidb/br/pkg/lightning/log_test", deps = [ ":log", diff --git a/br/pkg/lightning/metric/BUILD.bazel b/br/pkg/lightning/metric/BUILD.bazel index 1806c74efd06e..25ea7ae26ca86 100644 --- a/br/pkg/lightning/metric/BUILD.bazel +++ b/br/pkg/lightning/metric/BUILD.bazel @@ -15,6 +15,7 @@ go_library( go_test( name = "metric_test", srcs = ["metric_test.go"], + flaky = True, deps = [ ":metric", "//util/promutil", diff --git a/br/pkg/lightning/mydump/BUILD.bazel b/br/pkg/lightning/mydump/BUILD.bazel index 1736f87af679f..3938d0c6ddf3f 100644 --- a/br/pkg/lightning/mydump/BUILD.bazel +++ b/br/pkg/lightning/mydump/BUILD.bazel @@ -59,6 +59,7 @@ go_test( "examples/*", ]), embed = [":mydump"], + flaky = True, deps = [ "//br/pkg/lightning/config", "//br/pkg/lightning/log", diff --git a/br/pkg/lightning/restore/BUILD.bazel b/br/pkg/lightning/restore/BUILD.bazel index afb763512059c..04d242e42131d 100644 --- a/br/pkg/lightning/restore/BUILD.bazel +++ b/br/pkg/lightning/restore/BUILD.bazel @@ -54,6 +54,7 @@ go_library( "//table/tables", "//types", "//util/collate", + "//util/engine", "//util/mathutil", "//util/mock", "@com_github_coreos_go_semver//semver", @@ -91,6 +92,7 @@ go_test( "tidb_test.go", ], embed = [":restore"], + flaky = True, deps = [ "//br/pkg/lightning/backend", "//br/pkg/lightning/backend/kv", diff --git a/br/pkg/lightning/restore/mock/BUILD.bazel b/br/pkg/lightning/restore/mock/BUILD.bazel index 99b0018ee1bd1..5f7d47cc4be51 100644 --- a/br/pkg/lightning/restore/mock/BUILD.bazel +++ b/br/pkg/lightning/restore/mock/BUILD.bazel @@ -19,6 +19,7 @@ go_test( name = "mock_test", srcs = ["mock_test.go"], embed = [":mock"], + flaky = True, deps = [ "//br/pkg/lightning/restore", "//parser/model", diff --git a/br/pkg/lightning/tikv/BUILD.bazel b/br/pkg/lightning/tikv/BUILD.bazel index 8de419abe3389..3810e46578a0b 100644 --- a/br/pkg/lightning/tikv/BUILD.bazel +++ b/br/pkg/lightning/tikv/BUILD.bazel @@ -26,6 +26,7 @@ go_library( go_test( name = "tikv_test", srcs = ["tikv_test.go"], + flaky = True, deps = [ ":tikv", "//br/pkg/lightning/common", diff --git a/br/pkg/lightning/verification/BUILD.bazel b/br/pkg/lightning/verification/BUILD.bazel index daea16acd40dc..e35af950a194b 100644 --- a/br/pkg/lightning/verification/BUILD.bazel +++ b/br/pkg/lightning/verification/BUILD.bazel @@ -14,6 +14,7 @@ go_library( go_test( name = "verification_test", srcs = ["checksum_test.go"], + flaky = True, deps = [ ":verification", "//br/pkg/lightning/common", diff --git a/br/pkg/lightning/worker/BUILD.bazel b/br/pkg/lightning/worker/BUILD.bazel index 77de52ee964cc..320450296f2e2 100644 --- a/br/pkg/lightning/worker/BUILD.bazel +++ b/br/pkg/lightning/worker/BUILD.bazel @@ -11,6 +11,7 @@ go_library( go_test( name = "worker_test", srcs = ["worker_test.go"], + flaky = True, deps = [ ":worker", "@com_github_stretchr_testify//require", diff --git a/br/pkg/logutil/BUILD.bazel b/br/pkg/logutil/BUILD.bazel index 1443a6bfd4639..3601e6f8bf41f 100644 --- a/br/pkg/logutil/BUILD.bazel +++ b/br/pkg/logutil/BUILD.bazel @@ -28,6 +28,7 @@ go_library( go_test( name = "logutil_test", srcs = ["logging_test.go"], + flaky = True, deps = [ ":logutil", "//br/pkg/errors", diff --git a/br/pkg/membuf/BUILD.bazel b/br/pkg/membuf/BUILD.bazel index 43bf5d6da93dc..e6ab46860b93f 100644 --- a/br/pkg/membuf/BUILD.bazel +++ b/br/pkg/membuf/BUILD.bazel @@ -11,5 +11,6 @@ go_test( name = "membuf_test", srcs = ["buffer_test.go"], embed = [":membuf"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/br/pkg/metautil/BUILD.bazel b/br/pkg/metautil/BUILD.bazel index 4a325fbe49c13..058a0543733fd 100644 --- a/br/pkg/metautil/BUILD.bazel +++ b/br/pkg/metautil/BUILD.bazel @@ -32,6 +32,7 @@ go_test( "metafile_test.go", ], embed = [":metautil"], + flaky = True, deps = [ "//br/pkg/mock/storage", "//testkit/testsetup", diff --git a/br/pkg/mock/BUILD.bazel b/br/pkg/mock/BUILD.bazel index 04cbf93a6dd5b..068f7ca20f212 100644 --- a/br/pkg/mock/BUILD.bazel +++ b/br/pkg/mock/BUILD.bazel @@ -53,6 +53,7 @@ go_library( go_test( name = "mock_test", srcs = ["mock_cluster_test.go"], + flaky = True, deps = [ ":mock", "@com_github_stretchr_testify//require", diff --git a/br/pkg/pdutil/BUILD.bazel b/br/pkg/pdutil/BUILD.bazel index 128b4b6b31cda..b206e06d974b5 100644 --- a/br/pkg/pdutil/BUILD.bazel +++ b/br/pkg/pdutil/BUILD.bazel @@ -35,6 +35,7 @@ go_test( "pd_serial_test.go", ], embed = [":pdutil"], + flaky = True, deps = [ "//store/pdtypes", "//testkit/testsetup", diff --git a/br/pkg/redact/BUILD.bazel b/br/pkg/redact/BUILD.bazel index 90e747acbc261..799aa8fe22736 100644 --- a/br/pkg/redact/BUILD.bazel +++ b/br/pkg/redact/BUILD.bazel @@ -11,6 +11,7 @@ go_library( go_test( name = "redact_test", srcs = ["redact_test.go"], + flaky = True, deps = [ ":redact", "@com_github_stretchr_testify//require", diff --git a/br/pkg/restore/BUILD.bazel b/br/pkg/restore/BUILD.bazel index e89f76d24d54c..47ab1f822e13b 100644 --- a/br/pkg/restore/BUILD.bazel +++ b/br/pkg/restore/BUILD.bazel @@ -103,6 +103,7 @@ go_test( "util_test.go", ], embed = [":restore"], + flaky = True, deps = [ "//br/pkg/backup", "//br/pkg/conn", diff --git a/br/pkg/rtree/BUILD.bazel b/br/pkg/rtree/BUILD.bazel index 5c5b0546ab03b..7356d7ccf98ff 100644 --- a/br/pkg/rtree/BUILD.bazel +++ b/br/pkg/rtree/BUILD.bazel @@ -26,6 +26,7 @@ go_test( "main_test.go", "rtree_test.go", ], + flaky = True, deps = [ ":rtree", "//testkit/testsetup", diff --git a/br/pkg/storage/BUILD.bazel b/br/pkg/storage/BUILD.bazel index 762df1ae59957..0f0f4cc17d2c6 100644 --- a/br/pkg/storage/BUILD.bazel +++ b/br/pkg/storage/BUILD.bazel @@ -63,6 +63,7 @@ go_test( "writer_test.go", ], embed = [":storage"], + flaky = True, deps = [ "//br/pkg/mock", "@com_github_aws_aws_sdk_go//aws", diff --git a/br/pkg/stream/BUILD.bazel b/br/pkg/stream/BUILD.bazel index 15ee92d85b2a2..60d6f68acf0c9 100644 --- a/br/pkg/stream/BUILD.bazel +++ b/br/pkg/stream/BUILD.bazel @@ -8,6 +8,7 @@ go_library( "rewrite_meta_rawkv.go", "stream_mgr.go", "stream_status.go", + "util.go", ], importpath = "github.com/pingcap/tidb/br/pkg/stream", visibility = ["//visibility:public"], @@ -45,8 +46,10 @@ go_test( "meta_kv_test.go", "rewrite_meta_rawkv_test.go", "stream_misc_test.go", + "util_test.go", ], embed = [":stream"], + flaky = True, deps = [ "//br/pkg/streamhelper", "//meta", @@ -56,5 +59,6 @@ go_test( "//util/table-filter", "@com_github_pingcap_kvproto//pkg/brpb", "@com_github_stretchr_testify//require", + "@com_github_tikv_client_go_v2//oracle", ], ) diff --git a/br/pkg/streamhelper/BUILD.bazel b/br/pkg/streamhelper/BUILD.bazel index e3761c9b14361..e25d04c56387a 100644 --- a/br/pkg/streamhelper/BUILD.bazel +++ b/br/pkg/streamhelper/BUILD.bazel @@ -26,6 +26,7 @@ go_library( "//kv", "//metrics", "//owner", + "//util/mathutil", "@com_github_gogo_protobuf//proto", "@com_github_golang_protobuf//proto", "@com_github_google_btree//:btree", @@ -56,6 +57,7 @@ go_test( "regioniter_test.go", "tsheap_test.go", ], + flaky = True, deps = [ ":streamhelper", "//br/pkg/errors", diff --git a/br/pkg/summary/BUILD.bazel b/br/pkg/summary/BUILD.bazel index 897dda0614a1f..8ba52da51dbc4 100644 --- a/br/pkg/summary/BUILD.bazel +++ b/br/pkg/summary/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "main_test.go", ], embed = [":summary"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/br/pkg/task/BUILD.bazel b/br/pkg/task/BUILD.bazel index 8d1c738baedca..c07fb5c8213fc 100644 --- a/br/pkg/task/BUILD.bazel +++ b/br/pkg/task/BUILD.bazel @@ -34,7 +34,6 @@ go_library( "//config", "//kv", "//parser/mysql", - "//sessionctx", "//sessionctx/stmtctx", "//sessionctx/variable", "//statistics/handle", @@ -77,6 +76,7 @@ go_test( "stream_test.go", ], embed = [":task"], + flaky = True, deps = [ "//br/pkg/conn", "//br/pkg/metautil", diff --git a/br/pkg/trace/BUILD.bazel b/br/pkg/trace/BUILD.bazel index f73c227abc668..6fb6fd238d9d2 100644 --- a/br/pkg/trace/BUILD.bazel +++ b/br/pkg/trace/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "tracing_serial_test.go", ], embed = [":trace"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_opentracing_opentracing_go//:opentracing-go", diff --git a/br/pkg/utils/BUILD.bazel b/br/pkg/utils/BUILD.bazel index 631e0e7603ab6..04dedcee7a473 100644 --- a/br/pkg/utils/BUILD.bazel +++ b/br/pkg/utils/BUILD.bazel @@ -18,6 +18,7 @@ go_library( "retry.go", "safe_point.go", "schema.go", + "sensitive.go", "store_manager.go", "worker.go", ], @@ -73,8 +74,10 @@ go_test( "progress_test.go", "safe_point_test.go", "schema_test.go", + "sensitive_test.go", ], embed = [":utils"], + flaky = True, deps = [ "//br/pkg/errors", "//br/pkg/metautil", diff --git a/br/pkg/version/BUILD.bazel b/br/pkg/version/BUILD.bazel index 26bbda74a0d32..766cd6a13316c 100644 --- a/br/pkg/version/BUILD.bazel +++ b/br/pkg/version/BUILD.bazel @@ -10,6 +10,7 @@ go_library( "//br/pkg/logutil", "//br/pkg/utils", "//br/pkg/version/build", + "//util/engine", "@com_github_coreos_go_semver//semver", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_kvproto//pkg/metapb", @@ -23,6 +24,7 @@ go_test( name = "version_test", srcs = ["version_test.go"], embed = [":version"], + flaky = True, deps = [ "//br/pkg/version/build", "@com_github_coreos_go_semver//semver", diff --git a/br/pkg/version/build/BUILD.bazel b/br/pkg/version/build/BUILD.bazel index 87fc4fa0efd9e..1de80df441374 100644 --- a/br/pkg/version/build/BUILD.bazel +++ b/br/pkg/version/build/BUILD.bazel @@ -18,5 +18,6 @@ go_test( name = "build_test", srcs = ["info_test.go"], embed = [":build"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/cmd/ddltest/BUILD.bazel b/cmd/ddltest/BUILD.bazel index 295d073c6c02d..6870dddb5fd04 100644 --- a/cmd/ddltest/BUILD.bazel +++ b/cmd/ddltest/BUILD.bazel @@ -9,6 +9,7 @@ go_test( "main_test.go", "random_test.go", ], + flaky = True, deps = [ "//ddl", "//domain", diff --git a/cmd/explaintest/BUILD.bazel b/cmd/explaintest/BUILD.bazel index 85c88a8256bb6..48049b3d28a53 100644 --- a/cmd/explaintest/BUILD.bazel +++ b/cmd/explaintest/BUILD.bazel @@ -28,4 +28,5 @@ go_test( name = "explaintest_test", srcs = ["main_test.go"], embed = [":explaintest_lib"], + flaky = True, ) diff --git a/cmd/importer/BUILD.bazel b/cmd/importer/BUILD.bazel index 4f3907a2535ce..c8d8713c807f7 100644 --- a/cmd/importer/BUILD.bazel +++ b/cmd/importer/BUILD.bazel @@ -44,4 +44,5 @@ go_test( name = "importer_test", srcs = ["db_test.go"], embed = [":importer_lib"], + flaky = True, ) diff --git a/config/BUILD.bazel b/config/BUILD.bazel index fd000f17f4b8b..895971b701dcf 100644 --- a/config/BUILD.bazel +++ b/config/BUILD.bazel @@ -35,6 +35,7 @@ go_test( ], data = glob(["**"]), embed = [":config"], + flaky = True, deps = [ "//testkit/testsetup", "//util/logutil", diff --git a/ddl/label/BUILD.bazel b/ddl/label/BUILD.bazel index 608f7fa1929c0..68b1ff757ac20 100644 --- a/ddl/label/BUILD.bazel +++ b/ddl/label/BUILD.bazel @@ -26,6 +26,7 @@ go_test( "rule_test.go", ], embed = [":label"], + flaky = True, deps = [ "//parser/ast", "//testkit/testsetup", diff --git a/ddl/schematracker/BUILD.bazel b/ddl/schematracker/BUILD.bazel index a61470a7a1192..490d0271741dd 100644 --- a/ddl/schematracker/BUILD.bazel +++ b/ddl/schematracker/BUILD.bazel @@ -40,6 +40,7 @@ go_test( "info_store_test.go", ], embed = [":schematracker"], + flaky = True, deps = [ "//infoschema", "//parser", diff --git a/domain/globalconfigsync/BUILD.bazel b/domain/globalconfigsync/BUILD.bazel index 9ee37c895beef..9c0507e6cb849 100644 --- a/domain/globalconfigsync/BUILD.bazel +++ b/domain/globalconfigsync/BUILD.bazel @@ -15,6 +15,7 @@ go_library( go_test( name = "globalconfigsync_test", srcs = ["globalconfig_test.go"], + flaky = True, deps = [ ":globalconfigsync", "//kv", diff --git a/domain/infosync/BUILD.bazel b/domain/infosync/BUILD.bazel index c92426d835c2f..061f3050995e2 100644 --- a/domain/infosync/BUILD.bazel +++ b/domain/infosync/BUILD.bazel @@ -31,14 +31,17 @@ go_library( "//util", "//util/codec", "//util/dbterror", + "//util/engine", "//util/hack", "//util/logutil", "//util/pdapi", "//util/versioninfo", + "@com_github_coreos_go_semver//semver", "@com_github_gorilla_mux//:mux", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_failpoint//:failpoint", "@com_github_tikv_client_go_v2//oracle", + "@com_github_tikv_pd_client//:client", "@io_etcd_go_etcd_client_v3//:client", "@io_etcd_go_etcd_client_v3//concurrency", "@org_uber_go_zap//:zap", diff --git a/dumpling/export/BUILD.bazel b/dumpling/export/BUILD.bazel index b12dc5f87246b..d6679b4e3e68e 100644 --- a/dumpling/export/BUILD.bazel +++ b/dumpling/export/BUILD.bazel @@ -88,6 +88,7 @@ go_test( ], data = glob(["**"]), embed = [":export"], + flaky = True, deps = [ "//br/pkg/storage", "//br/pkg/version", diff --git a/errno/BUILD.bazel b/errno/BUILD.bazel index 511fcf64502a6..e64ed05b62b0f 100644 --- a/errno/BUILD.bazel +++ b/errno/BUILD.bazel @@ -19,6 +19,7 @@ go_test( "main_test.go", ], embed = [":errno"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//assert", diff --git a/executor/BUILD.bazel b/executor/BUILD.bazel index 10ce00aa7e940..676bb71c7e581 100644 --- a/executor/BUILD.bazel +++ b/executor/BUILD.bazel @@ -210,6 +210,7 @@ go_library( "@com_github_pingcap_tipb//go-tipb", "@com_github_prometheus_client_golang//api", "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", + "@com_github_prometheus_client_golang//prometheus", "@com_github_prometheus_common//model", "@com_github_tikv_client_go_v2//error", "@com_github_tikv_client_go_v2//kv", diff --git a/executor/aggfuncs/BUILD.bazel b/executor/aggfuncs/BUILD.bazel index ea85b780540ec..1df448f91d8b7 100644 --- a/executor/aggfuncs/BUILD.bazel +++ b/executor/aggfuncs/BUILD.bazel @@ -86,6 +86,7 @@ go_test( "window_func_test.go", ], embed = [":aggfuncs"], + flaky = True, deps = [ "//expression", "//expression/aggregation", diff --git a/executor/kvtest/BUILD.bazel b/executor/kvtest/BUILD.bazel index afa7203ffef9e..3d03c7df85c9a 100644 --- a/executor/kvtest/BUILD.bazel +++ b/executor/kvtest/BUILD.bazel @@ -6,6 +6,7 @@ go_test( "kv_test.go", "main_test.go", ], + flaky = True, deps = [ "//config", "//meta/autoid", diff --git a/executor/oomtest/BUILD.bazel b/executor/oomtest/BUILD.bazel index b360eca28459b..8aa543d8bfc52 100644 --- a/executor/oomtest/BUILD.bazel +++ b/executor/oomtest/BUILD.bazel @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "oomtest_test", srcs = ["oom_test.go"], + flaky = True, deps = [ "//testkit", "//testkit/testsetup", diff --git a/executor/seqtest/BUILD.bazel b/executor/seqtest/BUILD.bazel index c248e2e1fd30a..eb967ca990db6 100644 --- a/executor/seqtest/BUILD.bazel +++ b/executor/seqtest/BUILD.bazel @@ -7,6 +7,7 @@ go_test( "prepared_test.go", "seq_executor_test.go", ], + flaky = True, deps = [ "//config", "//ddl/testutil", diff --git a/executor/tiflashtest/BUILD.bazel b/executor/tiflashtest/BUILD.bazel index 6a919ca76598a..7fc439efacd50 100644 --- a/executor/tiflashtest/BUILD.bazel +++ b/executor/tiflashtest/BUILD.bazel @@ -6,6 +6,7 @@ go_test( "main_test.go", "tiflash_test.go", ], + flaky = True, deps = [ "//config", "//domain", diff --git a/infoschema/perfschema/BUILD.bazel b/infoschema/perfschema/BUILD.bazel index c577e67525808..7087c0c44e911 100644 --- a/infoschema/perfschema/BUILD.bazel +++ b/infoschema/perfschema/BUILD.bazel @@ -40,6 +40,7 @@ go_test( ], data = glob(["testdata/**"]), embed = [":perfschema"], + flaky = True, deps = [ "//kv", "//parser/terror", diff --git a/kv/BUILD.bazel b/kv/BUILD.bazel index 835cd827b6bfa..ff40895d45d54 100644 --- a/kv/BUILD.bazel +++ b/kv/BUILD.bazel @@ -67,6 +67,7 @@ go_test( "version_test.go", ], embed = [":kv"], + flaky = True, deps = [ "//parser/model", "//parser/mysql", diff --git a/meta/autoid/BUILD.bazel b/meta/autoid/BUILD.bazel index 3d74004a554ef..8ccdebed7d2ac 100644 --- a/meta/autoid/BUILD.bazel +++ b/meta/autoid/BUILD.bazel @@ -39,6 +39,7 @@ go_test( "memid_test.go", "seq_autoid_test.go", ], + flaky = True, deps = [ ":autoid", "//kv", diff --git a/metrics/BUILD.bazel b/metrics/BUILD.bazel index ad34ac544fa0e..6335f2058eaf5 100644 --- a/metrics/BUILD.bazel +++ b/metrics/BUILD.bazel @@ -25,6 +25,7 @@ go_library( deps = [ "//parser/terror", "//util/logutil", + "//util/mathutil", "@com_github_pingcap_errors//:errors", "@com_github_prometheus_client_golang//prometheus", "@com_github_prometheus_client_golang//prometheus/collectors", @@ -41,6 +42,7 @@ go_test( "metrics_test.go", ], embed = [":metrics"], + flaky = True, deps = [ "//parser/terror", "//testkit/testsetup", diff --git a/parser/BUILD.bazel b/parser/BUILD.bazel index a8f3569b97f30..59a4b3de5eac9 100644 --- a/parser/BUILD.bazel +++ b/parser/BUILD.bazel @@ -40,6 +40,7 @@ go_test( ], data = glob(["**"]), embed = [":parser"], + flaky = True, deps = [ "//parser/ast", "//parser/charset", diff --git a/parser/ast/BUILD.bazel b/parser/ast/BUILD.bazel index ba1c18eac879b..1fc939c5636a0 100644 --- a/parser/ast/BUILD.bazel +++ b/parser/ast/BUILD.bazel @@ -45,6 +45,7 @@ go_test( "util_test.go", ], embed = [":ast"], + flaky = True, deps = [ "//parser", "//parser/auth", diff --git a/parser/auth/BUILD.bazel b/parser/auth/BUILD.bazel index 93ad9d22d2d29..afc29e075c111 100644 --- a/parser/auth/BUILD.bazel +++ b/parser/auth/BUILD.bazel @@ -23,5 +23,6 @@ go_test( "mysql_native_password_test.go", ], embed = [":auth"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/parser/charset/BUILD.bazel b/parser/charset/BUILD.bazel index d201d51157ed6..c32d470f4518a 100644 --- a/parser/charset/BUILD.bazel +++ b/parser/charset/BUILD.bazel @@ -40,6 +40,7 @@ go_test( "encoding_test.go", ], embed = [":charset"], + flaky = True, deps = [ "@com_github_stretchr_testify//require", "@org_golang_x_text//transform", diff --git a/parser/format/BUILD.bazel b/parser/format/BUILD.bazel index 9ad24b5ca0bf6..74238844df045 100644 --- a/parser/format/BUILD.bazel +++ b/parser/format/BUILD.bazel @@ -11,6 +11,7 @@ go_test( name = "format_test", srcs = ["format_test.go"], embed = [":format"], + flaky = True, deps = [ "@com_github_pingcap_errors//:errors", "@com_github_stretchr_testify//require", diff --git a/parser/model/BUILD.bazel b/parser/model/BUILD.bazel index b33cdd2e16bf1..e7401cee8242b 100644 --- a/parser/model/BUILD.bazel +++ b/parser/model/BUILD.bazel @@ -23,6 +23,7 @@ go_test( name = "model_test", srcs = ["model_test.go"], embed = [":model"], + flaky = True, deps = [ "//parser/charset", "//parser/mysql", diff --git a/parser/mysql/BUILD.bazel b/parser/mysql/BUILD.bazel index da3f279a5c264..e44bf23c71dc7 100644 --- a/parser/mysql/BUILD.bazel +++ b/parser/mysql/BUILD.bazel @@ -31,5 +31,6 @@ go_test( "type_test.go", ], embed = [":mysql"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/parser/opcode/BUILD.bazel b/parser/opcode/BUILD.bazel index 25d2447e484f3..9d3c86767d664 100644 --- a/parser/opcode/BUILD.bazel +++ b/parser/opcode/BUILD.bazel @@ -12,4 +12,5 @@ go_test( name = "opcode_test", srcs = ["opcode_test.go"], embed = [":opcode"], + flaky = True, ) diff --git a/parser/terror/BUILD.bazel b/parser/terror/BUILD.bazel index 2979755682264..8397260a22a13 100644 --- a/parser/terror/BUILD.bazel +++ b/parser/terror/BUILD.bazel @@ -17,6 +17,7 @@ go_test( name = "terror_test", srcs = ["terror_test.go"], embed = [":terror"], + flaky = True, deps = [ "@com_github_pingcap_errors//:errors", "@com_github_stretchr_testify//require", diff --git a/parser/types/BUILD.bazel b/parser/types/BUILD.bazel index a771b96fced49..c3eca2badbc36 100644 --- a/parser/types/BUILD.bazel +++ b/parser/types/BUILD.bazel @@ -25,6 +25,7 @@ go_test( "field_type_test.go", ], embed = [":types"], + flaky = True, deps = [ "//parser", "//parser/ast", diff --git a/planner/cascades/BUILD.bazel b/planner/cascades/BUILD.bazel index 1ce0a7eb7ac23..c82b64a288a21 100644 --- a/planner/cascades/BUILD.bazel +++ b/planner/cascades/BUILD.bazel @@ -41,6 +41,7 @@ go_test( ], data = glob(["testdata/**"]), embed = [":cascades"], + flaky = True, deps = [ "//domain", "//expression", diff --git a/planner/core/BUILD.bazel b/planner/core/BUILD.bazel index 347b7fb18c7e5..b3c4c4eed88cf 100644 --- a/planner/core/BUILD.bazel +++ b/planner/core/BUILD.bazel @@ -239,10 +239,12 @@ go_test( "//util/dbterror", "//util/hint", "//util/kvcache", + "//util/logutil", "//util/mock", "//util/plancodec", "//util/ranger", "//util/set", + "//util/stmtsummary", "//util/tracing", "@com_github_golang_snappy//:snappy", "@com_github_pingcap_errors//:errors", diff --git a/planner/funcdep/BUILD.bazel b/planner/funcdep/BUILD.bazel index 2a0c09b58a244..a732823cbd80a 100644 --- a/planner/funcdep/BUILD.bazel +++ b/planner/funcdep/BUILD.bazel @@ -27,6 +27,7 @@ go_test( "only_full_group_by_test.go", ], embed = [":funcdep"], + flaky = True, deps = [ "//domain", "//infoschema", diff --git a/planner/implementation/BUILD.bazel b/planner/implementation/BUILD.bazel index ec042cb40b382..c2b5ad8e5dd90 100644 --- a/planner/implementation/BUILD.bazel +++ b/planner/implementation/BUILD.bazel @@ -29,6 +29,7 @@ go_test( "main_test.go", ], embed = [":implementation"], + flaky = True, deps = [ "//planner/core", "//planner/memo", diff --git a/planner/memo/BUILD.bazel b/planner/memo/BUILD.bazel index 7886691fd3b9c..c0523d2600e3e 100644 --- a/planner/memo/BUILD.bazel +++ b/planner/memo/BUILD.bazel @@ -29,6 +29,7 @@ go_test( "pattern_test.go", ], embed = [":memo"], + flaky = True, deps = [ "//domain", "//expression", diff --git a/planner/util/BUILD.bazel b/planner/util/BUILD.bazel index 78f443d4d1fa9..0e9d7df5d9d6b 100644 --- a/planner/util/BUILD.bazel +++ b/planner/util/BUILD.bazel @@ -28,6 +28,7 @@ go_test( "path_test.go", ], embed = [":util"], + flaky = True, deps = [ "//parser/model", "//planner/core", diff --git a/plugin/BUILD.bazel b/plugin/BUILD.bazel index 1a8623dc4eea9..804c2cdf11db9 100644 --- a/plugin/BUILD.bazel +++ b/plugin/BUILD.bazel @@ -36,6 +36,7 @@ go_test( "spi_test.go", ], embed = [":plugin"], + flaky = True, deps = [ "//kv", "//parser/mysql", diff --git a/plugin/conn_ip_example/BUILD.bazel b/plugin/conn_ip_example/BUILD.bazel index ae22b9c56752c..f21283b8624b8 100644 --- a/plugin/conn_ip_example/BUILD.bazel +++ b/plugin/conn_ip_example/BUILD.bazel @@ -18,6 +18,7 @@ go_test( "main_test.go", ], embed = [":conn_ip_example_lib"], + flaky = True, deps = [ "//plugin", "//sessionctx/variable", diff --git a/sessionctx/BUILD.bazel b/sessionctx/BUILD.bazel index 3d966088021ba..1bdd2830cfab8 100644 --- a/sessionctx/BUILD.bazel +++ b/sessionctx/BUILD.bazel @@ -30,6 +30,7 @@ go_test( "main_test.go", ], embed = [":sessionctx"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/sessionctx/binloginfo/BUILD.bazel b/sessionctx/binloginfo/BUILD.bazel index ff9c03dbfa3e2..6d5a600b9e68c 100644 --- a/sessionctx/binloginfo/BUILD.bazel +++ b/sessionctx/binloginfo/BUILD.bazel @@ -31,6 +31,7 @@ go_test( "main_test.go", ], embed = [":binloginfo"], + flaky = True, deps = [ "//ddl", "//domain", diff --git a/sessionctx/sessionstates/BUILD.bazel b/sessionctx/sessionstates/BUILD.bazel index d63cbbdd1b698..bd1aaf78b2fed 100644 --- a/sessionctx/sessionstates/BUILD.bazel +++ b/sessionctx/sessionstates/BUILD.bazel @@ -29,6 +29,7 @@ go_test( "session_token_test.go", ], embed = [":sessionstates"], + flaky = True, race = "on", deps = [ "//config", diff --git a/sessionctx/stmtctx/BUILD.bazel b/sessionctx/stmtctx/BUILD.bazel index b949bacb35267..b42939f7ec324 100644 --- a/sessionctx/stmtctx/BUILD.bazel +++ b/sessionctx/stmtctx/BUILD.bazel @@ -34,6 +34,7 @@ go_test( "stmtctx_test.go", ], embed = [":stmtctx"], + flaky = True, deps = [ "//kv", "//sessionctx/variable", diff --git a/sessionctx/variable/BUILD.bazel b/sessionctx/variable/BUILD.bazel index db227c30a8de1..01d3a2065f1dc 100644 --- a/sessionctx/variable/BUILD.bazel +++ b/sessionctx/variable/BUILD.bazel @@ -43,6 +43,7 @@ go_library( "//util/execdetails", "//util/logutil", "//util/mathutil", + "//util/memory", "//util/paging", "//util/rowcodec", "//util/stmtsummary", @@ -77,6 +78,7 @@ go_test( "varsutil_test.go", ], embed = [":variable"], + flaky = True, deps = [ "//config", "//kv", diff --git a/sessiontxn/BUILD.bazel b/sessiontxn/BUILD.bazel index c884d7981e19e..8ed1e7205652e 100644 --- a/sessiontxn/BUILD.bazel +++ b/sessiontxn/BUILD.bazel @@ -24,6 +24,7 @@ go_test( "txn_context_test.go", "txn_manager_test.go", ], + flaky = True, deps = [ ":sessiontxn", "//domain", @@ -40,6 +41,7 @@ go_test( "//testkit/testfork", "//testkit/testsetup", "//tests/realtikvtest", + "//types", "@com_github_pingcap_failpoint//:failpoint", "@com_github_stretchr_testify//require", "@com_github_tikv_client_go_v2//oracle", diff --git a/sessiontxn/isolation/BUILD.bazel b/sessiontxn/isolation/BUILD.bazel index 2f7e810fe95a7..5b416b3e8a294 100644 --- a/sessiontxn/isolation/BUILD.bazel +++ b/sessiontxn/isolation/BUILD.bazel @@ -28,6 +28,7 @@ go_library( "//util/logutil", "@com_github_opentracing_opentracing_go//:opentracing-go", "@com_github_pingcap_errors//:errors", + "@com_github_pingcap_failpoint//:failpoint", "@com_github_tikv_client_go_v2//error", "@com_github_tikv_client_go_v2//oracle", "@org_uber_go_zap//:zap", diff --git a/sessiontxn/staleread/BUILD.bazel b/sessiontxn/staleread/BUILD.bazel index 117623298d563..3abda2a54c341 100644 --- a/sessiontxn/staleread/BUILD.bazel +++ b/sessiontxn/staleread/BUILD.bazel @@ -39,6 +39,7 @@ go_test( "processor_test.go", "provider_test.go", ], + flaky = True, deps = [ ":staleread", "//domain", diff --git a/statistics/BUILD.bazel b/statistics/BUILD.bazel index d32669654aa47..3504e34ef4ff7 100644 --- a/statistics/BUILD.bazel +++ b/statistics/BUILD.bazel @@ -7,10 +7,12 @@ go_library( "analyze_jobs.go", "builder.go", "cmsketch.go", + "column.go", "estimate.go", "feedback.go", "fmsketch.go", "histogram.go", + "index.go", "row_sampler.go", "sample.go", "scalar.go", @@ -75,10 +77,12 @@ go_test( ], data = glob(["testdata/**"]), embed = [":statistics"], + flaky = True, deps = [ "//config", "//domain", "//infoschema", + "//kv", "//parser", "//parser/ast", "//parser/model", diff --git a/store/BUILD.bazel b/store/BUILD.bazel index 6b25da3287443..0a1f3495f144f 100644 --- a/store/BUILD.bazel +++ b/store/BUILD.bazel @@ -22,6 +22,7 @@ go_test( "store_test.go", ], embed = [":store"], + flaky = True, deps = [ "//domain", "//kv", diff --git a/store/copr/BUILD.bazel b/store/copr/BUILD.bazel index 12723d9ec2d3d..b6fdf57c43714 100644 --- a/store/copr/BUILD.bazel +++ b/store/copr/BUILD.bazel @@ -66,6 +66,7 @@ go_test( "main_test.go", ], embed = [":copr"], + flaky = True, deps = [ "//kv", "//store/driver/backoff", diff --git a/store/driver/BUILD.bazel b/store/driver/BUILD.bazel index b158197a4342c..955dfe88eb127 100644 --- a/store/driver/BUILD.bazel +++ b/store/driver/BUILD.bazel @@ -36,6 +36,7 @@ go_test( "txn_test.go", ], embed = [":driver"], + flaky = True, deps = [ "//domain", "//kv", diff --git a/store/driver/error/BUILD.bazel b/store/driver/error/BUILD.bazel index 95daebe95a8b1..ddca3e162fee4 100644 --- a/store/driver/error/BUILD.bazel +++ b/store/driver/error/BUILD.bazel @@ -19,6 +19,7 @@ go_test( name = "error_test", srcs = ["error_test.go"], embed = [":error"], + flaky = True, deps = [ "//parser/terror", "//testkit/testsetup", diff --git a/store/driver/txn/BUILD.bazel b/store/driver/txn/BUILD.bazel index 15e3c56cb6320..0561d814a6755 100644 --- a/store/driver/txn/BUILD.bazel +++ b/store/driver/txn/BUILD.bazel @@ -53,6 +53,7 @@ go_test( "union_iter_test.go", ], embed = [":txn"], + flaky = True, deps = [ "//kv", "//testkit/testsetup", diff --git a/store/gcworker/BUILD.bazel b/store/gcworker/BUILD.bazel index f43e28c02958b..971a8216fbc09 100644 --- a/store/gcworker/BUILD.bazel +++ b/store/gcworker/BUILD.bazel @@ -49,6 +49,7 @@ go_test( "main_test.go", ], embed = [":gcworker"], + flaky = True, deps = [ "//ddl/placement", "//ddl/util", diff --git a/store/helper/BUILD.bazel b/store/helper/BUILD.bazel index ebd81b67a80a0..743183baf657e 100644 --- a/store/helper/BUILD.bazel +++ b/store/helper/BUILD.bazel @@ -35,6 +35,7 @@ go_test( "main_test.go", ], embed = [":helper"], + flaky = True, deps = [ "//parser/model", "//store/mockstore", diff --git a/store/mockstore/BUILD.bazel b/store/mockstore/BUILD.bazel index 9d0ce8a6a181b..55ce6c638a879 100644 --- a/store/mockstore/BUILD.bazel +++ b/store/mockstore/BUILD.bazel @@ -33,6 +33,7 @@ go_test( "tikv_test.go", ], embed = [":mockstore"], + flaky = True, deps = [ "//config", "//kv", diff --git a/store/mockstore/mockcopr/BUILD.bazel b/store/mockstore/mockcopr/BUILD.bazel index 1b46f031d104c..27877695ac478 100644 --- a/store/mockstore/mockcopr/BUILD.bazel +++ b/store/mockstore/mockcopr/BUILD.bazel @@ -53,6 +53,7 @@ go_test( "main_test.go", ], embed = [":mockcopr"], + flaky = True, deps = [ "//domain", "//kv", diff --git a/store/mockstore/unistore/BUILD.bazel b/store/mockstore/unistore/BUILD.bazel index f1536201753f7..4f32365c80c39 100644 --- a/store/mockstore/unistore/BUILD.bazel +++ b/store/mockstore/unistore/BUILD.bazel @@ -46,6 +46,7 @@ go_test( "raw_handler_test.go", ], embed = [":unistore"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_pingcap_kvproto//pkg/kvrpcpb", diff --git a/store/mockstore/unistore/cophandler/BUILD.bazel b/store/mockstore/unistore/cophandler/BUILD.bazel index c28fd9d865518..bf8964155bf72 100644 --- a/store/mockstore/unistore/cophandler/BUILD.bazel +++ b/store/mockstore/unistore/cophandler/BUILD.bazel @@ -60,6 +60,7 @@ go_test( "main_test.go", ], embed = [":cophandler"], + flaky = True, deps = [ "//expression", "//kv", diff --git a/store/mockstore/unistore/lockstore/BUILD.bazel b/store/mockstore/unistore/lockstore/BUILD.bazel index 8fa2e907d2d77..214cd9050e210 100644 --- a/store/mockstore/unistore/lockstore/BUILD.bazel +++ b/store/mockstore/unistore/lockstore/BUILD.bazel @@ -24,6 +24,7 @@ go_test( "main_test.go", ], embed = [":lockstore"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/store/mockstore/unistore/tikv/BUILD.bazel b/store/mockstore/unistore/tikv/BUILD.bazel index 926fd045d44f9..82456f7a50a09 100644 --- a/store/mockstore/unistore/tikv/BUILD.bazel +++ b/store/mockstore/unistore/tikv/BUILD.bazel @@ -67,6 +67,7 @@ go_test( "mvcc_test.go", ], embed = [":tikv"], + flaky = True, deps = [ "//store/mockstore/unistore/config", "//store/mockstore/unistore/lockstore", diff --git a/store/mockstore/unistore/util/lockwaiter/BUILD.bazel b/store/mockstore/unistore/util/lockwaiter/BUILD.bazel index effbb268c1fc3..003b1957cca7f 100644 --- a/store/mockstore/unistore/util/lockwaiter/BUILD.bazel +++ b/store/mockstore/unistore/util/lockwaiter/BUILD.bazel @@ -21,6 +21,7 @@ go_test( "main_test.go", ], embed = [":lockwaiter"], + flaky = True, deps = [ "//store/mockstore/unistore/config", "//testkit/testsetup", diff --git a/structure/BUILD.bazel b/structure/BUILD.bazel index 49c3ef4c43053..cb019d87a2edc 100644 --- a/structure/BUILD.bazel +++ b/structure/BUILD.bazel @@ -27,6 +27,7 @@ go_test( "structure_test.go", ], embed = [":structure"], + flaky = True, deps = [ "//kv", "//parser/mysql", diff --git a/table/temptable/BUILD.bazel b/table/temptable/BUILD.bazel index e4f8e9d841905..30c41bd1c55b3 100644 --- a/table/temptable/BUILD.bazel +++ b/table/temptable/BUILD.bazel @@ -37,6 +37,7 @@ go_test( "main_test.go", ], embed = [":temptable"], + flaky = True, deps = [ "//infoschema", "//kv", diff --git a/tablecodec/BUILD.bazel b/tablecodec/BUILD.bazel index e46ad1e5bd03f..5752a60ddfdd1 100644 --- a/tablecodec/BUILD.bazel +++ b/tablecodec/BUILD.bazel @@ -33,6 +33,7 @@ go_test( "tablecodec_test.go", ], embed = [":tablecodec"], + flaky = True, deps = [ "//kv", "//parser/mysql", diff --git a/tablecodec/rowindexcodec/BUILD.bazel b/tablecodec/rowindexcodec/BUILD.bazel index 8bbe71ffb9c67..7fcc37045b167 100644 --- a/tablecodec/rowindexcodec/BUILD.bazel +++ b/tablecodec/rowindexcodec/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "rowindexcodec_test.go", ], embed = [":rowindexcodec"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/telemetry/BUILD.bazel b/telemetry/BUILD.bazel index 15ff2794210fb..42762b19544ba 100644 --- a/telemetry/BUILD.bazel +++ b/telemetry/BUILD.bazel @@ -58,6 +58,7 @@ go_test( "util_test.go", ], embed = [":telemetry"], + flaky = True, deps = [ "//config", "//ddl", diff --git a/telemetry/cte_test/BUILD.bazel b/telemetry/cte_test/BUILD.bazel index 40ab5c9d45bf3..7236a4ce32559 100644 --- a/telemetry/cte_test/BUILD.bazel +++ b/telemetry/cte_test/BUILD.bazel @@ -4,6 +4,7 @@ go_test( name = "cte_test_test", timeout = "short", srcs = ["cte_test.go"], + flaky = True, deps = [ "//config", "//domain", diff --git a/testkit/testfork/BUILD.bazel b/testkit/testfork/BUILD.bazel index dd375877e8178..3b86fb06185e1 100644 --- a/testkit/testfork/BUILD.bazel +++ b/testkit/testfork/BUILD.bazel @@ -16,5 +16,6 @@ go_test( timeout = "short", srcs = ["fork_test.go"], embed = [":testfork"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/testkit/testutil/BUILD.bazel b/testkit/testutil/BUILD.bazel index 4a1bd35f4cd65..dd662dc0aa80f 100644 --- a/testkit/testutil/BUILD.bazel +++ b/testkit/testutil/BUILD.bazel @@ -25,6 +25,7 @@ go_test( timeout = "short", srcs = ["require_test.go"], embed = [":testutil"], + flaky = True, deps = [ "@com_github_stretchr_testify//require", "@org_uber_go_goleak//:goleak", diff --git a/tests/globalkilltest/BUILD.bazel b/tests/globalkilltest/BUILD.bazel index d0f55d977c3f3..e196895ad30dc 100644 --- a/tests/globalkilltest/BUILD.bazel +++ b/tests/globalkilltest/BUILD.bazel @@ -6,6 +6,7 @@ go_test( "global_kill_test.go", "main_test.go", ], + flaky = True, deps = [ "//testkit/testsetup", "//util/logutil", diff --git a/tests/graceshutdown/BUILD.bazel b/tests/graceshutdown/BUILD.bazel index 591cb817fc158..ad76c7ab79e12 100644 --- a/tests/graceshutdown/BUILD.bazel +++ b/tests/graceshutdown/BUILD.bazel @@ -6,6 +6,7 @@ go_test( "graceshutdown_test.go", "main_test.go", ], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_go_sql_driver_mysql//:mysql", diff --git a/tests/readonlytest/BUILD.bazel b/tests/readonlytest/BUILD.bazel index 3561b8cbdc805..0902001c26220 100644 --- a/tests/readonlytest/BUILD.bazel +++ b/tests/readonlytest/BUILD.bazel @@ -6,6 +6,7 @@ go_test( "main_test.go", "readonly_test.go", ], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_go_sql_driver_mysql//:mysql", diff --git a/tests/realtikvtest/brietest/BUILD.bazel b/tests/realtikvtest/brietest/BUILD.bazel index 29e6e6f2c9404..637b0b97d026d 100644 --- a/tests/realtikvtest/brietest/BUILD.bazel +++ b/tests/realtikvtest/brietest/BUILD.bazel @@ -8,6 +8,7 @@ go_test( "binlog_test.go", "main_test.go", ], + flaky = True, deps = [ "//config", "//parser/mysql", diff --git a/tests/realtikvtest/pessimistictest/BUILD.bazel b/tests/realtikvtest/pessimistictest/BUILD.bazel index 4b7904ed38dea..4308d0e931f5d 100644 --- a/tests/realtikvtest/pessimistictest/BUILD.bazel +++ b/tests/realtikvtest/pessimistictest/BUILD.bazel @@ -7,6 +7,7 @@ go_test( "main_test.go", "pessimistic_test.go", ], + flaky = True, deps = [ "//config", "//domain", diff --git a/tests/realtikvtest/statisticstest/BUILD.bazel b/tests/realtikvtest/statisticstest/BUILD.bazel index f29270dfb7e90..272733e401d89 100644 --- a/tests/realtikvtest/statisticstest/BUILD.bazel +++ b/tests/realtikvtest/statisticstest/BUILD.bazel @@ -7,6 +7,7 @@ go_test( "main_test.go", "statistics_test.go", ], + flaky = True, deps = [ "//statistics/handle", "//testkit", diff --git a/tests/realtikvtest/txntest/BUILD.bazel b/tests/realtikvtest/txntest/BUILD.bazel index 4b7188bc5ecf6..e415136f121cb 100644 --- a/tests/realtikvtest/txntest/BUILD.bazel +++ b/tests/realtikvtest/txntest/BUILD.bazel @@ -9,6 +9,7 @@ go_test( "txn_state_test.go", "txn_test.go", ], + flaky = True, deps = [ "//kv", "//parser", diff --git a/tidb-binlog/driver/reader/BUILD.bazel b/tidb-binlog/driver/reader/BUILD.bazel index cb4c859c4c7fc..32f271d627085 100644 --- a/tidb-binlog/driver/reader/BUILD.bazel +++ b/tidb-binlog/driver/reader/BUILD.bazel @@ -22,6 +22,7 @@ go_test( timeout = "short", srcs = ["offset_test.go"], embed = [":reader"], + flaky = True, deps = [ "//tidb-binlog/proto/go-binlog", "@com_github_shopify_sarama//:sarama", diff --git a/tidb-binlog/node/BUILD.bazel b/tidb-binlog/node/BUILD.bazel index 125ff3b471ae2..01c2669bbb640 100644 --- a/tidb-binlog/node/BUILD.bazel +++ b/tidb-binlog/node/BUILD.bazel @@ -23,6 +23,7 @@ go_test( timeout = "short", srcs = ["registry_test.go"], embed = [":node"], + flaky = True, deps = [ "//util/etcd", "@com_github_stretchr_testify//require", diff --git a/tidb-binlog/pump_client/BUILD.bazel b/tidb-binlog/pump_client/BUILD.bazel index 124e0a575482e..ad98822adaf5b 100644 --- a/tidb-binlog/pump_client/BUILD.bazel +++ b/tidb-binlog/pump_client/BUILD.bazel @@ -34,6 +34,7 @@ go_test( "client_test.go", ], embed = [":pump_client"], + flaky = True, deps = [ "//tidb-binlog/node", "@com_github_pingcap_errors//:errors", diff --git a/tidb-server/BUILD.bazel b/tidb-server/BUILD.bazel index 67be8ca5ef563..f84d1e2457a30 100644 --- a/tidb-server/BUILD.bazel +++ b/tidb-server/BUILD.bazel @@ -10,6 +10,7 @@ go_library( "//config", "//ddl", "//domain", + "//domain/infosync", "//executor", "//kv", "//metrics", @@ -46,6 +47,7 @@ go_library( "//util/systimemon", "//util/topsql", "//util/versioninfo", + "@com_github_coreos_go_semver//semver", "@com_github_opentracing_opentracing_go//:opentracing-go", "@com_github_pingcap_errors//:errors", "@com_github_pingcap_failpoint//:failpoint", @@ -88,6 +90,7 @@ go_test( timeout = "short", srcs = ["main_test.go"], embed = [":tidb-server_lib"], + flaky = True, deps = [ "//config", "//parser/mysql", diff --git a/types/BUILD.bazel b/types/BUILD.bazel index f93db510cf800..670b1df39612f 100644 --- a/types/BUILD.bazel +++ b/types/BUILD.bazel @@ -77,6 +77,7 @@ go_test( "time_test.go", ], embed = [":types"], + flaky = True, deps = [ "//parser/charset", "//parser/mysql", diff --git a/types/json/BUILD.bazel b/types/json/BUILD.bazel index 9c54ab586b6ad..8bc9cf5f61e0d 100644 --- a/types/json/BUILD.bazel +++ b/types/json/BUILD.bazel @@ -32,6 +32,7 @@ go_test( "path_expr_test.go", ], embed = [":json"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/types/parser_driver/BUILD.bazel b/types/parser_driver/BUILD.bazel index 478866d428e59..4c2260dd5bc43 100644 --- a/types/parser_driver/BUILD.bazel +++ b/types/parser_driver/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "value_expr_test.go", ], embed = [":parser_driver"], + flaky = True, deps = [ "//parser/format", "//testkit/testsetup", diff --git a/util/admin/BUILD.bazel b/util/admin/BUILD.bazel index d6b829bb4ed2c..aaa6abdd25a0c 100644 --- a/util/admin/BUILD.bazel +++ b/util/admin/BUILD.bazel @@ -34,6 +34,7 @@ go_test( "main_test.go", ], embed = [":admin"], + flaky = True, deps = [ "//config", "//sessionctx/variable", diff --git a/util/arena/BUILD.bazel b/util/arena/BUILD.bazel index 3b7582f4ea356..b38c606afd35a 100644 --- a/util/arena/BUILD.bazel +++ b/util/arena/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":arena"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//assert", diff --git a/util/benchdaily/BUILD.bazel b/util/benchdaily/BUILD.bazel index 32f9582fdad3b..ebf2b340d9334 100644 --- a/util/benchdaily/BUILD.bazel +++ b/util/benchdaily/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":benchdaily"], + flaky = True, deps = [ "//testkit/testsetup", "@org_uber_go_goleak//:goleak", diff --git a/util/bitmap/BUILD.bazel b/util/bitmap/BUILD.bazel index db914e5520de8..533eb910bb40b 100644 --- a/util/bitmap/BUILD.bazel +++ b/util/bitmap/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":bitmap"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//assert", diff --git a/util/checksum/BUILD.bazel b/util/checksum/BUILD.bazel index 0bf8901725b76..8b4c7a7679379 100644 --- a/util/checksum/BUILD.bazel +++ b/util/checksum/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":checksum"], + flaky = True, deps = [ "//testkit/testsetup", "//util/encrypt", diff --git a/util/chunk/BUILD.bazel b/util/chunk/BUILD.bazel index 512a407edb8fb..8520d475cb780 100644 --- a/util/chunk/BUILD.bazel +++ b/util/chunk/BUILD.bazel @@ -56,6 +56,7 @@ go_test( "row_container_test.go", ], embed = [":chunk"], + flaky = True, race = "on", deps = [ "//config", diff --git a/util/codec/BUILD.bazel b/util/codec/BUILD.bazel index a365c15d18537..eabf83ec1fc4f 100644 --- a/util/codec/BUILD.bazel +++ b/util/codec/BUILD.bazel @@ -39,6 +39,7 @@ go_test( "main_test.go", ], embed = [":codec"], + flaky = True, deps = [ "//parser/mysql", "//parser/terror", diff --git a/util/collate/BUILD.bazel b/util/collate/BUILD.bazel index 3f1781975a1f6..584226cfa5d4b 100644 --- a/util/collate/BUILD.bazel +++ b/util/collate/BUILD.bazel @@ -40,6 +40,7 @@ go_test( "main_test.go", ], embed = [":collate"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/column-mapping/BUILD.bazel b/util/column-mapping/BUILD.bazel index bc77e021c7f9d..03a35005bf28c 100644 --- a/util/column-mapping/BUILD.bazel +++ b/util/column-mapping/BUILD.bazel @@ -16,5 +16,6 @@ go_test( timeout = "short", srcs = ["column_test.go"], embed = [":column-mapping"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/util/cpuprofile/BUILD.bazel b/util/cpuprofile/BUILD.bazel index d0b3dafa6e39f..79b6e341b479f 100644 --- a/util/cpuprofile/BUILD.bazel +++ b/util/cpuprofile/BUILD.bazel @@ -22,6 +22,7 @@ go_test( timeout = "short", srcs = ["cpuprofile_test.go"], embed = [":cpuprofile"], + flaky = True, deps = [ "//testkit/testsetup", "//util/cpuprofile/testutil", diff --git a/util/cteutil/BUILD.bazel b/util/cteutil/BUILD.bazel index 990325cd33b93..86a9174e45809 100644 --- a/util/cteutil/BUILD.bazel +++ b/util/cteutil/BUILD.bazel @@ -22,6 +22,7 @@ go_test( "storage_test.go", ], embed = [":cteutil"], + flaky = True, deps = [ "//parser/mysql", "//testkit/testsetup", diff --git a/util/dbterror/BUILD.bazel b/util/dbterror/BUILD.bazel index 6ded1d55dfe47..bea6593acf626 100644 --- a/util/dbterror/BUILD.bazel +++ b/util/dbterror/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "terror_test.go", ], embed = [":dbterror"], + flaky = True, deps = [ "//errno", "//testkit/testsetup", diff --git a/util/dbutil/BUILD.bazel b/util/dbutil/BUILD.bazel index b1f69096da54b..827896678e94c 100644 --- a/util/dbutil/BUILD.bazel +++ b/util/dbutil/BUILD.bazel @@ -48,6 +48,7 @@ go_test( "variable_test.go", ], embed = [":dbutil"], + flaky = True, deps = [ "//errno", "//infoschema", diff --git a/util/ddl-checker/BUILD.bazel b/util/ddl-checker/BUILD.bazel index f364776532653..4cbd315e96817 100644 --- a/util/ddl-checker/BUILD.bazel +++ b/util/ddl-checker/BUILD.bazel @@ -26,6 +26,7 @@ go_test( timeout = "short", srcs = ["executable_checker_test.go"], embed = [":ddl-checker"], + flaky = True, deps = [ "//testkit", "@com_github_stretchr_testify//require", diff --git a/util/deadlockhistory/BUILD.bazel b/util/deadlockhistory/BUILD.bazel index da5bff2870aed..89eb6921903cd 100644 --- a/util/deadlockhistory/BUILD.bazel +++ b/util/deadlockhistory/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "main_test.go", ], embed = [":deadlockhistory"], + flaky = True, deps = [ "//parser", "//parser/model", diff --git a/util/disjointset/BUILD.bazel b/util/disjointset/BUILD.bazel index 1f50ae31c6f95..77a6b05b7a6e4 100644 --- a/util/disjointset/BUILD.bazel +++ b/util/disjointset/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":disjointset"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//assert", diff --git a/util/disk/BUILD.bazel b/util/disk/BUILD.bazel index 84ea6c67d676f..77b1f49c08b81 100644 --- a/util/disk/BUILD.bazel +++ b/util/disk/BUILD.bazel @@ -28,6 +28,7 @@ go_test( "tempDir_test.go", ], embed = [":disk"], + flaky = True, deps = [ "//config", "//testkit/testsetup", diff --git a/util/encrypt/BUILD.bazel b/util/encrypt/BUILD.bazel index d6ab0eb9a7c0a..dfafb966b16c8 100644 --- a/util/encrypt/BUILD.bazel +++ b/util/encrypt/BUILD.bazel @@ -22,6 +22,7 @@ go_test( "main_test.go", ], embed = [":encrypt"], + flaky = True, deps = [ "//testkit/testsetup", "//util/checksum", diff --git a/util/engine/BUILD.bazel b/util/engine/BUILD.bazel new file mode 100644 index 0000000000000..3d8ea7cfa6fa7 --- /dev/null +++ b/util/engine/BUILD.bazel @@ -0,0 +1,9 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "engine", + srcs = ["engine.go"], + importpath = "github.com/pingcap/tidb/util/engine", + visibility = ["//visibility:public"], + deps = ["@com_github_pingcap_kvproto//pkg/metapb"], +) diff --git a/util/etcd/BUILD.bazel b/util/etcd/BUILD.bazel index 545c83f127e7c..65b3e7a016047 100644 --- a/util/etcd/BUILD.bazel +++ b/util/etcd/BUILD.bazel @@ -16,6 +16,7 @@ go_test( timeout = "short", srcs = ["etcd_test.go"], embed = [":etcd"], + flaky = True, deps = [ "@com_github_pingcap_errors//:errors", "@com_github_stretchr_testify//require", diff --git a/util/execdetails/BUILD.bazel b/util/execdetails/BUILD.bazel index 755981338fdc0..3c745a8efd97c 100644 --- a/util/execdetails/BUILD.bazel +++ b/util/execdetails/BUILD.bazel @@ -21,6 +21,7 @@ go_test( "main_test.go", ], embed = [":execdetails"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_pingcap_tipb//go-tipb", diff --git a/util/expensivequery/BUILD.bazel b/util/expensivequery/BUILD.bazel index b96ffc97a9c27..789639dc53452 100644 --- a/util/expensivequery/BUILD.bazel +++ b/util/expensivequery/BUILD.bazel @@ -28,6 +28,7 @@ go_test( timeout = "short", srcs = ["expensivequerey_test.go"], embed = [":expensivequery"], + flaky = True, deps = [ "//sessionctx/stmtctx", "//testkit/testsetup", diff --git a/util/fastrand/BUILD.bazel b/util/fastrand/BUILD.bazel index 5e40856edb6b3..8604c94d8a32a 100644 --- a/util/fastrand/BUILD.bazel +++ b/util/fastrand/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "random_test.go", ], embed = [":fastrand"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/filter/BUILD.bazel b/util/filter/BUILD.bazel index 07e3af82d1225..0398ae0371ba9 100644 --- a/util/filter/BUILD.bazel +++ b/util/filter/BUILD.bazel @@ -23,5 +23,6 @@ go_test( "schema_test.go", ], embed = [":filter"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/util/format/BUILD.bazel b/util/format/BUILD.bazel index de1583911289a..c100d198aa6ba 100644 --- a/util/format/BUILD.bazel +++ b/util/format/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":format"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//assert", diff --git a/util/generatedexpr/BUILD.bazel b/util/generatedexpr/BUILD.bazel index 02612944f02c1..e8d1c6c412dc9 100644 --- a/util/generatedexpr/BUILD.bazel +++ b/util/generatedexpr/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "main_test.go", ], embed = [":generatedexpr"], + flaky = True, deps = [ "//parser/ast", "//testkit/testsetup", diff --git a/util/hack/BUILD.bazel b/util/hack/BUILD.bazel index c52303037a6b5..30f018da11ea3 100644 --- a/util/hack/BUILD.bazel +++ b/util/hack/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "main_test.go", ], embed = [":hack"], + flaky = True, deps = [ "//testkit/testsetup", "@org_uber_go_goleak//:goleak", diff --git a/util/keydecoder/BUILD.bazel b/util/keydecoder/BUILD.bazel index 21b5d1ee3466a..9f059b500ecff 100644 --- a/util/keydecoder/BUILD.bazel +++ b/util/keydecoder/BUILD.bazel @@ -24,6 +24,7 @@ go_test( "main_test.go", ], embed = [":keydecoder"], + flaky = True, deps = [ "//infoschema", "//parser/model", diff --git a/util/kvcache/BUILD.bazel b/util/kvcache/BUILD.bazel index 79ac25f1dff5d..658b5c57e0b5c 100644 --- a/util/kvcache/BUILD.bazel +++ b/util/kvcache/BUILD.bazel @@ -19,6 +19,7 @@ go_test( "simple_lru_test.go", ], embed = [":kvcache"], + flaky = True, deps = [ "//testkit/testsetup", "//util/memory", diff --git a/util/localpool/BUILD.bazel b/util/localpool/BUILD.bazel index 108c9fdd07ab6..97d3ec04775b8 100644 --- a/util/localpool/BUILD.bazel +++ b/util/localpool/BUILD.bazel @@ -19,6 +19,7 @@ go_test( "main_test.go", ], embed = [":localpool"], + flaky = True, deps = [ "//testkit/testsetup", "//util", diff --git a/util/logutil/BUILD.bazel b/util/logutil/BUILD.bazel index 6d0732c980b38..3abf806e9290b 100644 --- a/util/logutil/BUILD.bazel +++ b/util/logutil/BUILD.bazel @@ -31,6 +31,7 @@ go_test( "main_test.go", ], embed = [":logutil"], + flaky = True, deps = [ "//kv", "//testkit/testsetup", diff --git a/util/mathutil/BUILD.bazel b/util/mathutil/BUILD.bazel index a14ce2301728e..971a1ded219e4 100644 --- a/util/mathutil/BUILD.bazel +++ b/util/mathutil/BUILD.bazel @@ -20,6 +20,7 @@ go_test( "rand_test.go", ], embed = [":mathutil"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/memory/BUILD.bazel b/util/memory/BUILD.bazel index 4b7d11880acdc..42ee24527f47b 100644 --- a/util/memory/BUILD.bazel +++ b/util/memory/BUILD.bazel @@ -31,6 +31,7 @@ go_test( "tracker_test.go", ], embed = [":memory"], + flaky = True, deps = [ "//errno", "//parser/terror", diff --git a/util/mock/BUILD.bazel b/util/mock/BUILD.bazel index d5c9c1adbae3b..62263bdfc506f 100644 --- a/util/mock/BUILD.bazel +++ b/util/mock/BUILD.bazel @@ -44,6 +44,7 @@ go_test( "mock_test.go", ], embed = [":mock"], + flaky = True, deps = [ "//kv", "//testkit/testsetup", diff --git a/util/mvmap/BUILD.bazel b/util/mvmap/BUILD.bazel index 9171f5cd8f8cb..88855b41b3549 100644 --- a/util/mvmap/BUILD.bazel +++ b/util/mvmap/BUILD.bazel @@ -20,6 +20,7 @@ go_test( "mvmap_test.go", ], embed = [":mvmap"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/paging/BUILD.bazel b/util/paging/BUILD.bazel index 9f7c24e6c8045..f89101aac0c29 100644 --- a/util/paging/BUILD.bazel +++ b/util/paging/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "paging_test.go", ], embed = [":paging"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/parser/BUILD.bazel b/util/parser/BUILD.bazel index 999c032219586..06779de5d3438 100644 --- a/util/parser/BUILD.bazel +++ b/util/parser/BUILD.bazel @@ -25,6 +25,7 @@ go_test( "main_test.go", "parser_test.go", ], + flaky = True, deps = [ ":parser", "//parser", diff --git a/util/plancodec/BUILD.bazel b/util/plancodec/BUILD.bazel index c9709e3d298d7..776c53d63a816 100644 --- a/util/plancodec/BUILD.bazel +++ b/util/plancodec/BUILD.bazel @@ -29,6 +29,7 @@ go_test( "main_test.go", ], embed = [":plancodec"], + flaky = True, deps = [ "//kv", "//testkit/testsetup", diff --git a/util/printer/BUILD.bazel b/util/printer/BUILD.bazel index e64b34df78622..0eeabc5bb7d6b 100644 --- a/util/printer/BUILD.bazel +++ b/util/printer/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "printer_test.go", ], embed = [":printer"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/profile/BUILD.bazel b/util/profile/BUILD.bazel index bed70150e7c00..1105932f44f17 100644 --- a/util/profile/BUILD.bazel +++ b/util/profile/BUILD.bazel @@ -28,6 +28,7 @@ go_test( ], data = glob(["testdata/**"]), embed = [":profile"], + flaky = True, deps = [ "//domain", "//kv", diff --git a/util/promutil/BUILD.bazel b/util/promutil/BUILD.bazel index f49505157e266..d34e4a0d6cc4c 100644 --- a/util/promutil/BUILD.bazel +++ b/util/promutil/BUILD.bazel @@ -16,6 +16,7 @@ go_test( timeout = "short", srcs = ["registry_test.go"], embed = [":promutil"], + flaky = True, deps = [ "@com_github_prometheus_client_golang//prometheus", "@com_github_stretchr_testify//require", diff --git a/util/ranger/BUILD.bazel b/util/ranger/BUILD.bazel index c5b4eb725fd27..622db8075ce87 100644 --- a/util/ranger/BUILD.bazel +++ b/util/ranger/BUILD.bazel @@ -43,6 +43,7 @@ go_test( "types_test.go", ], data = glob(["testdata/**"]), + flaky = True, deps = [ ":ranger", "//config", diff --git a/util/regexpr-router/BUILD.bazel b/util/regexpr-router/BUILD.bazel index 3b1a2dfa8b3bd..04e8c022ea10e 100644 --- a/util/regexpr-router/BUILD.bazel +++ b/util/regexpr-router/BUILD.bazel @@ -17,6 +17,7 @@ go_test( timeout = "short", srcs = ["regexpr_router_test.go"], embed = [":regexpr-router"], + flaky = True, deps = [ "//util/filter", "//util/table-router", diff --git a/util/resourcegrouptag/BUILD.bazel b/util/resourcegrouptag/BUILD.bazel index 13d6c63293de2..3ae8ec1487d3e 100644 --- a/util/resourcegrouptag/BUILD.bazel +++ b/util/resourcegrouptag/BUILD.bazel @@ -24,6 +24,7 @@ go_test( "resource_group_tag_test.go", ], embed = [":resourcegrouptag"], + flaky = True, deps = [ "//parser", "//testkit/testsetup", diff --git a/util/rowDecoder/BUILD.bazel b/util/rowDecoder/BUILD.bazel index 1bf06cf64d6d1..8e9d8f8fa2de3 100644 --- a/util/rowDecoder/BUILD.bazel +++ b/util/rowDecoder/BUILD.bazel @@ -27,6 +27,7 @@ go_test( "decoder_test.go", "main_test.go", ], + flaky = True, deps = [ ":rowDecoder", "//expression", diff --git a/util/rowcodec/BUILD.bazel b/util/rowcodec/BUILD.bazel index b99642928ac0b..6ca9a957c9c32 100644 --- a/util/rowcodec/BUILD.bazel +++ b/util/rowcodec/BUILD.bazel @@ -34,6 +34,7 @@ go_test( "rowcodec_test.go", ], embed = [":rowcodec"], + flaky = True, deps = [ "//kv", "//parser/mysql", diff --git a/util/schemacmp/BUILD.bazel b/util/schemacmp/BUILD.bazel index 35df7d02c8da5..23993b5d25084 100644 --- a/util/schemacmp/BUILD.bazel +++ b/util/schemacmp/BUILD.bazel @@ -29,6 +29,7 @@ go_test( "table_test.go", "type_test.go", ], + flaky = True, deps = [ ":schemacmp", "//ddl", diff --git a/util/selection/BUILD.bazel b/util/selection/BUILD.bazel index d5448ceb58925..eec28d34ec54c 100644 --- a/util/selection/BUILD.bazel +++ b/util/selection/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "selection_test.go", ], embed = [":selection"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/sem/BUILD.bazel b/util/sem/BUILD.bazel index 1e773af096d96..f1a6d5ae2716e 100644 --- a/util/sem/BUILD.bazel +++ b/util/sem/BUILD.bazel @@ -20,6 +20,7 @@ go_test( "sem_test.go", ], embed = [":sem"], + flaky = True, deps = [ "//parser/mysql", "//sessionctx/variable", diff --git a/util/set/BUILD.bazel b/util/set/BUILD.bazel index 27a5fd1ea1057..18c713f94144f 100644 --- a/util/set/BUILD.bazel +++ b/util/set/BUILD.bazel @@ -26,6 +26,7 @@ go_test( "string_set_test.go", ], embed = [":set"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//assert", diff --git a/util/slice/BUILD.bazel b/util/slice/BUILD.bazel index ee7ac9f59721e..209661ebd4edf 100644 --- a/util/slice/BUILD.bazel +++ b/util/slice/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "slice_test.go", ], embed = [":slice"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/sqlexec/BUILD.bazel b/util/sqlexec/BUILD.bazel index bbb2529713ad2..8a15382edc71e 100644 --- a/util/sqlexec/BUILD.bazel +++ b/util/sqlexec/BUILD.bazel @@ -30,6 +30,7 @@ go_test( "utils_test.go", ], embed = [":sqlexec"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/stmtsummary/BUILD.bazel b/util/stmtsummary/BUILD.bazel index 1a365ef883a99..121d09caa6825 100644 --- a/util/stmtsummary/BUILD.bazel +++ b/util/stmtsummary/BUILD.bazel @@ -38,6 +38,7 @@ go_test( "statement_summary_test.go", ], embed = [":stmtsummary"], + flaky = True, deps = [ "//parser/auth", "//parser/model", diff --git a/util/stringutil/BUILD.bazel b/util/stringutil/BUILD.bazel index c8b41d09208e7..d5cd7c185e8f6 100644 --- a/util/stringutil/BUILD.bazel +++ b/util/stringutil/BUILD.bazel @@ -21,6 +21,7 @@ go_test( "string_util_test.go", ], embed = [":stringutil"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/sys/linux/BUILD.bazel b/util/sys/linux/BUILD.bazel index 78c1687b5e5f5..1212afe2fc3d9 100644 --- a/util/sys/linux/BUILD.bazel +++ b/util/sys/linux/BUILD.bazel @@ -19,6 +19,7 @@ go_test( "main_test.go", "sys_test.go", ], + flaky = True, deps = [ ":linux", "//testkit/testsetup", diff --git a/util/sys/storage/BUILD.bazel b/util/sys/storage/BUILD.bazel index 56594c494bf00..5c5613d532eb8 100644 --- a/util/sys/storage/BUILD.bazel +++ b/util/sys/storage/BUILD.bazel @@ -25,6 +25,7 @@ go_test( "sys_test.go", ], embed = [":storage"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/systimemon/BUILD.bazel b/util/systimemon/BUILD.bazel index 561ca9fae45b2..92a2b04db7050 100644 --- a/util/systimemon/BUILD.bazel +++ b/util/systimemon/BUILD.bazel @@ -19,6 +19,7 @@ go_test( "systime_mon_test.go", ], embed = [":systimemon"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/table-filter/BUILD.bazel b/util/table-filter/BUILD.bazel index 7d92695ac08ca..7c395d376cd36 100644 --- a/util/table-filter/BUILD.bazel +++ b/util/table-filter/BUILD.bazel @@ -23,6 +23,7 @@ go_test( "compat_test.go", "table_filter_test.go", ], + flaky = True, deps = [ ":table-filter", "@com_github_stretchr_testify//require", diff --git a/util/table-router/BUILD.bazel b/util/table-router/BUILD.bazel index 0396984c1dd7b..77adca60bc89f 100644 --- a/util/table-router/BUILD.bazel +++ b/util/table-router/BUILD.bazel @@ -16,6 +16,7 @@ go_test( timeout = "short", srcs = ["router_test.go"], embed = [":table-router"], + flaky = True, deps = [ "//util/table-rule-selector", "@com_github_stretchr_testify//require", diff --git a/util/table-rule-selector/BUILD.bazel b/util/table-rule-selector/BUILD.bazel index 95edad36596fb..d1f59e9bac75c 100644 --- a/util/table-rule-selector/BUILD.bazel +++ b/util/table-rule-selector/BUILD.bazel @@ -13,5 +13,6 @@ go_test( timeout = "short", srcs = ["selector_test.go"], embed = [":table-rule-selector"], + flaky = True, deps = ["@com_github_stretchr_testify//require"], ) diff --git a/util/texttree/BUILD.bazel b/util/texttree/BUILD.bazel index 987dfd79e9199..47293bb45baf8 100644 --- a/util/texttree/BUILD.bazel +++ b/util/texttree/BUILD.bazel @@ -15,6 +15,7 @@ go_test( "texttree_test.go", ], embed = [":texttree"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/timeutil/BUILD.bazel b/util/timeutil/BUILD.bazel index c9b4ee8f5369f..301fd3d409977 100644 --- a/util/timeutil/BUILD.bazel +++ b/util/timeutil/BUILD.bazel @@ -20,6 +20,7 @@ go_test( "time_test.go", ], embed = [":timeutil"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require", diff --git a/util/topsql/BUILD.bazel b/util/topsql/BUILD.bazel index 19b8b381c4b5f..f90cf35b09e8f 100644 --- a/util/topsql/BUILD.bazel +++ b/util/topsql/BUILD.bazel @@ -27,6 +27,7 @@ go_test( "topsql_test.go", ], embed = [":topsql"], + flaky = True, deps = [ "//config", "//parser", diff --git a/util/topsql/collector/BUILD.bazel b/util/topsql/collector/BUILD.bazel index 9e8fa4466cf27..0bb7e073a9d4b 100644 --- a/util/topsql/collector/BUILD.bazel +++ b/util/topsql/collector/BUILD.bazel @@ -21,6 +21,7 @@ go_test( timeout = "short", srcs = ["main_test.go"], embed = [":collector"], + flaky = True, deps = [ "//testkit/testsetup", "//util/cpuprofile", diff --git a/util/topsql/reporter/BUILD.bazel b/util/topsql/reporter/BUILD.bazel index a5621a615bf94..6c1def091ee39 100644 --- a/util/topsql/reporter/BUILD.bazel +++ b/util/topsql/reporter/BUILD.bazel @@ -44,6 +44,7 @@ go_test( "single_target_test.go", ], embed = [":reporter"], + flaky = True, deps = [ "//config", "//testkit/testsetup", diff --git a/util/topsql/stmtstats/BUILD.bazel b/util/topsql/stmtstats/BUILD.bazel index bea760d6f143b..a0e7bf0cfbb50 100644 --- a/util/topsql/stmtstats/BUILD.bazel +++ b/util/topsql/stmtstats/BUILD.bazel @@ -27,6 +27,7 @@ go_test( "stmtstats_test.go", ], embed = [":stmtstats"], + flaky = True, deps = [ "//testkit/testsetup", "//util/topsql/state", diff --git a/util/tracing/BUILD.bazel b/util/tracing/BUILD.bazel index 619a66ac202c8..9f6ccac4a590e 100644 --- a/util/tracing/BUILD.bazel +++ b/util/tracing/BUILD.bazel @@ -24,6 +24,7 @@ go_test( "util_test.go", ], embed = [":tracing"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_opentracing_basictracer_go//:basictracer-go", diff --git a/util/vitess/BUILD.bazel b/util/vitess/BUILD.bazel index d05401ed0cacb..e2d41e82a1385 100644 --- a/util/vitess/BUILD.bazel +++ b/util/vitess/BUILD.bazel @@ -16,6 +16,7 @@ go_test( "vitess_hash_test.go", ], embed = [":vitess"], + flaky = True, deps = [ "//testkit/testsetup", "@com_github_stretchr_testify//require",