Skip to content

Commit

Permalink
*: enable more flaky and update bazel config
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Jun 20, 2022
1 parent 7bd8923 commit e1a8547
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions br/pkg/lightning/mydump/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ go_library(
"//util/slice",
"//util/table-filter",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_xitongsys_parquet_go//parquet",
"@com_github_xitongsys_parquet_go//reader",
"@com_github_xitongsys_parquet_go//source",
Expand Down
3 changes: 3 additions & 0 deletions br/pkg/storage/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ go_library(
"local.go",
"local_unix.go",
"local_windows.go",
"memstore.go",
"noop.go",
"parse.go",
"s3.go",
Expand Down Expand Up @@ -43,6 +44,7 @@ go_library(
"@org_golang_google_api//iterator",
"@org_golang_google_api//option",
"@org_golang_x_oauth2//google",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
Expand All @@ -54,6 +56,7 @@ go_test(
"compress_test.go",
"gcs_test.go",
"local_test.go",
"memstore_test.go",
"parse_test.go",
"s3_test.go",
"writer_test.go",
Expand Down
2 changes: 2 additions & 0 deletions ddl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
"generated_column.go",
"index.go",
"mock.go",
"multi_schema_change.go",
"options.go",
"partition.go",
"placement_policy.go",
Expand Down Expand Up @@ -129,6 +130,7 @@ go_test(
"db_table_test.go",
"db_test.go",
"ddl_algorithm_test.go",
"ddl_api_test.go",
"ddl_error_test.go",
"ddl_test.go",
"ddl_tiflash_test.go",
Expand Down
1 change: 1 addition & 0 deletions ddl/failtest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_test(
"fail_db_test.go",
"main_test.go",
],
flaky = True,
deps = [
"//config",
"//ddl",
Expand Down
1 change: 1 addition & 0 deletions ddl/placement/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ go_test(
"rule_test.go",
],
embed = [":placement"],
flaky = True,
deps = [
"//kv",
"//meta",
Expand Down
1 change: 1 addition & 0 deletions ddl/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ go_test(
"syncer_test.go",
],
embed = [":util"],
flaky = True,
deps = [
"//ddl",
"//infoschema",
Expand Down
1 change: 1 addition & 0 deletions expression/aggregation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ go_test(
flaky = True,
deps = [
"//expression",
"//kv",
"//parser/ast",
"//parser/mysql",
"//sessionctx",
Expand Down
1 change: 1 addition & 0 deletions parser/types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_library(
"//parser/format",
"//parser/mysql",
"//parser/terror",
"@com_github_cznic_mathutil//:mathutil",
],
)

Expand Down
1 change: 1 addition & 0 deletions session/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ go_library(
"//session/txninfo",
"//sessionctx",
"//sessionctx/binloginfo",
"//sessionctx/sessionstates",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//sessiontxn",
Expand Down
1 change: 1 addition & 0 deletions sessionctx/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ go_library(
"//kv",
"//metrics",
"//parser/model",
"//sessionctx/sessionstates",
"//sessionctx/variable",
"//util",
"//util/kvcache",
Expand Down
22 changes: 22 additions & 0 deletions sessionctx/sessionstates/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "sessionstates",
srcs = ["session_states.go"],
importpath = "github.com/pingcap/tidb/sessionctx/sessionstates",
visibility = ["//visibility:public"],
deps = [
"//parser/types",
"//types",
],
)

go_test(
name = "sessionstates_test",
srcs = ["session_states_test.go"],
deps = [
"//errno",
"//testkit",
"@com_github_stretchr_testify//require",
],
)
2 changes: 2 additions & 0 deletions sessionctx/variable/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ go_library(
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//parser/types",
"//sessionctx/sessionstates",
"//sessionctx/stmtctx",
"//tidb-binlog/pump_client",
"//types",
Expand Down
2 changes: 1 addition & 1 deletion sessiontxn/isolation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ go_test(
srcs = [
"main_test.go",
"readcommitted_test.go",
"repeatable_reat_test.go",
"repeatable_read_test.go",
"serializable_test.go",
],
deps = [
Expand Down
1 change: 1 addition & 0 deletions store/mockstore/mockcopr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ go_test(
"//testkit/testmain",
"//testkit/testsetup",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//oracle",
Expand Down
1 change: 1 addition & 0 deletions util/mock/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
"//parser/model",
"//parser/terror",
"//sessionctx",
"//sessionctx/sessionstates",
"//sessionctx/variable",
"//util",
"//util/disk",
Expand Down

0 comments on commit e1a8547

Please sign in to comment.