Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "redis-benchmarks-specification"
version = "0.2.30"
version = "0.2.31"
description = "The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute."
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
readme = "Readme.md"
Expand Down
6 changes: 6 additions & 0 deletions redis_benchmarks_specification/__runner__/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,10 @@ def create_client_runner_args(project_name):
default=None,
help="Password for HTTP basic authentication to remote profiling endpoint. Optional.",
)
parser.add_argument(
"--override-topology",
type=str,
default="oss-standalone",
help="Override the redis-topologies from the benchmark config and use only the specified topology name instead.",
)
return parser
10 changes: 9 additions & 1 deletion redis_benchmarks_specification/__runner__/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,14 @@ def delete_temporary_files(
None, None, stream, ""
)

# Use override topology if provided, otherwise use all topologies from config
if hasattr(args, "override_topology") and args.override_topology:
benchmark_topologies = [args.override_topology]
logging.info(f"Using override topology: {args.override_topology}")
else:
benchmark_topologies = benchmark_config["redis-topologies"]
logging.info(f"Running for a total of {len(benchmark_topologies)} topologies: {benchmark_topologies}")

# Check if user requested exit via Ctrl+C
if _exit_requested:
logging.info(f"Exit requested by user. Skipping test {test_name}.")
Expand Down Expand Up @@ -1592,7 +1600,7 @@ def delete_temporary_files(
)
)

for topology_spec_name in benchmark_config["redis-topologies"]:
for topology_spec_name in benchmark_topologies:
test_result = False
benchmark_tool_global = ""
full_result_path = None
Expand Down
Loading