99from redis_benchmarks_specification .__common__ .runner import get_benchmark_specs
1010
1111
12-
1312# logging settings
1413logging .basicConfig (
1514 format = "%(asctime)s %(levelname)-4s %(message)s" ,
1918
2019
2120def clean_number (value ):
22- """ Cleans and converts numeric values from CSV, handling B (billion), M (million), K (thousand). """
21+ """Cleans and converts numeric values from CSV, handling B (billion), M (million), K (thousand)."""
2322 try :
2423 value = value .replace ("," , "" ).strip () # Remove commas and spaces
2524
@@ -40,6 +39,7 @@ def clean_number(value):
4039 logging .error (f"Skipping invalid count value: { value } " )
4140 return 0 # Default to 0 if invalid
4241
42+
4343def get_arg_value (args , flag , default ):
4444 """Extract integer values safely from CLI arguments"""
4545 if flag in args :
@@ -207,12 +207,12 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
207207
208208 group = command_json ["group" ]
209209 if group not in tested_groups :
210-
210+
211211 tested_groups .append (group )
212212 if group not in tracked_groups :
213213 tracked_groups .append (group )
214- tracked_groups_hist [group ]= 0
215- tracked_groups_hist [group ]= tracked_groups_hist [group ]+ 1
214+ tracked_groups_hist [group ] = 0
215+ tracked_groups_hist [group ] = tracked_groups_hist [group ] + 1
216216
217217 # Calculate total connections
218218 total_connections = clients * threads
@@ -562,11 +562,15 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
562562 logging .info ("Top 10 fully tracked?: {}" .format (len (top_10_missing ) == 0 ))
563563 logging .info ("Top 30 fully tracked?: {}" .format (len (top_30_missing ) == 0 ))
564564 if len (top_30_missing ) > 0 :
565- logging .info (f"\t \t Total missing for Top 30: { len (top_30_missing )} . { top_30_missing } " )
565+ logging .info (
566+ f"\t \t Total missing for Top 30: { len (top_30_missing )} . { top_30_missing } "
567+ )
566568
567569 logging .info ("Top 50 fully tracked?: {}" .format (len (top_50_missing ) == 0 ))
568570 if len (top_50_missing ) > 0 :
569- logging .info (f"\t \t Total missing for Top 50: { len (top_50_missing )} . { top_50_missing } " )
571+ logging .info (
572+ f"\t \t Total missing for Top 50: { len (top_50_missing )} . { top_50_missing } "
573+ )
570574
571575 if overall_result is False and fail_on_required_diff :
572576 logging .error (
0 commit comments