From 7ecb51b96681f95f60d278bea15a27af8da2e815 Mon Sep 17 00:00:00 2001 From: Ioannis Kavvadias Date: Thu, 28 Nov 2024 18:12:44 +0000 Subject: [PATCH 1/3] rpc: bazelize exponential_backoff test --- src/v/rpc/test/BUILD | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/v/rpc/test/BUILD b/src/v/rpc/test/BUILD index a028aed4c235b..c8e651fc115df 100644 --- a/src/v/rpc/test/BUILD +++ b/src/v/rpc/test/BUILD @@ -65,6 +65,22 @@ redpanda_cc_btest( ], ) +redpanda_cc_btest( + name = "exponential_backoff", + timeout = "short", + srcs = [ + "exponential_backoff.cc", + ], + cpu = 1, + deps = [ + "//src/v/rpc", + "//src/v/test_utils:seastar_boost", + "@boost//:test", + "@seastar", + "@seastar//:testing", + ], +) + redpanda_cc_rpc_library( name = "cycling_rpc", src = "cycling_service.json", From 041495276dfa94a042601b272158a489f4dfc5aa Mon Sep 17 00:00:00 2001 From: Ioannis Kavvadias Date: Thu, 28 Nov 2024 18:19:35 +0000 Subject: [PATCH 2/3] rpc: bazelize rpc_bench --- src/v/rpc/test/BUILD | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/v/rpc/test/BUILD b/src/v/rpc/test/BUILD index c8e651fc115df..141b6c856a8d1 100644 --- a/src/v/rpc/test/BUILD +++ b/src/v/rpc/test/BUILD @@ -1,4 +1,4 @@ -load("//bazel:test.bzl", "redpanda_cc_btest") +load("//bazel:test.bzl", "redpanda_cc_bench", "redpanda_cc_btest") load("//src/v/rpc:compiler.bzl", "redpanda_cc_rpc_library") redpanda_cc_btest( @@ -81,6 +81,19 @@ redpanda_cc_btest( ], ) +redpanda_cc_bench( + name = "rpc_bench", + timeout = "short", + srcs = [ + "rpc_bench.cc", + ], + deps = [ + "//src/v/reflection:adl", + "@seastar", + "@seastar//:benchmark", + ], +) + redpanda_cc_rpc_library( name = "cycling_rpc", src = "cycling_service.json", From 9329d9d3d615a04df6ebdbad123375b197dbd0fc Mon Sep 17 00:00:00 2001 From: Ioannis Kavvadias Date: Thu, 28 Nov 2024 18:22:59 +0000 Subject: [PATCH 3/3] rpc: bazelize connection_cache_test --- src/v/rpc/test/BUILD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/v/rpc/test/BUILD b/src/v/rpc/test/BUILD index 141b6c856a8d1..480dbf94a2292 100644 --- a/src/v/rpc/test/BUILD +++ b/src/v/rpc/test/BUILD @@ -81,6 +81,26 @@ redpanda_cc_btest( ], ) +redpanda_cc_btest( + name = "connection_cache_test", + timeout = "short", + srcs = [ + "connection_cache_test.cc", + ], + cpu = 1, + deps = [ + "//src/v/base", + "//src/v/config", + "//src/v/model", + "//src/v/rpc", + "//src/v/test_utils:seastar_boost", + "@abseil-cpp//absl/container:flat_hash_map", + "@boost//:test", + "@seastar", + "@seastar//:testing", + ], +) + redpanda_cc_bench( name = "rpc_bench", timeout = "short",