Skip to content

Commit

Permalink
util: split the tests of workloadrepo into multiple shard (pingcap#59030
Browse files Browse the repository at this point in the history
  • Loading branch information
winoros authored Jan 19, 2025
1 parent 91bfa27 commit 5ed9e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/util/workloadrepo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ go_library(

go_test(
name = "workloadrepo_test",
timeout = "long",
timeout = "short",
srcs = ["worker_test.go"],
embed = [":workloadrepo"],
flaky = True,
shard_count = 13,
deps = [
"//pkg/domain",
"//pkg/infoschema",
Expand Down
3 changes: 2 additions & 1 deletion tools/tazel/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ func skipShardCount(path string) bool {
!strings.HasPrefix(path, "pkg/util/admin") &&
!strings.HasPrefix(path, "pkg/util/chunk") &&
!strings.HasPrefix(path, "pkg/util/topsql") &&
!strings.HasPrefix(path, "pkg/util/stmtsummary"))
!strings.HasPrefix(path, "pkg/util/stmtsummary") &&
!strings.HasPrefix(path, "pkg/util/workloadrepo"))
}

0 comments on commit 5ed9e63

Please sign in to comment.