Skip to content

Commit

Permalink
Generate bazel targets by labeling manual on go_binary, go_test
Browse files Browse the repository at this point in the history
  • Loading branch information
chaodaiG committed Oct 14, 2021
1 parent 875fea6 commit d87c796
Show file tree
Hide file tree
Showing 236 changed files with 279 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/prow/cluster/build/boskos-resources/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ go_test(
name = "go_default_test",
srcs = ["boskos_test.go"],
data = [":boskos-resources.yaml"],
tags = ["manual"],
deps = ["@io_k8s_sigs_boskos//common:go_default_library"],
)

Expand Down
1 change: 1 addition & 0 deletions config/tests/jobs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ go_test(
"//jobs",
"//scenarios",
],
tags = ["manual"],
deps = [
"//prow/apis/prowjobs/v1:go_default_library",
"//prow/config:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions config/tests/lint/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_test(
data = [
"//config:all-srcs",
],
tags = ["manual"],
)

filegroup(
Expand Down
1 change: 1 addition & 0 deletions config/tests/mergelists/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ go_test(
args = ["-list='$(locations //config/mergelists)'"],
data = ["//config/mergelists"],
rundir = ".",
tags = ["manual"],
deps = ["@com_github_googlecloudplatform_testgrid//pkg/merger:go_default_library"],
)

Expand Down
1 change: 1 addition & 0 deletions config/tests/testgrids/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_test(
"//config/prow:config.yaml",
],
rundir = ".",
tags = ["manual"],
deps = [
"//prow/config:go_default_library",
"//prow/flagutil/config:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions def/configmap/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_library(
go_binary(
name = "configmap",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/aws-stockout/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ go_library(
go_binary(
name = "aws-stockout",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
2 changes: 2 additions & 0 deletions experiment/bumpmonitoring/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ go_library(
go_binary(
name = "bumpmonitoring",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = ["main_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"@com_github_google_go_cmp//cmp:go_default_library",
"@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions experiment/ci-janitor/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
go_binary(
name = "ci-janitor",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand All @@ -37,6 +38,7 @@ go_test(
name = "go_default_test",
srcs = ["main_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"//prow/config:go_default_library",
"@io_k8s_api//core/v1:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions experiment/cluster-upgrader/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_library(
go_binary(
name = "cluster-upgrader",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/clustersecretbackup/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ filegroup(
go_binary(
name = "clustersecretbackup",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)
2 changes: 2 additions & 0 deletions experiment/coverage/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_library(
go_binary(
name = "coverage",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand All @@ -35,4 +36,5 @@ go_test(
name = "go_default_test",
srcs = ["apicoverage_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)
1 change: 1 addition & 0 deletions experiment/dummybenchmarks/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ go_test(
name = "go_default_test",
srcs = ["dummy_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)

filegroup(
Expand Down
1 change: 1 addition & 0 deletions experiment/dummybenchmarks/subpkg/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ go_test(
name = "go_default_test",
srcs = ["subpkg_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)

filegroup(
Expand Down
2 changes: 2 additions & 0 deletions experiment/gerrit-onboarder/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ go_test(
name = "go_default_test",
srcs = ["onboarder_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"@com_github_google_go_cmp//cmp:go_default_library",
"@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
Expand All @@ -38,5 +39,6 @@ filegroup(
go_binary(
name = "gerrit-onboarder",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions experiment/image-bumper/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ go_library(
go_binary(
name = "image-bumper",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/image-bumper/bumper/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ go_test(
name = "go_default_test",
srcs = ["bumper_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)
2 changes: 2 additions & 0 deletions experiment/logviewer/gcsreader/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ go_library(
go_binary(
name = "gcsreader",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = ["parsing_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)

filegroup(
Expand Down
1 change: 1 addition & 0 deletions experiment/manual-trigger/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ go_library(
go_binary(
name = "manual-trigger",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/prowjob-report/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
go_binary(
name = "prowjob-report",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/service-account-creator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ go_library(
go_binary(
name = "service-account-creator",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/slack-oncall-updater/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ go_library(
go_binary(
name = "slack-oncall-updater",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions experiment/update-hook/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ go_library(
go_binary(
name = "update-hook",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
2 changes: 2 additions & 0 deletions gcsweb/cmd/gcsweb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ go_binary(
name = NAME,
embed = [":go_default_library"],
pure = "on",
tags = ["manual"],
)

go_library(
Expand Down Expand Up @@ -73,6 +74,7 @@ go_test(
name = "go_default_test",
srcs = ["gcsweb_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"@com_github_google_go_cmp//cmp:go_default_library",
"@com_github_gorilla_mux//:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions gencred/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ go_library(
go_binary(
name = "gencred",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions gencred/cmd/gencred/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ go_test(
name = "go_default_test",
srcs = ["main_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["@com_github_spf13_pflag//:go_default_library"],
)
1 change: 1 addition & 0 deletions gencred/pkg/certificate/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ go_test(
name = "go_default_test",
srcs = ["certificate_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"@io_k8s_api//core/v1:go_default_library",
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions gencred/pkg/serviceaccount/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ go_test(
name = "go_default_test",
srcs = ["serviceaccount_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"@io_k8s_api//authorization/v1beta1:go_default_library",
"@io_k8s_api//core/v1:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions ghproxy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ NAME = "ghproxy"
go_binary(
name = NAME,
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down Expand Up @@ -72,6 +73,7 @@ go_test(
name = "go_default_test",
srcs = ["ghproxy_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"//ghproxy/ghcache:go_default_library",
"//prow/github:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions ghproxy/apptokenequalizer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ go_test(
name = "go_default_test",
srcs = ["app_token_equalizer_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"//prow/github:go_default_library",
"@com_github_google_go_cmp//cmp:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions ghproxy/ghcache/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ go_test(
"partitioner_test.go",
],
embed = [":go_default_library"],
tags = ["manual"],
deps = [
"//ghproxy/ghmetrics:go_default_library",
"@io_k8s_apimachinery//pkg/util/diff:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions ghproxy/ghmetrics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ go_test(
name = "go_default_test",
srcs = ["ghpath_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)
1 change: 1 addition & 0 deletions gopherage/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_library(
go_binary(
name = "gopherage",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions gopherage/cmd/metadata/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ go_test(
name = "go_default_test",
srcs = ["metadata_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["@com_github_spf13_cobra//:go_default_library"],
)
1 change: 1 addition & 0 deletions gopherage/pkg/cov/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ go_test(
"util_test.go",
],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["@org_golang_x_tools//cover:go_default_library"],
)

Expand Down
1 change: 1 addition & 0 deletions gopherage/pkg/cov/junit/calculation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ go_test(
"coverage_test.go",
],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["@org_golang_x_tools//cover:go_default_library"],
)

Expand Down
1 change: 1 addition & 0 deletions greenhouse/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ go_binary(
name = NAME,
embed = [":go_default_library"],
pure = "on",
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions greenhouse/diskcache/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ go_test(
name = "go_default_test",
srcs = ["cache_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["@io_k8s_apimachinery//pkg/util/sets:go_default_library"],
)
1 change: 1 addition & 0 deletions images/builder/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
go_binary(
name = "builder",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand Down
2 changes: 2 additions & 0 deletions kubetest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ go_library(
go_binary(
name = "kubetest",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)

Expand All @@ -67,6 +68,7 @@ go_test(
"util_test.go",
],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["//kubetest/util:go_default_library"],
)

Expand Down
1 change: 1 addition & 0 deletions kubetest/process/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ go_test(
name = "go_default_test",
srcs = ["process_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
deps = ["//kubetest/util:go_default_library"],
)
1 change: 1 addition & 0 deletions kubetest/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_test(
name = "go_default_test",
srcs = ["util_test.go"],
embed = [":go_default_library"],
tags = ["manual"],
)

filegroup(
Expand Down
Loading

0 comments on commit d87c796

Please sign in to comment.