bazel: transcribe test ownership to bazel tags (#62664)

This commit is contained in:
Noah S-C 2024-05-16 15:51:16 +01:00 committed by GitHub
parent 73fae2207f
commit 9b6ba7741e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
823 changed files with 1422 additions and 15 deletions

View File

@ -20,7 +20,8 @@
"files.associations": {
"**/dev/critical-config.json": "jsonc",
"**/dev/site-config.json": "jsonc",
"**/.mocharc.json": "jsonc"
"**/.mocharc.json": "jsonc",
"**/tools/build_rules/prelude_bazel": "starlark"
},
"json.schemas": [
{

View File

@ -155,6 +155,7 @@ ts_project(
"src/search-ui/util/query.ts",
"src/search-ui/util/stars.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":module_style_typings",
@ -223,6 +224,7 @@ ts_project(
"src/search-ui/results/use-items-to-show.test.ts",
"src/testSetup.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":branded_lib",
@ -271,6 +273,7 @@ vitest_test(
":module_styles",
":snapshots",
],
tags = [TAG_SEARCHSUITE],
)
ts_project(
@ -289,6 +292,7 @@ ts_project(
"src/search-ui/results/progress/StreamingProgress.story.tsx",
"src/search-ui/results/progress/StreamingProgressSkippedPopover.story.tsx",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":branded_lib",

View File

@ -103,6 +103,7 @@ generate_graphql_operations(
ts_project(
name = "graphql_operations",
srcs = ["src/graphql-operations.ts"],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":node_modules/@sourcegraph/shared",
@ -217,6 +218,7 @@ ts_project(
"src/types/ajs/index.d.ts",
"src/types/webextension-polyfill/index.d.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":graphql_operations",
@ -287,6 +289,7 @@ ts_project(
"src/shared/code-hosts/sourcegraph/inject.test.tsx",
"src/testSetup.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":browser",
@ -329,6 +332,7 @@ vitest_test(
":module_styles",
":snapshots",
],
tags = [TAG_SEARCHSUITE],
)
filegroup(
@ -402,6 +406,7 @@ ts_project(
"src/browser-extension/options-menu/OptionsPage.story.tsx",
"src/shared/components/HoverOverlay.story.tsx",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":browser",

View File

@ -17,6 +17,7 @@ ts_project(
"//:postcss_config_js", #keep
],
module = "commonjs",
tags = [TAG_SEARCHSUITE],
tsconfig = "//client/browser:tsconfig",
visibility = ["//client:__subpackages__"],
deps = [

View File

@ -18,6 +18,7 @@ ts_config(
ts_project(
name = "end-to-end",
srcs = ["shared.ts"],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
"//:node_modules/@types/mocha",
@ -40,6 +41,7 @@ ts_project(
"gitlab.test.ts",
"phabricator.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":end-to-end",

View File

@ -28,6 +28,7 @@ ts_project(
"src/reference.ts",
"src/textDocument.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":node_modules/@sourcegraph/extension-api-types",
@ -42,6 +43,7 @@ ts_project(
name = "client-api_tests",
testonly = True,
srcs = ["src/hover.test.ts"],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":client-api_lib",

View File

@ -65,6 +65,7 @@ generate_graphql_operations(
ts_project(
name = "graphql_operations",
srcs = ["src/graphql-operations.ts"],
tags = [TAG_CODY_CORE],
tsconfig = "//client/jetbrains:tsconfig",
deps = [
"//client/jetbrains:node_modules/@sourcegraph/shared",
@ -112,6 +113,7 @@ ts_project(
data = [
":package_styles",
],
tags = [TAG_CODY_CORE],
tsconfig = "//client/jetbrains:tsconfig",
deps = [
":graphql_operations",

View File

@ -166,6 +166,7 @@ vitest_test(
bin = vitest_bin,
chdir = package_name(),
data = SRCS + BUILD_DEPS + CONFIGS + TESTS + TEST_BUILD_DEPS,
tags = [TAG_SEARCHSUITE],
with_vitest_config = False,
)

View File

@ -128,6 +128,7 @@ generate_graphql_operations(
ts_project(
name = "graphql_operations",
srcs = ["src/graphql-operations.ts"],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":node_modules/@sourcegraph/shared",
@ -1739,6 +1740,7 @@ ts_project(
data = [
":enterprise-yaml",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":code_intel_schema",
@ -2015,6 +2017,7 @@ ts_project(
"src/util/time.test.ts",
"src/util/url.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":graphql_operations",
@ -2091,6 +2094,7 @@ vitest_test(
":snapshots",
":web_tests",
],
tags = [TAG_SEARCHSUITE],
)
# esbuild dev environment -------------------
@ -2427,6 +2431,7 @@ ts_project(
"src/user/profile/UserProfile.story.tsx",
"src/user/settings/aboutOrganization/AboutOrganizationPage.story.tsx",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":graphql_operations",

View File

@ -36,6 +36,7 @@ ts_project(
"utils/should-compress-response.ts",
"utils/success-banner.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
visibility = ["//client/web:__subpackages__"],
deps = [
@ -105,6 +106,7 @@ ts_project(
name = "dev_tests",
testonly = True,
srcs = ["esbuild/webmanifest.test.ts"],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":dev",
@ -117,4 +119,5 @@ vitest_test(
data = [
":dev_tests",
],
tags = [TAG_SEARCHSUITE],
)

View File

@ -24,6 +24,7 @@ ts_project(
"utils/cloneRepos.ts",
"utils/initEndToEndTest.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
"//:node_modules/@types/mocha",
@ -42,6 +43,7 @@ ts_project(
"frontend-platform/site-admin.test.ts",
"frontend-platform/theme-switcher.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":end-to-end",

View File

@ -28,6 +28,7 @@ ts_project(
"temporarySettingsContext.ts",
"utils.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
"//:node_modules/@codemirror/view",
@ -82,6 +83,7 @@ ts_project(
"settings.test.ts",
"sign-in.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":integration",

View File

@ -15,5 +15,6 @@ write_generated_to_source_files(
ts_project(
name = "constants",
srcs = ["constants.ts"],
tags = [TAG_SEARCHSUITE],
tsconfig = "//client/web:tsconfig",
)

View File

@ -36,6 +36,7 @@ ts_project(
"util/init.ts",
"util/settings.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
"//:node_modules/@types/lodash",
@ -61,6 +62,7 @@ ts_project(
"init.test.ts",
"integrations.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":regression",

View File

@ -415,6 +415,7 @@ ts_project(
data = [
":global-styles",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":module_style_typings",
@ -544,6 +545,7 @@ ts_project(
"src/utils/linkClickHandler.test.tsx",
"src/utils/markdown.test.ts",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":node_modules/@sourcegraph/testing",
@ -590,6 +592,7 @@ vitest_test(
":snapshots",
":wildcard_tests",
],
tags = [TAG_SEARCHSUITE],
)
ts_project(
@ -640,6 +643,7 @@ ts_project(
"src/components/Typography/Typography.story.tsx",
"src/global-styles/GlobalStylesStory/GlobalStyles.story.tsx",
],
tags = [TAG_SEARCHSUITE],
tsconfig = ":tsconfig",
deps = [
":module_style_typings",

View File

@ -31,6 +31,7 @@ go_test(
name = "batcheshelper_test",
srcs = ["main_test.go"],
embed = [":batcheshelper_lib"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//lib/batches/execution",
"//lib/errors",
@ -66,6 +67,7 @@ container_structure_test(
tags = [
"exclusive",
"requires-network",
TAG_PLATFORM_SOURCE,
],
)

View File

@ -15,6 +15,7 @@ go_library(
go_test(
name = "log_test",
srcs = ["log_test.go"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
":log",
"//lib/batches",

View File

@ -29,6 +29,7 @@ go_test(
"post_test.go",
"pre_test.go",
],
tags = [TAG_PLATFORM_SOURCE],
deps = [
":run",
"//cmd/batcheshelper/log",

View File

@ -19,6 +19,7 @@ go_library(
go_test(
name = "util_test",
srcs = ["util_test.go"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
":util",
"@com_github_stretchr_testify//assert",

View File

@ -7,6 +7,7 @@ go_library(
name = "blobstore_lib",
srcs = ["main.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/blobstore",
tags = [TAG_PLATFORM_GRAPH],
visibility = ["//visibility:private"],
deps = [
"//cmd/blobstore/shared",
@ -18,6 +19,7 @@ go_library(
go_binary(
name = "blobstore",
embed = [":blobstore_lib"],
tags = [TAG_PLATFORM_GRAPH],
visibility = ["//visibility:public"],
)
@ -52,5 +54,6 @@ container_structure_test(
tags = [
"exclusive",
"requires-network",
TAG_PLATFORM_GRAPH,
],
)

View File

@ -12,6 +12,7 @@ go_library(
"s3_types.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/blobstore/internal/blobstore",
tags = [TAG_PLATFORM_GRAPH],
visibility = ["//cmd/blobstore:__subpackages__"],
deps = [
"//internal/observation",
@ -28,6 +29,7 @@ go_test(
timeout = "moderate",
srcs = ["blobstore_test.go"],
data = glob(["testdata/**"]),
tags = [TAG_PLATFORM_GRAPH],
deps = [
":blobstore",
"//internal/observation",

View File

@ -7,6 +7,7 @@ go_library(
"shared.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/blobstore/shared",
tags = [TAG_PLATFORM_GRAPH],
visibility = ["//visibility:public"],
deps = [
"//cmd/blobstore/internal/blobstore",

View File

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

View File

@ -7,6 +7,7 @@ go_library(
name = "cody-gateway_lib",
srcs = ["main.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway",
tags = [TAG_CODY_PRIME],
visibility = ["//visibility:private"],
deps = [
"//cmd/cody-gateway/shared",
@ -22,6 +23,7 @@ go_library(
go_binary(
name = "cody-gateway",
embed = [":cody-gateway_lib"],
tags = [TAG_CODY_PRIME],
visibility = ["//visibility:public"],
)
@ -57,6 +59,7 @@ container_structure_test(
tags = [
"exclusive",
"requires-network",
TAG_CODY_PRIME,
],
)

View File

@ -9,6 +9,7 @@ go_library(
"source.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/actor",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/limiter",
@ -37,6 +38,7 @@ go_test(
],
embed = [":actor"],
tags = [
TAG_CODY_PRIME,
# Test requires localhost database
"requires-network",
],

View File

@ -4,6 +4,7 @@ go_library(
name = "anonymous",
srcs = ["anonymous.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/actor/anonymous",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",

View File

@ -5,6 +5,7 @@ go_library(
name = "dotcomuser",
srcs = ["dotcomuser.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/actor/dotcomuser",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -27,6 +28,7 @@ go_test(
name = "dotcomuser_test",
srcs = ["dotcomuser_test.go"],
embed = [":dotcomuser"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/internal/actor",
"//cmd/cody-gateway/internal/dotcom",

View File

@ -5,6 +5,7 @@ go_library(
name = "productsubscription",
srcs = ["productsubscription.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/actor/productsubscription",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -29,6 +30,7 @@ go_test(
name = "productsubscription_test",
srcs = ["productsubscription_test.go"],
embed = [":productsubscription"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/internal/dotcom",
"//internal/codygateway",

View File

@ -6,6 +6,7 @@ go_library(
name = "auth",
srcs = ["auth.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/auth",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -26,6 +27,7 @@ go_test(
"mocks_test.go",
],
embed = [":auth"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/internal/actor",
"//cmd/cody-gateway/internal/actor/anonymous",

View File

@ -11,6 +11,7 @@ go_library(
"operations.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/dotcom",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/dotcom/genhelper",
@ -47,6 +48,7 @@ go_test(
name = "dotcom_test",
srcs = ["dotcom_test.go"],
embed = [":dotcom"],
tags = [TAG_CODY_PRIME],
deps = ["@com_github_stretchr_testify//assert"],
)

View File

@ -4,5 +4,6 @@ go_library(
name = "genhelper",
srcs = ["genhelper.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/dotcom/genhelper",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
)

View File

@ -10,6 +10,7 @@ go_library(
"instrumented.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/events",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//internal/actor",
@ -34,6 +35,7 @@ go_test(
"buffered_test.go",
],
embed = [":events"],
tags = [TAG_CODY_PRIME],
deps = [
"//lib/errors",
"@com_github_hexops_autogold_v2//:autogold",

View File

@ -9,6 +9,7 @@ go_library(
"maintenance.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -49,6 +50,7 @@ go_test(
name = "httpapi_test",
srcs = ["maintenance_test.go"],
embed = [":httpapi"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/shared/config",
"//internal/redispool",

View File

@ -5,6 +5,7 @@ go_library(
name = "attribution",
srcs = ["handler.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi/attribution",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -21,6 +22,7 @@ go_library(
go_test(
name = "attribution_test",
srcs = ["handler_test.go"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/internal/actor",
"//cmd/cody-gateway/internal/auth",

View File

@ -12,6 +12,7 @@ go_library(
"upstream.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi/completions",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -49,6 +50,7 @@ go_test(
"openai_test.go",
],
embed = [":completions"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/shared/config",
"//internal/completions/client/fireworks",

View File

@ -10,6 +10,7 @@ go_library(
"sourcegraph.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi/embeddings",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",
@ -36,6 +37,7 @@ go_test(
name = "embeddings_test",
srcs = ["openai_test.go"],
embed = [":embeddings"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/cody-gateway/internal/response",
"//internal/codygateway",

View File

@ -4,6 +4,7 @@ go_library(
name = "featurelimiter",
srcs = ["featurelimiter.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi/featurelimiter",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",

View File

@ -4,6 +4,7 @@ go_library(
name = "overhead",
srcs = ["overhead.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi/overhead",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//internal/codygateway",

View File

@ -4,6 +4,7 @@ go_library(
name = "requestlogger",
srcs = ["requestlogger.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/httpapi/requestlogger",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//cmd/cody-gateway/internal/actor",

View File

@ -10,6 +10,7 @@ go_library(
"store.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/limiter",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//internal/codygateway",
@ -28,6 +29,7 @@ go_test(
"store_test.go",
],
embed = [":limiter"],
tags = [TAG_CODY_PRIME],
deps = [
"@com_github_hexops_autogold_v2//:autogold",
"@com_github_stretchr_testify//assert",

View File

@ -5,6 +5,7 @@ go_library(
name = "notify",
srcs = ["rate_limit.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/notify",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//internal/codygateway",
@ -25,6 +26,7 @@ go_test(
name = "notify_test",
srcs = ["rate_limit_test.go"],
embed = [":notify"],
tags = [TAG_CODY_PRIME],
deps = [
"//internal/codygateway",
"//internal/redispool",

View File

@ -5,6 +5,7 @@ go_library(
name = "response",
srcs = ["response.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/internal/response",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/cody-gateway:__subpackages__"],
deps = [
"//lib/errors",
@ -16,6 +17,7 @@ go_test(
name = "response_test",
srcs = ["response_test.go"],
embed = [":response"],
tags = [TAG_CODY_PRIME],
deps = [
"@com_github_sourcegraph_log//logtest",
"@com_github_stretchr_testify//assert",

View File

@ -7,6 +7,7 @@ go_test(
srcs = ["e2e_test.go"],
embed = [":qa"],
tags = [
TAG_CODY_PRIME,
# We mark this as external because:
# This test runs against an external environment, so results can change even if the test did not (so, we don't want caching)
"external",
@ -27,6 +28,7 @@ go_library(
"openai.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/qa",
tags = [TAG_CODY_PRIME],
visibility = ["//visibility:public"],
deps = [
"//internal/codygateway",

View File

@ -9,6 +9,7 @@ go_library(
"tracing.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/shared",
tags = [TAG_CODY_PRIME],
visibility = ["//visibility:public"],
deps = [
"//cmd/cody-gateway/internal/actor",

View File

@ -4,6 +4,7 @@ go_library(
name = "config",
srcs = ["config.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/cody-gateway/shared/config",
tags = [TAG_CODY_PRIME],
visibility = ["//visibility:public"],
deps = [
"//cmd/cody-gateway/internal/httpapi/embeddings",

View File

@ -7,6 +7,7 @@ go_library(
name = "embeddings_lib",
srcs = ["main.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/embeddings",
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//visibility:private"],
deps = [
"//cmd/embeddings/shared",
@ -18,6 +19,7 @@ go_library(
go_binary(
name = "embeddings",
embed = [":embeddings_lib"],
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//visibility:public"],
)
@ -52,6 +54,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_PLATFORM_SEARCH,
"exclusive",
"requires-network",
],

View File

@ -5,6 +5,7 @@ go_library(
srcs = ["eval.go"],
embedsrcs = ["context_data.tsv"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/embeddings/qa",
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//visibility:public"],
deps = [
"//internal/api",

View File

@ -4,6 +4,7 @@ go_library(
name = "embed_queries_lib",
srcs = ["main.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/embeddings/qa/embed_queries",
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//visibility:private"],
deps = [
"//internal/conf",
@ -17,5 +18,6 @@ go_library(
go_binary(
name = "embed_queries",
embed = [":embed_queries_lib"],
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//visibility:public"],
)

View File

@ -11,6 +11,7 @@ go_library(
"service.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/embeddings/shared",
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//visibility:public"],
deps = [
"//internal/actor",
@ -55,6 +56,7 @@ go_test(
],
data = glob(["testdata/**"]),
embed = [":shared"],
tags = [TAG_PLATFORM_SEARCH],
deps = [
"//internal/api",
"//internal/database/dbmocks",

View File

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

View File

@ -9,6 +9,7 @@ go_library(
name = "executor_lib",
srcs = ["main.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor",
tags = [TAG_SEARCHSUITE],
visibility = ["//visibility:private"],
deps = [
"//cmd/executor/internal/config",
@ -27,6 +28,7 @@ go_library(
go_binary(
name = "executor",
embed = [":executor_lib"],
tags = [TAG_SEARCHSUITE],
visibility = ["//visibility:public"],
)
@ -43,6 +45,7 @@ go_binary(
gotags = [
"shell",
],
tags = [TAG_SEARCHSUITE],
visibility = ["//visibility:public"],
)
@ -96,6 +99,7 @@ container_structure_test(
driver = "docker",
image = ":image",
tags = [
TAG_SEARCHSUITE,
"exclusive",
"requires-network",
],

View File

@ -4,6 +4,7 @@ go_library(
name = "apiclient",
srcs = ["baseclient.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/apiclient",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//internal/httpcli",

View File

@ -8,6 +8,7 @@ go_library(
"observability.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/apiclient/files",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/apiclient",
@ -25,6 +26,7 @@ go_test(
name = "files_test",
timeout = "short",
srcs = ["client_test.go"],
tags = [TAG_SEARCHSUITE],
deps = [
":files",
"//cmd/executor/internal/apiclient",

View File

@ -9,6 +9,7 @@ go_library(
"options.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/apiclient/queue",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/apiclient",
@ -31,6 +32,7 @@ go_test(
name = "queue_test",
timeout = "short",
srcs = ["client_test.go"],
tags = [TAG_SEARCHSUITE],
deps = [
":queue",
"//cmd/executor/internal/apiclient",

View File

@ -9,6 +9,7 @@ go_library(
"kubernetes.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/config",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//internal/env",
@ -31,6 +32,7 @@ go_test(
"config_test.go",
"kubernetes_test.go",
],
tags = [TAG_SEARCHSUITE],
deps = [
":config",
"//internal/env",

View File

@ -5,6 +5,7 @@ go_library(
name = "ignite",
srcs = ["list.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/ignite",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = ["//cmd/executor/internal/util"],
)
@ -14,5 +15,6 @@ go_test(
timeout = "short",
srcs = ["list_test.go"],
embed = [":ignite"],
tags = [TAG_SEARCHSUITE],
deps = ["@com_github_google_go_cmp//cmp"],
)

View File

@ -9,6 +9,7 @@ go_library(
"orphaned_vms.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/janitor",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/ignite",
@ -26,5 +27,6 @@ go_test(
timeout = "short",
srcs = ["orphaned_vms_test.go"],
embed = [":janitor"],
tags = [TAG_SEARCHSUITE],
deps = ["@com_github_google_go_cmp//cmp"],
)

View File

@ -4,6 +4,7 @@ go_library(
name = "metrics",
srcs = ["metrics.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/metrics",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//lib/errors",

View File

@ -13,6 +13,7 @@ go_library(
"validate.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/run",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/apiclient",
@ -92,6 +93,7 @@ go_test(
timeout = "short",
srcs = ["validate_test.go"],
embed = [":run"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/executor/internal/apiclient",
"//cmd/executor/internal/config",

View File

@ -12,6 +12,7 @@ go_library(
"validate.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/util",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/apiclient",
@ -31,6 +32,7 @@ go_test(
"tools_test.go",
"validate_test.go",
],
tags = [TAG_SEARCHSUITE],
deps = [
":util",
"//cmd/executor/internal/apiclient",

View File

@ -9,6 +9,7 @@ go_library(
"worker.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/apiclient",
@ -46,6 +47,7 @@ go_test(
"mocks_test.go",
],
embed = [":worker"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/executor/internal/janitor",
"//cmd/executor/internal/util",

View File

@ -6,6 +6,7 @@ go_library(
name = "cmdlogger",
srcs = ["logger.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/cmdlogger",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//internal/executor",
@ -22,6 +23,7 @@ go_test(
"mocks_test.go",
],
embed = [":cmdlogger"],
tags = [TAG_SEARCHSUITE],
deps = [
"//internal/executor",
"//internal/executor/types",

View File

@ -14,6 +14,7 @@ go_library(
"util.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/command",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/util",
@ -50,6 +51,7 @@ go_test(
"util_test.go",
],
embed = [":command"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/executor/internal/util",
"//cmd/executor/internal/worker/cmdlogger",

View File

@ -6,6 +6,7 @@ go_library(
name = "files",
srcs = ["files.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/files",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//internal/executor/types",
@ -20,6 +21,7 @@ go_test(
"mocks_test.go",
],
embed = [":files"],
tags = [TAG_SEARCHSUITE],
deps = [
"//internal/executor/types",
"//lib/errors",

View File

@ -13,6 +13,7 @@ go_library(
"skip.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/runner",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/config",
@ -40,6 +41,7 @@ go_test(
"skip_test.go",
],
embed = [":runner"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/executor/internal/worker/cmdlogger",
"//cmd/executor/internal/worker/command",

View File

@ -12,6 +12,7 @@ go_library(
"shell.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/runtime",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/util",
@ -40,6 +41,7 @@ go_test(
"shell_test.go",
],
embed = [":runtime"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/executor/internal/util",
"//cmd/executor/internal/worker/cmdlogger",

View File

@ -16,6 +16,7 @@ go_library(
"workspace.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/workspace",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/util",
@ -37,6 +38,7 @@ go_test(
"mocks_test.go",
],
embed = [":workspace"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/executor/internal/util",
"//cmd/executor/internal/worker/cmdlogger",

View File

@ -50,6 +50,7 @@ go_test(
"user_test.go",
],
embed = [":auth"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//cmd/frontend/internal/app/ui",
"//internal/actor",

View File

@ -87,6 +87,7 @@ go_test(
tags = [
# Test requires localhost database
"requires-network",
TAG_PLATFORM_SOURCE,
],
deps = [
"//cmd/frontend/internal/inventory",

View File

@ -79,8 +79,10 @@ go_test(
],
embed = [":app"],
tags = [
TAG_SEARCHSUITE,
# Test requires localhost database
"requires-network",
TAG_SEARCHSUITE,
],
deps = [
"//cmd/frontend/backend",

View File

@ -8,6 +8,7 @@ go_library(
"scanner.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/app/debugproxies",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/internal/app/errorutil",
@ -34,6 +35,7 @@ go_test(
"scanner_test.go",
],
embed = [":debugproxies"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/frontend/internal/app/router",
"//internal/actor",

View File

@ -5,6 +5,7 @@ go_library(
name = "jscontext",
srcs = ["jscontext.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/app/jscontext",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/enterprise",
@ -42,4 +43,5 @@ go_test(
timeout = "short",
srcs = ["jscontext_test.go"],
embed = [":jscontext"],
tags = [TAG_SEARCHSUITE],
)

View File

@ -9,6 +9,7 @@ go_library(
"router.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/app/router",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/internal/routevar",
@ -22,4 +23,5 @@ go_test(
timeout = "short",
srcs = ["old_tree_redirects_test.go"],
embed = [":router"],
tags = [TAG_SEARCHSUITE],
)

View File

@ -20,6 +20,7 @@ go_library(
"error.html",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/app/ui",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/auth",
@ -82,6 +83,7 @@ go_test(
"templ_test.go",
],
embed = [":ui"],
tags = [TAG_SEARCHSUITE],
deps = [
"//cmd/frontend/backend",
"//cmd/frontend/globals",

View File

@ -24,7 +24,10 @@ go_test(
name = "accessrequest_test",
srcs = ["handlers_test.go"],
embed = [":accessrequest"],
tags = ["requires-network"],
tags = [
TAG_PLATFORM_SOURCE,
"requires-network",
],
deps = [
"//internal/conf",
"//internal/database",

View File

@ -46,6 +46,7 @@ go_test(
],
embed = [":azureoauth"],
tags = [
TAG_PLATFORM_SOURCE,
# Test requires localhost database
"requires-network",
],

View File

@ -50,6 +50,7 @@ go_test(
],
embed = [":bitbucketcloudoauth"],
tags = [
TAG_PLATFORM_SOURCE,
# allows network requests to localhost (database)
"requires-network",
],

View File

@ -22,6 +22,7 @@ go_test(
timeout = "short",
srcs = ["config_test.go"],
embed = [":gerrit"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//internal/conf",
"//internal/extsvc",

View File

@ -54,6 +54,7 @@ go_test(
],
embed = [":githuboauth"],
tags = [
TAG_PLATFORM_SOURCE,
# Test requires localhost database
"requires-network",
],

View File

@ -49,6 +49,7 @@ go_test(
],
embed = [":gitlaboauth"],
tags = [
TAG_PLATFORM_SOURCE,
# Test requires localhost database
"requires-network",
],

View File

@ -35,6 +35,7 @@ go_test(
],
embed = [":httpheader"],
tags = [
TAG_PLATFORM_SOURCE,
# Test requires localhost database
"requires-network",
],

View File

@ -20,6 +20,7 @@ go_test(
srcs = ["checker_test.go"],
data = glob(["testdata/**"]),
embed = [":checker"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//internal/conf",
"//schema",

View File

@ -46,4 +46,5 @@ go_test(
timeout = "short",
srcs = ["provider_test.go"],
embed = [":oauth"],
tags = [TAG_PLATFORM_SOURCE],
)

View File

@ -53,6 +53,7 @@ go_test(
"user_test.go",
],
embed = [":openidconnect"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//cmd/frontend/auth",
"//cmd/frontend/external/session",

View File

@ -48,6 +48,7 @@ go_test(
"user_test.go",
],
embed = [":saml"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//cmd/frontend/auth",
"//cmd/frontend/external/session",

View File

@ -57,6 +57,7 @@ go_test(
"util_test.go",
],
embed = [":scim"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//internal/auth/userpasswd",
"//internal/conf",

View File

@ -36,6 +36,7 @@ go_test(
"operators_test.go",
],
embed = [":filter"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"@com_github_elimity_com_scim//schema",
"@com_github_scim2_filter_parser_v2//:filter-parser",

View File

@ -41,6 +41,7 @@ go_test(
],
embed = [":sourcegraphoperator"],
tags = [
TAG_PLATFORM_SOURCE,
# Test requires localhost database
"requires-network",
],

View File

@ -49,6 +49,7 @@ go_test(
"resolver_test.go",
],
embed = [":resolvers"],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//cmd/frontend/graphqlbackend",
"//cmd/frontend/graphqlbackend/graphqlutil",

View File

@ -24,6 +24,7 @@ go_test(
srcs = ["github_test.go"],
embed = [":webhooks"],
tags = [
TAG_PLATFORM_SOURCE,
# Test requires localhost database
"requires-network",
],

View File

@ -31,6 +31,7 @@ go_test(
timeout = "short",
srcs = ["file_handler_test.go"],
tags = [
TAG_SEARCHSUITE,
# Test requires localhost database
"requires-network",
],

View File

@ -124,6 +124,7 @@ go_test(
data = glob(["testdata/**"]),
embed = [":resolvers"],
tags = [
TAG_SEARCHSUITE,
# Test requires localhost database
"requires-network",
],

View File

@ -54,6 +54,7 @@ go_test(
data = glob(["testdata/**"]),
embed = [":webhooks"],
tags = [
TAG_SEARCHSUITE,
# Test requires localhost database
"requires-network",
],

View File

@ -4,6 +4,7 @@ go_library(
name = "codemonitors",
srcs = ["init.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/codemonitors",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/enterprise",

View File

@ -5,6 +5,7 @@ go_library(
name = "resolvers",
srcs = ["resolvers.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/codemonitors/resolvers",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/graphqlbackend",
@ -32,6 +33,7 @@ go_test(
],
embed = [":resolvers"],
tags = [
TAG_SEARCHSUITE,
# Test requires localhost database
"requires-network",
],

View File

@ -4,6 +4,7 @@ go_library(
name = "apitest",
srcs = ["types.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/codemonitors/resolvers/apitest",
tags = [TAG_SEARCHSUITE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = ["//lib/errors"],
)

View File

@ -10,6 +10,7 @@ go_library(
"utils.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/cody",
tags = [TAG_CODY_PRIME],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/backend",
@ -41,6 +42,7 @@ go_test(
"utils_test.go",
],
embed = [":cody"],
tags = [TAG_CODY_PRIME],
deps = [
"//cmd/frontend/internal/ssc",
"//internal/actor",

View File

@ -4,6 +4,7 @@ go_library(
name = "completions",
srcs = ["init.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/completions",
tags = [TAG_CODY_CORE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/enterprise",

View File

@ -4,6 +4,7 @@ go_library(
name = "resolvers",
srcs = ["resolver.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/completions/resolvers",
tags = [TAG_CODY_CORE],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/graphqlbackend",

View File

@ -4,6 +4,7 @@ go_library(
name = "compute",
srcs = ["init.go"],
importpath = "github.com/sourcegraph/sourcegraph/cmd/frontend/internal/compute",
tags = [TAG_PLATFORM_SEARCH],
visibility = ["//cmd/frontend:__subpackages__"],
deps = [
"//cmd/frontend/enterprise",

Some files were not shown because too many files have changed in this diff Show More