2525 prepare_benchmark_definitions ,
2626 check_required_modules ,
2727 results_dict_kpi_check ,
28+ extract_redis_configuration_parameters ,
2829)
2930from redisbench_admin .utils .redisgraph_benchmark_go import (
3031 spin_up_standalone_remote_redis ,
@@ -354,6 +355,11 @@ def run_remote_command_logic(args):
354355 # after we've created the env, even on error we should always teardown
355356 # in case of some unexpected error we fail the test
356357 try :
358+
359+ redis_configuration_parameters = extract_redis_configuration_parameters (
360+ benchmark_config , "dbconfig"
361+ )
362+
357363 # setup Redis
358364 spin_up_standalone_remote_redis (
359365 benchmark_config ,
@@ -364,6 +370,7 @@ def run_remote_command_logic(args):
364370 remote_module_file ,
365371 remote_dataset_file ,
366372 dirname ,
373+ redis_configuration_parameters ,
367374 )
368375 module_names , artifact_versions = extract_artifact_version_remote (
369376 server_public_ip , server_plaintext_port , username , private_key
@@ -390,20 +397,11 @@ def run_remote_command_logic(args):
390397 redisbenchmark_go_link ,
391398 )
392399 if "tsbs_" in benchmark_tool :
393- remote_tool_link = "/tmp/{}" .format (benchmark_tool )
394- tool_link = (
395- "https://s3.amazonaws.com/benchmarks.redislabs/"
396- + "redistimeseries/tools/tsbs/{}_linux_amd64" .format (
397- benchmark_tool
398- )
399- )
400-
401- queries_file_link = None
402- for entry in benchmark_config ["clientconfig" ]:
403- if "parameters" in entry :
404- for parameter in entry ["parameters" ]:
405- if "file" in parameter :
406- queries_file_link = parameter ["file" ]
400+ (
401+ queries_file_link ,
402+ remote_tool_link ,
403+ tool_link ,
404+ ) = extract_tsbs_extra_links (benchmark_config , benchmark_tool )
407405
408406 setup_remote_benchmark_tool_requirements_tsbs (
409407 client_public_ip ,
@@ -586,6 +584,21 @@ def run_remote_command_logic(args):
586584 exit (return_code )
587585
588586
587+ def extract_tsbs_extra_links (benchmark_config , benchmark_tool ):
588+ remote_tool_link = "/tmp/{}" .format (benchmark_tool )
589+ tool_link = (
590+ "https://s3.amazonaws.com/benchmarks.redislabs/"
591+ + "redistimeseries/tools/tsbs/{}_linux_amd64" .format (benchmark_tool )
592+ )
593+ queries_file_link = None
594+ for entry in benchmark_config ["clientconfig" ]:
595+ if "parameters" in entry :
596+ for parameter in entry ["parameters" ]:
597+ if "file" in parameter :
598+ queries_file_link = parameter ["file" ]
599+ return queries_file_link , remote_tool_link , tool_link
600+
601+
589602def get_test_s3_bucket_path (s3_bucket_name , test_name , tf_github_org , tf_github_repo ):
590603 s3_bucket_path = "{github_org}/{github_repo}/results/{test_name}/" .format (
591604 github_org = tf_github_org ,
0 commit comments