9
9
from redis_benchmarks_specification .__common__ .runner import get_benchmark_specs
10
10
11
11
12
-
13
12
# logging settings
14
13
logging .basicConfig (
15
14
format = "%(asctime)s %(levelname)-4s %(message)s" ,
19
18
20
19
21
20
def 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)."""
23
22
try :
24
23
value = value .replace ("," , "" ).strip () # Remove commas and spaces
25
24
@@ -40,6 +39,7 @@ def clean_number(value):
40
39
logging .error (f"Skipping invalid count value: { value } " )
41
40
return 0 # Default to 0 if invalid
42
41
42
+
43
43
def get_arg_value (args , flag , default ):
44
44
"""Extract integer values safely from CLI arguments"""
45
45
if flag in args :
@@ -207,12 +207,12 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
207
207
208
208
group = command_json ["group" ]
209
209
if group not in tested_groups :
210
-
210
+
211
211
tested_groups .append (group )
212
212
if group not in tracked_groups :
213
213
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
216
216
217
217
# Calculate total connections
218
218
total_connections = clients * threads
@@ -562,11 +562,15 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
562
562
logging .info ("Top 10 fully tracked?: {}" .format (len (top_10_missing ) == 0 ))
563
563
logging .info ("Top 30 fully tracked?: {}" .format (len (top_30_missing ) == 0 ))
564
564
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
+ )
566
568
567
569
logging .info ("Top 50 fully tracked?: {}" .format (len (top_50_missing ) == 0 ))
568
570
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
+ )
570
574
571
575
if overall_result is False and fail_on_required_diff :
572
576
logging .error (
0 commit comments