Skip to content

Commit

Permalink
tests: use test.Pool instead of Pool
Browse files Browse the repository at this point in the history
This tells Bazel to use the pool only for test actions instead of the
compile action associated with each test.

Epic: CRDB-8308
Release note: None
  • Loading branch information
rickystewart committed Feb 2, 2024
1 parent 06d9698 commit 8c63465
Show file tree
Hide file tree
Showing 692 changed files with 1,384 additions and 1,384 deletions.
4 changes: 2 additions & 2 deletions pkg/base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ go_test(
data = glob(["testdata/**"]),
embed = [":base"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = [
"//pkg/roachpb",
Expand Down
4 changes: 2 additions & 2 deletions pkg/bench/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ go_test(
],
embed = [":bench"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = [
"//pkg/base",
Expand Down
4 changes: 2 additions & 2 deletions pkg/bench/hashbench/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go_test(
name = "hashbench_test",
srcs = ["hash_gc_test.go"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
)
4 changes: 2 additions & 2 deletions pkg/bench/rttanalysis/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ go_test(
data = glob(["testdata/**"]),
embed = [":rttanalysis"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "large"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "large"},
}),
shard_count = 16,
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/bench/tpcc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ go_test(
],
embed = [":tpcc"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = [
"//pkg/base",
Expand Down
4 changes: 2 additions & 2 deletions pkg/blobs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ go_test(
],
embed = [":blobs"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = [
"//pkg/base",
Expand Down
4 changes: 2 additions & 2 deletions pkg/build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ go_test(
srcs = ["info_test.go"],
embed = [":build"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = ["@com_github_stretchr_testify//require"],
)
4 changes: 2 additions & 2 deletions pkg/build/bazel/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ go_test(
srcs = ["bazel_test.go"],
embed = [":bazel"], # keep
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = [
"@com_github_stretchr_testify//require",
Expand Down
4 changes: 2 additions & 2 deletions pkg/build/starlarkutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ go_test(
srcs = ["starlarkutil_test.go"],
embed = [":starlarkutil"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = ["@com_github_stretchr_testify//require"],
)
4 changes: 2 additions & 2 deletions pkg/build/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ go_test(
srcs = ["util_test.go"],
embed = [":util"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
deps = ["@com_github_stretchr_testify//require"],
)
4 changes: 2 additions & 2 deletions pkg/ccl/auditloggingccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ go_test(
],
embed = [":auditloggingccl"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ go_test(
data = glob(["testdata/**"]) + ["//c-deps:libgeos"],
embed = [":backupccl"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "large"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "large"},
}),
shard_count = 48,
tags = ["ccl_test"],
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backupdest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ go_test(
"main_test.go",
],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backupinfo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ go_test(
"manifest_handling_test.go",
],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backuppb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ go_test(
name = "backuppb_test",
srcs = ["backup_test.go"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backuprand/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ go_test(
],
data = ["//c-deps:libgeos"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backupresolver/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ go_test(
],
embed = [":backupresolver"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backuputils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ go_test(
srcs = ["memory_backed_quota_pool_test.go"],
embed = [":backuputils"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/baseccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ go_test(
srcs = ["encryption_spec_test.go"],
embed = [":baseccl"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = ["//pkg/util/leaktest"],
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/benchccl/rttanalysisccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ go_test(
],
data = glob(["testdata/**"]),
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "large"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "large"},
}),
shard_count = 16,
tags = ["ccl_test"],
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ go_test(
],
embed = [":changefeedccl"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "large"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "large"},
}),
shard_count = 16,
tags = ["ccl_test"],
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/cdceval/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ go_test(
],
embed = [":cdceval"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/cdcevent/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ go_test(
],
embed = [":cdcevent"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/cdctest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ go_test(
],
embed = [":cdctest"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/cdcutils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ go_test(
srcs = ["throttle_test.go"],
embed = [":cdcutils"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/changefeedbase/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ go_test(
],
embed = [":changefeedbase"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/kvevent/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ go_test(
],
embed = [":kvevent"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/kvfeed/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ go_test(
],
embed = [":kvfeed"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/changefeedccl/schemafeed/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ go_test(
data = glob(["testdata/**"]),
embed = [":schemafeed"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/cliccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ go_test(
data = glob(["testdata/**"]),
embed = [":cliccl"],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/cloudccl/amazon/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ go_test(
"s3_connection_test.go",
],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/cloudccl/azure/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ go_test(
"main_test.go",
],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/cloudccl/cloudprivilege/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ go_test(
exec_properties = select({
"//build/toolchains:is_heavy": {
"dockerNetwork": "standard",
"Pool": "heavy",
"test.Pool": "heavy",
},
"//conditions:default": {
"dockerNetwork": "standard",
"Pool": "default",
"test.Pool": "default",
},
}),
tags = ["ccl_test"],
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/cloudccl/externalconn/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ go_test(
exec_properties = select({
"//build/toolchains:is_heavy": {
"dockerNetwork": "standard",
"Pool": "heavy",
"test.Pool": "heavy",
},
"//conditions:default": {
"dockerNetwork": "standard",
"Pool": "default",
"test.Pool": "default",
},
}),
tags = ["ccl_test"],
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/cloudccl/gcp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ go_test(
"main_test.go",
],
exec_properties = select({
"//build/toolchains:is_heavy": {"Pool": "heavy"},
"//conditions:default": {"Pool": "default"},
"//build/toolchains:is_heavy": {"test.Pool": "heavy"},
"//conditions:default": {"test.Pool": "default"},
}),
tags = ["ccl_test"],
deps = [
Expand Down
Loading

0 comments on commit 8c63465

Please sign in to comment.