This repository was archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
75 lines (73 loc) · 2.4 KB
/
BUILD.bazel
File metadata and controls
75 lines (73 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
load("//dev:go_defs.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "command",
srcs = [
"command.go",
"docker.go",
"firecracker.go",
"kubernetes.go",
"observability.go",
"shell.go",
"util.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/executor/internal/worker/command",
visibility = ["//cmd/executor:__subpackages__"],
deps = [
"//cmd/executor/internal/util",
"//cmd/executor/internal/worker/cmdlogger",
"//cmd/executor/internal/worker/files",
"//internal/docker",
"//internal/executor/types",
"//internal/metrics",
"//internal/observation",
"//lib/errors",
"@com_github_kballard_go_shellquote//:go-shellquote",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_sourcegraph_log//:log",
"@io_k8s_api//batch/v1:batch",
"@io_k8s_api//core/v1:core",
"@io_k8s_apimachinery//pkg/api/resource",
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
"@io_k8s_apimachinery//pkg/watch",
"@io_k8s_client_go//kubernetes",
"@io_k8s_utils//pointer",
"@io_opentelemetry_go_otel//attribute",
"@org_golang_x_sync//errgroup",
],
)
go_test(
name = "command_test",
srcs = [
"command_test.go",
"docker_test.go",
"firecracker_test.go",
"kubernetes_test.go",
"mocks_test.go",
"shell_test.go",
"util_test.go",
],
embed = [":command"],
deps = [
"//cmd/executor/internal/util",
"//cmd/executor/internal/worker/cmdlogger",
"//cmd/executor/internal/worker/files",
"//internal/executor",
"//internal/executor/types",
"//internal/observation",
"//lib/errors",
"@com_github_google_go_cmp//cmp",
"@com_github_sourcegraph_log//logtest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//mock",
"@com_github_stretchr_testify//require",
"@io_k8s_api//batch/v1:batch",
"@io_k8s_api//core/v1:core",
"@io_k8s_apimachinery//pkg/api/resource",
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
"@io_k8s_apimachinery//pkg/watch",
"@io_k8s_client_go//kubernetes/fake",
"@io_k8s_client_go//testing",
"@io_k8s_utils//pointer",
],
)