chore(bazel): update ownership tags to increase coverage (#63001)

Brings us up to 73%, a bit of buffer room


## Test plan

`./dev/check-test-ownership.sh` prints out 73


## Changelog
This commit is contained in:
Noah S-C 2024-05-31 15:10:29 +01:00 committed by GitHub
parent 9a75701c59
commit e1974fe9f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
36 changed files with 52 additions and 1 deletions

View File

@ -7,6 +7,7 @@ go_library(
name = "enterprise-portal_lib",
srcs = ["main.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//visibility:private"],
deps = [
"//cmd/enterprise-portal/service",
@ -17,6 +18,7 @@ go_library(
go_binary(
name = "enterprise-portal",
embed = [":enterprise-portal_lib"],
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//visibility:public"],
)
@ -50,6 +52,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_CORESERVICES,
"exclusive",
"requires-network",
],

View File

@ -7,6 +7,7 @@ go_library(
"v1.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/codyaccessservice",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//cmd/enterprise-portal:__subpackages__"],
deps = [
"//cmd/enterprise-portal/internal/connectutil",

View File

@ -4,6 +4,7 @@ go_library(
name = "connectutil",
srcs = ["connectutil.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/connectutil",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//cmd/enterprise-portal:__subpackages__"],
deps = [
"//internal/trace",

View File

@ -5,6 +5,7 @@ go_library(
name = "dotcomdb",
srcs = ["dotcomdb.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/dotcomdb",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//cmd/enterprise-portal:__subpackages__"],
deps = [
"//internal/license",

View File

@ -5,6 +5,7 @@ go_library(
name = "samsm2m",
srcs = ["samsm2m.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/samsm2m",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//cmd/enterprise-portal:__subpackages__"],
deps = [
"//cmd/enterprise-portal/internal/connectutil",
@ -25,6 +26,7 @@ go_test(
name = "samsm2m_test",
srcs = ["samsm2m_test.go"],
embed = [":samsm2m"],
tags = [TAG_INFRA_CORESERVICES],
deps = [
"//lib/errors",
"@com_github_hexops_autogold_v2//:autogold",

View File

@ -7,6 +7,7 @@ go_library(
"v1.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/subscriptionsservice",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//cmd/enterprise-portal:__subpackages__"],
deps = [
"//cmd/enterprise-portal/internal/connectutil",

View File

@ -9,6 +9,7 @@ go_library(
"state.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/service",
tags = [TAG_INFRA_CORESERVICES],
visibility = ["//visibility:public"],
deps = [
"//cmd/enterprise-portal/internal/codyaccessservice",

View File

@ -54,6 +54,7 @@ go_test(
],
data = glob(["testdata/**"]),
embed = [":codycontext"],
tags = [TAG_CODY_CORE],
deps = [
"//internal/api",
"//internal/conf",

View File

@ -51,6 +51,7 @@ go_test(
name = "completions_test",
srcs = ["handler_test.go"],
embed = [":completions"],
tags = [TAG_CODY_CORE],
deps = [
"//internal/completions/types",
"//internal/conf",

View File

@ -10,6 +10,7 @@ go_library(
"http.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/httpapi/releasecache",
tags = [TAG_INFRA_DEVINFRA],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//internal/conf",
@ -38,6 +39,7 @@ go_test(
data = glob(["testdata/**"]),
embed = [":releasecache"],
tags = [
TAG_INFRA_DEVINFRA,
"requires-network",
],
deps = [

View File

@ -55,6 +55,7 @@ container_structure_test(
tags = [
"exclusive",
"requires-network",
TAG_PLATFORM_SEARCH,
],
)

View File

@ -9,6 +9,7 @@ go_library(
"mapper.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/worker/internal/perforce",
tags = [TAG_PLATFORM_SOURCE],
visibility = ["//cmd/worker:__subpackages__"],
deps = [
"//cmd/worker/job",
@ -35,7 +36,10 @@ go_test(
name = "perforce_test",
srcs = ["mapper_test.go"],
embed = [":perforce"],
tags = ["requires-network"],
tags = [
"requires-network",
TAG_PLATFORM_SOURCE,
],
deps = [
"//internal/api",
"//internal/conf",

View File

@ -13,6 +13,7 @@ go_library(
"slack.go",
],
importpath = "github.com/sourcegraph/sourcegraph/dev/buildchecker",
tags = [TAG_INFRA_DEVINFRA],
visibility = ["//visibility:private"],
deps = [
"//dev/team",
@ -29,6 +30,7 @@ go_library(
go_binary(
name = "buildchecker",
embed = [":buildchecker_lib"],
tags = [TAG_INFRA_DEVINFRA],
visibility = ["//visibility:public"],
)
@ -44,6 +46,7 @@ go_test(
],
data = glob(["testdata/**"]),
embed = [":buildchecker_lib"],
tags = [TAG_INFRA_DEVINFRA],
deps = [
"//dev/team",
"//internal/httptestutil",

View File

@ -5,6 +5,7 @@ go_library(
name = "helpers",
srcs = ["bazeldo.go"],
importpath = "github.com/sourcegraph/sourcegraph/dev/ci/helpers",
tags = [TAG_INFRA_DEVINFRA],
visibility = ["//visibility:public"],
deps = [
"//lib/errors",
@ -16,4 +17,5 @@ go_test(
name = "helpers_test",
srcs = ["bazeldo_test.go"],
embed = [":helpers"],
tags = [TAG_INFRA_DEVINFRA],
)

View File

@ -51,5 +51,6 @@ go_test(
name = "cloud_test",
srcs = ["instance_test.go"],
embed = [":cloud"],
tags = [TAG_INFRA_DEVINFRA],
deps = ["@com_github_sourcegraph_cloud_api//go/cloudapi/v1:cloudapi"],
)

View File

@ -28,6 +28,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -38,6 +38,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -47,6 +47,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -47,6 +47,7 @@ container_structure_test(
tags = [
"exclusive",
"requires-network",
TAG_PLATFORM_SEARCH,
],
)

View File

@ -21,6 +21,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -21,6 +21,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -42,6 +42,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -22,6 +22,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -106,6 +106,7 @@ container_structure_test(
driver = "docker",
image = ":legacy_image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -40,6 +40,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -51,6 +51,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -14,6 +14,7 @@ go_library(
"status.go",
],
importpath = "github.com/sourcegraph/sourcegraph/docker-images/prometheus/cmd/prom-wrapper",
tags = [TAG_INFRA_RELEASE],
visibility = ["//visibility:private"],
deps = [
"//internal/conf",
@ -48,6 +49,7 @@ go_binary(
],
pure = "on",
static = "on",
tags = [TAG_INFRA_RELEASE],
visibility = ["//visibility:public"],
)
@ -59,6 +61,7 @@ go_test(
"silence_test.go",
],
embed = [":prom-wrapper_lib"],
tags = [TAG_INFRA_RELEASE],
deps = [
"//internal/version",
"//schema",

View File

@ -55,6 +55,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -57,6 +57,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -22,6 +22,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_INFRA_RELEASE,
"exclusive",
"requires-network",
],

View File

@ -54,6 +54,7 @@ container_structure_test(
tags = [
"exclusive",
"requires-network",
TAG_PLATFORM_SEARCH,
],
)

View File

@ -17,6 +17,7 @@ go_library(
"prometheus/default.yml.gotmpl",
],
importpath = "github.com/sourcegraph/sourcegraph/internal/appliance/config",
tags = [TAG_INFRA_RELEASE],
visibility = ["//:__subpackages__"],
deps = [
"//lib/errors",
@ -30,5 +31,6 @@ go_test(
name = "config_test",
srcs = ["dev_mode_test.go"],
embed = [":config"],
tags = [TAG_INFRA_RELEASE],
deps = ["@com_github_stretchr_testify//assert"],
)

View File

@ -3,6 +3,7 @@ load("//dev:go_defs.bzl", "go_test")
go_test(
name = "integrationtest_test",
srcs = ["integration_test.go"],
tags = [TAG_INFRA_RELEASE],
deps = [
"//internal/appliance/config",
"//internal/k8s/resource/configmap",

View File

@ -19,6 +19,7 @@ go_library(
"syntect.go",
],
importpath = "github.com/sourcegraph/sourcegraph/internal/appliance/reconciler",
tags = [TAG_INFRA_RELEASE],
visibility = ["//:__subpackages__"],
deps = [
"//internal/appliance/config",
@ -85,6 +86,7 @@ go_test(
env = {
"KUBEBUILDER_ASSET_PATHS": "$(rlocationpaths //dev/tools:kubebuilder-assets)",
},
tags = [TAG_INFRA_RELEASE],
deps = [
"//internal/appliance/config",
"//internal/appliance/yaml",

View File

@ -5,6 +5,7 @@ go_library(
name = "yaml",
srcs = ["yaml.go"],
importpath = "github.com/sourcegraph/sourcegraph/internal/appliance/yaml",
tags = [TAG_INFRA_RELEASE],
visibility = ["//:__subpackages__"],
deps = ["@in_gopkg_yaml_v3//:yaml_v3"],
)
@ -12,6 +13,7 @@ go_library(
go_test(
name = "yaml_test",
srcs = ["yaml_test.go"],
tags = [TAG_INFRA_RELEASE],
deps = [
":yaml",
"@com_github_stretchr_testify//require",

View File

@ -34,5 +34,6 @@ genrule(
build_test(
name = "test_golist_grep",
tags = [TAG_INFRA_DEVINFRA],
targets = [":golist_grep"],
)