Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: set short timeout as 120s #42396

Merged
merged 39 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
88c0ad8
bazel: set short timeout as 120s
hawkingrei Mar 20, 2023
14f85f0
update
hawkingrei Mar 20, 2023
2ada954
update
hawkingrei Mar 20, 2023
6c3bcbd
update
hawkingrei Mar 20, 2023
44d3262
update
hawkingrei Mar 20, 2023
aa9bdd3
update
hawkingrei Mar 20, 2023
ee396be
update
hawkingrei Mar 21, 2023
be3cda9
update
hawkingrei Mar 21, 2023
1feed7f
update
hawkingrei Mar 21, 2023
1a448d1
update
hawkingrei Mar 21, 2023
ad75563
update
hawkingrei Mar 21, 2023
367d69d
update
hawkingrei Mar 21, 2023
7203321
update
hawkingrei Mar 21, 2023
f67bfe2
update
hawkingrei Mar 21, 2023
d8cda7a
update
hawkingrei Mar 21, 2023
9d5a542
update
hawkingrei Mar 21, 2023
fc2edf5
update
hawkingrei Mar 21, 2023
5d077e8
*: support cgroup mix mode
hawkingrei Mar 21, 2023
4d9cd62
*: support cgroup mix mode
hawkingrei Mar 21, 2023
705a855
*: support cgroup mix mode
hawkingrei Mar 21, 2023
5fce498
update
hawkingrei Mar 21, 2023
88ba319
update
hawkingrei Mar 21, 2023
5f00c5c
update
hawkingrei Mar 21, 2023
e2b6c91
update
hawkingrei Mar 21, 2023
a726b85
update
hawkingrei Mar 21, 2023
877226d
update
hawkingrei Mar 21, 2023
1e6c1b2
update
hawkingrei Mar 21, 2023
94a1204
*: fix data race in the IgnoreTruncate
hawkingrei Mar 21, 2023
a5d2ab2
update
hawkingrei Mar 21, 2023
5dc7b88
update
hawkingrei Mar 21, 2023
a2f7a36
update
hawkingrei Mar 21, 2023
067cdfc
update
hawkingrei Mar 21, 2023
931a1f6
update
hawkingrei Mar 21, 2023
fa9ba77
update
hawkingrei Mar 21, 2023
d570d5b
update
hawkingrei Mar 21, 2023
1be5fff
update
hawkingrei Mar 21, 2023
bd85edf
update
hawkingrei Mar 21, 2023
caa124b
update
hawkingrei Mar 21, 2023
55a1cfa
update
hawkingrei Mar 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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