Skip to content

Commit

Permalink
*: enable race for some part (#38288)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Oct 8, 2022
1 parent fb4adc4 commit 4adfaf1
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3422,8 +3422,8 @@ def go_deps():
name = "com_github_tikv_client_go_v2",
build_file_proto_mode = "disable_global",
importpath = "github.com/tikv/client-go/v2",
sum = "h1:GJNu6XDT8W2Oahh+w/fhb37PNhFr4EZjdehIklZnhU4=",
version = "v2.0.1-0.20220921101651-ce9203ef66e9",
sum = "h1:TxDSQAmtGdE34BvOaYF35mRrAXePeZEq8quvuAwrKsI=",
version = "v2.0.1-0.20220923061703-33efe476e022",
)
go_repository(
name = "com_github_tikv_pd_client",
Expand Down
Empty file.
1 change: 1 addition & 0 deletions br/pkg/lightning/backend/kv/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ go_test(
"sql2kv_test.go",
],
flaky = True,
race = "on",
deps = [
":kv",
"//br/pkg/lightning/common",
Expand Down
1 change: 1 addition & 0 deletions br/pkg/lightning/checkpoints/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ go_test(
],
embed = [":checkpoints"],
flaky = True,
race = "on",
deps = [
"//br/pkg/lightning/checkpoints/checkpointspb",
"//br/pkg/lightning/config",
Expand Down
1 change: 1 addition & 0 deletions br/pkg/rtree/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ go_test(
"rtree_test.go",
],
flaky = True,
race = "on",
deps = [
":rtree",
"//testkit/testsetup",
Expand Down
2 changes: 2 additions & 0 deletions planner/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ go_library(
"plan_cacheable_checker.go",
"plan_cost.go",
"plan_cost_detail.go",
"plan_cost_ver2.go",
"plan_stats.go",
"plan_to_pb.go",
"planbuilder.go",
Expand Down Expand Up @@ -186,6 +187,7 @@ go_test(
"plan_cacheable_checker_test.go",
"plan_cost_detail_test.go",
"plan_cost_test.go",
"plan_cost_ver2_test.go",
"plan_stats_test.go",
"plan_test.go",
"plan_to_pb_test.go",
Expand Down
1 change: 1 addition & 0 deletions server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ go_test(
],
embed = [":server"],
flaky = True,
race = "on",
shard_count = 50,
deps = [
"//config",
Expand Down
1 change: 1 addition & 0 deletions sessionctx/variable/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ go_test(
"//parser/terror",
"//planner/core",
"//sessionctx/stmtctx",
"//testkit",
"//testkit/testsetup",
"//types",
"//util/execdetails",
Expand Down
1 change: 1 addition & 0 deletions sessiontxn/isolation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ go_library(
"//config",
"//infoschema",
"//kv",
"//metrics",
"//parser/ast",
"//parser/mysql",
"//parser/terror",
Expand Down
1 change: 1 addition & 0 deletions store/copr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ go_test(
],
embed = [":copr"],
flaky = True,
race = "on",
deps = [
"//kv",
"//store/driver/backoff",
Expand Down
1 change: 1 addition & 0 deletions table/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ go_test(
],
embed = [":table"],
flaky = True,
race = "on",
shard_count = 50,
deps = [
"//errno",
Expand Down
1 change: 1 addition & 0 deletions telemetry/cte_test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go_test(
timeout = "short",
srcs = ["cte_test.go"],
flaky = True,
race = "on",
deps = [
"//config",
"//domain",
Expand Down
3 changes: 2 additions & 1 deletion telemetry/cte_test/cte_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/pingcap/tidb/testkit/testsetup"
"github.com/stretchr/testify/require"
"go.etcd.io/etcd/tests/v3/integration"
"go.opencensus.io/stats/view"
"go.uber.org/goleak"
)

Expand All @@ -37,7 +38,6 @@ func TestMain(m *testing.M) {

opts := []goleak.Option{
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
}

Expand Down Expand Up @@ -120,6 +120,7 @@ func newSuite(t *testing.T) *testSuite {
suite.dom.Close()
err = suite.store.Close()
require.NoError(t, err)
view.Stop()
}

return suite
Expand Down
1 change: 0 additions & 1 deletion telemetry/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func TestMain(m *testing.M) {

opts := []goleak.Option{
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
}

Expand Down

0 comments on commit 4adfaf1

Please sign in to comment.