@@ -67,7 +67,9 @@ def execute_init_commands(benchmark_config, r, dbconfig_keyname="dbconfig"):
6767
6868 for lua_script in lua_scripts :
6969 try :
70- logging .info ("Executing Lua script (length: {} chars)" .format (len (lua_script )))
70+ logging .info (
71+ "Executing Lua script (length: {} chars)" .format (len (lua_script ))
72+ )
7173 # Execute the Lua script using EVAL command with 0 keys
7274 stdout = r .execute_command ("EVAL" , lua_script , 0 )
7375 logging .info ("Lua script result: {}" .format (stdout ))
@@ -137,7 +139,6 @@ def extract_testsuites(args):
137139 return testsuite_spec_files
138140
139141
140-
141142def commandstats_latencystats_process_name (
142143 metric_name , prefix , setup_name , variant_labels_dict
143144):
@@ -235,6 +236,7 @@ def collect_redis_metrics(
235236
236237 return start_time_ms , res , kv_overall
237238
239+
238240def export_redis_metrics (
239241 artifact_version ,
240242 end_time_ms ,
@@ -274,9 +276,7 @@ def export_redis_metrics(
274276 "branch" : tf_github_branch
275277 }
276278 if git_hash is not None and git_hash != "" :
277- by_variants ["by.hash/{}" .format (git_hash )] = {
278- "hash" : git_hash
279- }
279+ by_variants ["by.hash/{}" .format (git_hash )] = {"hash" : git_hash }
280280 if artifact_version is not None and artifact_version != "" :
281281 by_variants ["by.version/{}" .format (artifact_version )] = {
282282 "version" : artifact_version
@@ -339,8 +339,6 @@ def export_redis_metrics(
339339 return datapoint_errors , datapoint_inserts
340340
341341
342-
343-
344342def reset_commandstats (redis_conns ):
345343 for pos , redis_conn in enumerate (redis_conns ):
346344 logging .info ("Resetting commmandstats for shard {}" .format (pos ))
@@ -468,7 +466,9 @@ def exporter_datasink_common(
468466
469467 # Update deployment tracking sets
470468 deployment_type_and_name = f"{ setup_type } _AND_{ setup_name } "
471- deployment_type_and_name_and_version = f"{ setup_type } _AND_{ setup_name } _AND_{ git_version } "
469+ deployment_type_and_name_and_version = (
470+ f"{ setup_type } _AND_{ setup_name } _AND_{ git_version } "
471+ )
472472
473473 # Add to deployment-specific set (only if datasink connection is available)
474474 if datasink_conn is not None :
@@ -483,4 +483,6 @@ def exporter_datasink_common(
483483
484484 # Add metadata fields to timeseries metadata
485485 metadata ["deployment_type_AND_deployment_name" ] = deployment_type_and_name
486- metadata ["deployment_type_AND_deployment_name_AND_version" ] = deployment_type_and_name_and_version
486+ metadata ["deployment_type_AND_deployment_name_AND_version" ] = (
487+ deployment_type_and_name_and_version
488+ )
0 commit comments