Skip to content

Commit

Permalink
This is an automated cherry-pick of #47495
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
dveeden authored and ti-chi-bot committed Nov 3, 2023
1 parent 9a8182f commit be1d607
Show file tree
Hide file tree
Showing 3 changed files with 977 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkg/server/internal/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "internal",
srcs = ["packetio.go"],
importpath = "github.com/pingcap/tidb/pkg/server/internal",
visibility = ["//pkg/server:__subpackages__"],
deps = [
"//pkg/parser/mysql",
"//pkg/parser/terror",
"//pkg/server/err",
"//pkg/server/internal/util",
"//pkg/server/metrics",
"//pkg/sessionctx/variable",
"@com_github_klauspost_compress//zstd",
"@com_github_pingcap_errors//:errors",
],
)

go_test(
name = "internal_test",
timeout = "short",
srcs = ["packetio_test.go"],
embed = [":internal"],
flaky = True,
shard_count = 7,
deps = [
"//pkg/parser/mysql",
"//pkg/server/internal/testutil",
"//pkg/server/internal/util",
"@com_github_klauspost_compress//zstd",
"@com_github_stretchr_testify//require",
],
)
Loading

0 comments on commit be1d607

Please sign in to comment.