Skip to content

Commit

Permalink
ttl: optimize bazel for TTL codes (pingcap#41278)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao authored and blacktear23 committed Feb 15, 2023
1 parent e62f216 commit 7accbf7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ttl/cache/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ go_library(

go_test(
name = "cache_test",
timeout = "short",
srcs = [
"base_test.go",
"infoschema_test.go",
Expand All @@ -46,6 +47,7 @@ go_test(
],
embed = [":cache"],
flaky = True,
shard_count = 50,
deps = [
"//infoschema",
"//kv",
Expand Down
2 changes: 2 additions & 0 deletions ttl/client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ go_library(

go_test(
name = "client_test",
timeout = "short",
srcs = ["command_test.go"],
embed = [":client"],
shard_count = 5,
deps = [
"@com_github_pingcap_errors//:errors",
"@com_github_stretchr_testify//require",
Expand Down
2 changes: 2 additions & 0 deletions ttl/metrics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ go_library(

go_test(
name = "metrics_test",
timeout = "short",
srcs = ["metrics_test.go"],
embed = [":metrics"],
shard_count = 5,
deps = ["@com_github_stretchr_testify//require"],
)
2 changes: 2 additions & 0 deletions ttl/session/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ go_library(

go_test(
name = "session_test",
timeout = "short",
srcs = [
"main_test.go",
"session_test.go",
"sysvar_test.go",
],
flaky = True,
shard_count = 5,
deps = [
":session",
"//sessionctx/variable",
Expand Down
2 changes: 2 additions & 0 deletions ttl/sqlbuilder/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ go_library(

go_test(
name = "sqlbuilder_test",
timeout = "short",
srcs = [
"main_test.go",
"sql_test.go",
],
flaky = True,
shard_count = 5,
deps = [
":sqlbuilder",
"//kv",
Expand Down
2 changes: 1 addition & 1 deletion ttl/ttlworker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ go_library(

go_test(
name = "ttlworker_test",
timeout = "long",
timeout = "moderate",
srcs = [
"del_test.go",
"job_manager_integration_test.go",
Expand Down

0 comments on commit 7accbf7

Please sign in to comment.