@@ -223,6 +223,9 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
223
223
command = command .replace ("'" , "" )
224
224
if "-key-pattern" in command :
225
225
continue
226
+ # Skip command-ratio and other memtier arguments that start with -
227
+ if command .startswith ("-" ):
228
+ continue
226
229
command = command .lower ()
227
230
if command not in tested_commands :
228
231
tested_commands .append (command )
@@ -238,14 +241,16 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
238
241
if command not in tracked_commands_json :
239
242
tracked_commands_json [command ] = command_json
240
243
241
- group = command_json ["group" ]
242
- if group not in tested_groups :
244
+ # Only process if command_json has group information
245
+ if "group" in command_json :
246
+ group = command_json ["group" ]
247
+ if group not in tested_groups :
243
248
244
- tested_groups .append (group )
245
- if group not in tracked_groups :
246
- tracked_groups .append (group )
247
- tracked_groups_hist [group ] = 0
248
- tracked_groups_hist [group ] = tracked_groups_hist [group ] + 1
249
+ tested_groups .append (group )
250
+ if group not in tracked_groups :
251
+ tracked_groups .append (group )
252
+ tracked_groups_hist [group ] = 0
253
+ tracked_groups_hist [group ] = tracked_groups_hist [group ] + 1
249
254
250
255
# Calculate total connections
251
256
total_connections = clients * threads
@@ -262,12 +267,12 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
262
267
data_sizes [data_size ] = 0
263
268
data_sizes [data_size ] = data_sizes [data_size ] + 1
264
269
265
- if tested_commands != origin_tested_commands :
270
+ if sorted ( tested_commands ) != sorted ( origin_tested_commands ) :
266
271
requires_override = True
267
272
benchmark_config ["tested-commands" ] = tested_commands
268
273
logging .warn (
269
274
"there is a difference between specified test-commands in the yaml (name={}) and the ones we've detected {}!={}" .format (
270
- test_name , origin_tested_commands , tested_commands
275
+ test_name , sorted ( origin_tested_commands ), sorted ( tested_commands )
271
276
)
272
277
)
273
278
@@ -323,12 +328,12 @@ def generate_stats_cli_command_logic(args, project_name, project_version):
323
328
)
324
329
)
325
330
326
- if tested_groups != origin_tested_groups :
331
+ if sorted ( tested_groups ) != sorted ( origin_tested_groups ) :
327
332
tested_groups_match_origin = False
328
333
benchmark_config ["tested-groups" ] = tested_groups
329
334
logging .warn (
330
335
"there is a difference between specified test-groups in the yaml (name={}) and the ones we've detected {}!={}" .format (
331
- test_name , origin_tested_groups , tested_groups
336
+ test_name , sorted ( origin_tested_groups ), sorted ( tested_groups )
332
337
)
333
338
)
334
339
0 commit comments