Skip to content

Commit

Permalink
bazel: set short timeout as 120s (#42396)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Mar 21, 2023
1 parent 18bce53 commit 3c942f7
Show file tree
Hide file tree
Showing 32 changed files with 724 additions and 496 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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
test:ci --test_timeout=120,300,900,3600
test:race --test_timeout=1200,6000,18000,72000

try-import /data/bazel
2 changes: 1 addition & 1 deletion bindinfo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ go_library(

go_test(
name = "bindinfo_test",
timeout = "short",
timeout = "moderate",
srcs = [
"bind_cache_test.go",
"bind_test.go",
Expand Down
1 change: 1 addition & 0 deletions br/pkg/backup/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ go_test(
embed = [":backup"],
flaky = True,
race = "on",
shard_count = 9,
deps = [
"//br/pkg/conn",
"//br/pkg/gluetidb",
Expand Down
1 change: 1 addition & 0 deletions br/pkg/backup/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestMain(m *testing.M) {
goleak.IgnoreTopFunction("github.com/klauspost/compress/zstd.(*blockDec).startDecoder"),
goleak.IgnoreTopFunction("github.com/pingcap/goleveldb/leveldb.(*DB).mpoolDrain"),
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
}
goleak.VerifyTestMain(m, opts...)
}
4 changes: 2 additions & 2 deletions br/pkg/utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ go_library(

go_test(
name = "utils_test",
timeout = "short",
timeout = "moderate",
srcs = [
"backoff_test.go",
"cdc_test.go",
Expand All @@ -87,7 +87,7 @@ go_test(
],
embed = [":utils"],
flaky = True,
shard_count = 30,
shard_count = 36,
deps = [
"//br/pkg/errors",
"//br/pkg/metautil",
Expand Down
1 change: 1 addition & 0 deletions build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ nogo(
"@org_golang_x_tools//go/analysis/passes/structtag:go_default_library",
"@org_golang_x_tools//go/analysis/passes/testinggoroutine:go_default_library",
"@org_golang_x_tools//go/analysis/passes/tests:go_default_library",
"@org_golang_x_tools//go/analysis/passes/timeformat:go_default_library",
"@org_golang_x_tools//go/analysis/passes/unmarshal:go_default_library",
"@org_golang_x_tools//go/analysis/passes/unreachable:go_default_library",
"@org_golang_x_tools//go/analysis/passes/unsafeptr:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion ddl/indexmergetest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go_test(
],
flaky = True,
race = "on",
shard_count = 18,
shard_count = 20,
deps = [
"//config",
"//ddl",
Expand Down
2 changes: 1 addition & 1 deletion ddl/metadatalocktest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ go_test(
"mdl_test.go",
],
flaky = True,
shard_count = 30,
shard_count = 31,
deps = [
"//config",
"//ddl",
Expand Down
1 change: 1 addition & 0 deletions ddl/resourcegrouptest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_test(
srcs = ["resource_group_test.go"],
flaky = True,
race = "on",
shard_count = 4,
deps = [
"//ddl/internal/callback",
"//ddl/resourcegroup",
Expand Down
2 changes: 1 addition & 1 deletion executor/aggfuncs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ go_library(

go_test(
name = "aggfuncs_test",
timeout = "short",
timeout = "moderate",
srcs = [
"aggfunc_test.go",
"export_test.go",
Expand Down
1 change: 1 addition & 0 deletions executor/asyncloaddata/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ go_test(
embed = [":asyncloaddata"],
flaky = True,
race = "on",
shard_count = 6,
deps = [
"//br/pkg/lightning/config",
"//executor/importer",
Expand Down
2 changes: 1 addition & 1 deletion executor/autoidtest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go_test(
],
flaky = True,
race = "on",
shard_count = 5,
shard_count = 10,
deps = [
"//autoid_service",
"//config",
Expand Down
1 change: 0 additions & 1 deletion executor/issuetest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ go_test(
"main_test.go",
],
flaky = True,
race = "on",
shard_count = 50,
deps = [
"//autoid_service",
Expand Down
27 changes: 27 additions & 0 deletions executor/loaddatatest/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
name = "loaddatatest_test",
timeout = "short",
srcs = [
"load_data_test.go",
"main_test.go",
],
flaky = True,
race = "on",
shard_count = 11,
deps = [
"//br/pkg/lightning/mydump",
"//config",
"//executor",
"//meta/autoid",
"//sessionctx",
"//sessiontxn",
"//testkit",
"//util/dbterror/exeerrors",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//tikv",
"@io_opencensus_go//stats/view",
"@org_uber_go_goleak//:goleak",
],
)
Loading

0 comments on commit 3c942f7

Please sign in to comment.