forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an automated cherry-pick of pingcap#49275
Signed-off-by: ti-chi-bot <[email protected]>
- Loading branch information
1 parent
a102bd1
commit cf7ddc2
Showing
3 changed files
with
150 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "plugin", | ||
srcs = [ | ||
"audit.go", | ||
"const.go", | ||
"errors.go", | ||
"helper.go", | ||
"plugin.go", | ||
"spi.go", | ||
], | ||
importpath = "github.com/pingcap/tidb/pkg/plugin", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/domain", | ||
"//pkg/errno", | ||
"//pkg/sessionctx/variable", | ||
"//pkg/util", | ||
"//pkg/util/dbterror", | ||
"//pkg/util/logutil", | ||
"@com_github_pingcap_errors//:errors", | ||
"@com_github_pingcap_log//:log", | ||
"@io_etcd_go_etcd_client_v3//:client", | ||
"@org_uber_go_zap//:zap", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "plugin_test", | ||
timeout = "short", | ||
srcs = [ | ||
"const_test.go", | ||
"helper_test.go", | ||
"integration_test.go", | ||
"main_test.go", | ||
"plugin_test.go", | ||
"spi_test.go", | ||
], | ||
embed = [":plugin"], | ||
flaky = True, | ||
shard_count = 12, | ||
deps = [ | ||
"//pkg/kv", | ||
"//pkg/parser/mysql", | ||
"//pkg/server", | ||
"//pkg/session", | ||
"//pkg/sessionctx/variable", | ||
"//pkg/testkit", | ||
"//pkg/testkit/testsetup", | ||
"@com_github_stretchr_testify//require", | ||
"@io_etcd_go_etcd_client_v3//:client", | ||
"@org_uber_go_goleak//:goleak", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters