Skip to content

Commit f432c88

Browse files
Fixed module params passed in old format (#456)
1 parent b6cda8e commit f432c88

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.11.41"
3+
version = "0.11.52"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "README.md"

redisbench_admin/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def populate_with_project_data():
4242
project_description = None
4343
try:
4444
pyproject_toml = toml.load("pyproject.toml")
45-
if 'project' in pyproject_toml:
45+
if "project" in pyproject_toml:
4646
project_data = pyproject_toml["project"]
4747
project_name = project_data["name"]
4848
project_version = project_data["version"]

redisbench_admin/run/args.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
TRIGGERING_ENV = os.getenv("TRIGGERING_ENV", DEFAULT_TRIGGERING_ENV)
2424
ENV = os.getenv("ENV", "oss-standalone,oss-cluster")
2525
SETUP = os.getenv("SETUP", "")
26+
BENCHMARK = os.getenv("BENCHMARK", "")
2627
BENCHMARK_GLOB = os.getenv("BENCHMARK_GLOB", "*.yml")
2728
BENCHMARK_REGEX = os.getenv("BENCHMARK_REGEX", ".*")
2829
BENCHMARK_RUNNER_GROUP_TOTAL = int(os.getenv("BENCHMARK_RUNNER_GROUP_TOTAL", "1"))
@@ -94,7 +95,7 @@ def common_run_args(parser):
9495
parser.add_argument(
9596
"--test",
9697
type=str,
97-
default="",
98+
default=BENCHMARK,
9899
help="specify a test to run. By default will run all of them.",
99100
)
100101
parser.add_argument(

redisbench_admin/run/run.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ def define_benchmark_plan(benchmark_definitions, default_specs):
117117
test_benchmark_config["dbconfig"] = {}
118118
setup_dbconfig = setup_settings["dbconfig"]
119119
benchmark_dbconfig = test_benchmark_config["dbconfig"]
120+
121+
# Handle legacy list format - convert to dict by merging all entries
122+
if isinstance(benchmark_dbconfig, list):
123+
converted_dbconfig = {}
124+
for entry in benchmark_dbconfig:
125+
if isinstance(entry, dict):
126+
converted_dbconfig.update(entry)
127+
benchmark_dbconfig = converted_dbconfig
128+
120129
logging.info(
121130
f"Merging setup dbconfig: {setup_dbconfig}, with benchmark dbconfig {test_benchmark_config}"
122131
)

redisbench_admin/run_local/run_local.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,10 @@ def run_local_command_logic(args, project_name, project_version):
307307
None,
308308
args.password,
309309
)
310+
# get the pids
310311
redis_pids = [
311-
redis_process.pid
312-
for redis_process in redis_processes
312+
redis_conn.info("server")["process_id"]
313+
for redis_conn in redis_conns
313314
]
314315
# start the profile
315316
(
@@ -556,6 +557,14 @@ def run_local_command_logic(args, project_name, project_version):
556557
"Keeping environment and topology active upon request."
557558
)
558559

560+
except KeyboardInterrupt:
561+
logging.critical(
562+
"Detected Keyboard interrupt...Tearing down and exiting!"
563+
)
564+
teardown_local_setup(
565+
redis_conns, redis_processes, setup_name
566+
)
567+
exit(1)
559568
except:
560569
return_code |= 1
561570
logging.critical(

0 commit comments

Comments
 (0)