github.com/tiagovtristao/plz@v13.4.0+incompatible/tools/cache/server/BUILD (about)

     1  go_library(
     2      name = "server",
     3      srcs = [
     4          "cache.go",
     5          "http_server.go",
     6          "rpc_server.go",
     7      ],
     8      # Exposed for a test only.
     9      visibility = [
    10          "//src/cache/...",
    11          "//tools/cache:all",
    12      ],
    13      deps = [
    14          "//src/cache/proto:rpc_cache",
    15          "//src/core",
    16          "//src/fs",
    17          "//third_party/go:atime",
    18          "//third_party/go:concurrent-map",
    19          "//third_party/go:grpc",
    20          "//third_party/go:grpc-middleware",
    21          "//third_party/go:grpc-prometheus",
    22          "//third_party/go:humanize",
    23          "//third_party/go:logging",
    24          "//third_party/go:mux",
    25          "//third_party/go:prometheus",
    26          "//tools/cache/cluster",
    27      ],
    28  )
    29  
    30  go_test(
    31      name = "http_server_test",
    32      srcs = ["http_server_test.go"],
    33      data = [":test_data"],
    34      deps = [
    35          ":server",
    36          "//third_party/go:testify",
    37      ],
    38  )
    39  
    40  go_test(
    41      name = "rpc_server_test",
    42      srcs = ["rpc_server_test.go"],
    43      data = [
    44          ":test_data",
    45          "//src/cache:test_data",
    46      ],
    47      flaky = True,
    48      labels = ["no_cirrus"],
    49      deps = [
    50          ":server",
    51          "//third_party/go:testify",
    52      ],
    53  )
    54  
    55  go_test(
    56      name = "cache_test",
    57      srcs = ["cache_test.go"],
    58      data = [":test_data"],
    59      deps = [
    60          ":server",
    61          "//src/core",
    62          "//third_party/go:testify",
    63      ],
    64  )
    65  
    66  go_test(
    67      name = "cache_stress_test",
    68      srcs = ["cache_stress_test.go"],
    69      deps = [
    70          ":server",
    71          "//third_party/go:testify",
    72      ],
    73  )
    74  
    75  filegroup(
    76      name = "test_data",
    77      srcs = glob(["test_data/**"]),
    78      test_only = True,
    79  )