File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.11.5-1
  • links: PTS, VCS
  • area: contrib
  • in suites:
  • size: 7,072 kB
  • sloc: makefile: 193; sh: 55; ruby: 3
file content (67 lines) | stat: -rw-r--r-- 2,128 bytes parent folder | download
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
load("//build:build.bzl", "go_custom_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//build:proto.bzl", "go_proto_generate")

go_proto_generate(
    src = "redistool.proto",
)

go_library(
    name = "redistool",
    srcs = [
        "doc.go",
        "err_cacher.go",
        "expiring_hash.go",
        "expiring_hash_api.go",
        "expiring_hash_api_set_builder.go",
        "redistool.go",
        "redistool.pb.go",
        "token_limiter.go",
        "transaction.go",
    ],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/tool/redistool",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/tool/errz",
        "//internal/tool/logz",
        "@com_github_redis_rueidis//:rueidis",
        "@io_k8s_utils//clock",
        "@io_opentelemetry_go_otel//attribute",
        "@io_opentelemetry_go_otel_metric//:metric",
        "@org_golang_google_protobuf//proto",
        "@org_golang_google_protobuf//reflect/protoreflect",
        "@org_golang_google_protobuf//runtime/protoimpl",
        "@org_uber_go_zap//:zap",
    ],
)

go_custom_test(
    name = "redistool_test",
    srcs = [
        "err_cacher_test.go",
        "expiring_hash_api_set_builder_test.go",
        "expiring_hash_test.go",
        "mock_for_test.go",
        "token_limiter_test.go",
    ],
    embed = [":redistool"],
    deps = [
        "//internal/api",
        "//internal/tool/testing/matcher",
        "//internal/tool/testing/mock_otel",
        "//internal/tool/testing/mock_tool",
        "//internal/tool/testing/testhelpers",
        "//internal/tool/tlstool",
        "@com_github_redis_rueidis//:rueidis",
        "@com_github_redis_rueidis_mock//:mock",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@io_k8s_utils//clock/testing",
        "@io_opentelemetry_go_otel//attribute",
        "@io_opentelemetry_go_otel_metric//noop",
        "@org_golang_google_protobuf//proto",
        "@org_uber_go_mock//gomock",
        "@org_uber_go_zap//:zap",
        "@org_uber_go_zap//zaptest",
    ],
)