Skip to content

Commit

Permalink
Kubernetes benchmarks: Add compressed variant of each benchmark binary.
Browse files Browse the repository at this point in the history
Used within Google for benchmarking.

PiperOrigin-RevId: 696268797
  • Loading branch information
EtiennePerot authored and gvisor-bot committed Nov 13, 2024
1 parent 191c16f commit 4f92c28
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion test/kubernetes/benchmarks/BUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,48 @@
load("//tools:defs.bzl", "go_test")
load("//tools:defs.bzl", "go_test", "pkg_tar")

package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:sandbox"],
licenses = ["notice"],
)

_PACKAGE = "//test/kubernetes/benchmarks"

_ALL_BENCHMARK_TARGETS = [
"%s:%s" %
(
_PACKAGE,
f.replace(".go", ""),
)
for f in glob(["**/*_test.go"])
]

genquery(
name = "all_benchmark_targets",
testonly = True,
expression = " union ".join(_ALL_BENCHMARK_TARGETS),
scope = _ALL_BENCHMARK_TARGETS,
)

filegroup(
name = "all_benchmark_test_binaries",
testonly = True,
srcs = _ALL_BENCHMARK_TARGETS,
)

[pkg_tar(
name = "%s_tar" % (src[src.index(":") + 1:],),
testonly = True,
srcs = [src],
extension = "tar.bz2",
) for src in _ALL_BENCHMARK_TARGETS]

filegroup(
name = "all_benchmark_test_binaries_tar",
testonly = True,
srcs = ["%s_tar" % (src[src.index(":") + 1:],) for src in _ALL_BENCHMARK_TARGETS],
)

go_test(
name = "abslbuild_test",
srcs = ["abslbuild_test.go"],
Expand Down

0 comments on commit 4f92c28

Please sign in to comment.