3030from redisbench_admin .utils .redisgraph_benchmark_go import (
3131 spin_up_standalone_remote_redis ,
3232 setup_remote_benchmark_tool_redisgraph_benchmark_go ,
33+ setup_remote_benchmark_tool_ycsb_redisearch ,
3334)
3435from redisbench_admin .utils .remote import (
3536 extract_git_vars ,
@@ -396,6 +397,12 @@ def run_remote_command_logic(args):
396397 private_key ,
397398 redisbenchmark_go_link ,
398399 )
400+ if "ycsb" in benchmark_tool :
401+ setup_remote_benchmark_tool_ycsb_redisearch (
402+ client_public_ip ,
403+ username ,
404+ private_key ,
405+ )
399406 if "tsbs_" in benchmark_tool :
400407 (
401408 queries_file_link ,
@@ -456,7 +463,7 @@ def run_remote_command_logic(args):
456463 tmp = local_benchmark_output_filename
457464 local_benchmark_output_filename = "result.csv"
458465 # run the benchmark
459- run_remote_benchmark (
466+ _ , stdout , _ = run_remote_benchmark (
460467 client_public_ip ,
461468 username ,
462469 private_key ,
@@ -465,11 +472,12 @@ def run_remote_command_logic(args):
465472 command_str ,
466473 )
467474
468- if benchmark_tool == "redis-benchmark" or benchmark_tool == "ycsb" :
475+ if benchmark_tool == "redis-benchmark" :
469476 local_benchmark_output_filename = tmp
470477 with open ("result.csv" , "r" ) as txt_file :
471478 stdout = txt_file .read ()
472479
480+ if benchmark_tool == "redis-benchmark" or benchmark_tool == "ycsb" :
473481 post_process_benchmark_results (
474482 benchmark_tool ,
475483 local_benchmark_output_filename ,
@@ -575,6 +583,10 @@ def run_remote_command_logic(args):
575583 traceback .print_exc (file = sys .stdout )
576584 print ("-" * 60 )
577585
586+ else :
587+ logging .info (
588+ "Test {} does not have remote config. Skipping test." .format (test_name )
589+ )
578590 for remote_setup_name , tf in remote_envs .items ():
579591 # tear-down
580592 logging .info ("Tearing down setup {}" .format (remote_setup_name ))
0 commit comments