File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed
redis_benchmarks_specification
__self_contained_coordinator__ Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -208,4 +208,9 @@ def create_client_runner_args(project_name):
208
208
action = "store_true" ,
209
209
help = "Run client in cluster mode." ,
210
210
)
211
+ parser .add_argument (
212
+ "--topology" ,
213
+ default = "" ,
214
+ help = "Filter tests to run only with the specified topology (e.g. oss-standalone)" ,
215
+ )
211
216
return parser
Original file line number Diff line number Diff line change @@ -165,4 +165,10 @@ def create_self_contained_coordinator_args(project_name):
165
165
default = 100000 ,
166
166
help = "Run a subset of the tests based uppon a preset priority. By default runs all tests." ,
167
167
)
168
+ parser .add_argument (
169
+ "--topology" ,
170
+ type = str ,
171
+ default = "" ,
172
+ help = "Filter tests to run only with the specified topology (e.g. oss-standalone)" ,
173
+ )
168
174
return parser
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ def process_self_contained_coordinator_stream(
116
116
docker_air_gap = False ,
117
117
verbose = False ,
118
118
run_tests_with_dataset = False ,
119
+ args = None ,
119
120
):
120
121
stream_id = "n/a"
121
122
overall_result = False
@@ -197,6 +198,17 @@ def process_self_contained_coordinator_stream(
197
198
)
198
199
)
199
200
for topology_spec_name in benchmark_config ["redis-topologies" ]:
201
+ # Filter by topology if specified
202
+ if (
203
+ args .topology
204
+ and args .topology != ""
205
+ and topology_spec_name != args .topology
206
+ ):
207
+ logging .info (
208
+ f"Skipping topology { topology_spec_name } as it doesn't match the requested topology { args .topology } "
209
+ )
210
+ continue
211
+
200
212
test_result = False
201
213
try :
202
214
current_cpu_pos = cpuset_start_pos
Original file line number Diff line number Diff line change @@ -367,6 +367,13 @@ def self_contained_coordinator_blocking_read(
367
367
if len (newTestInfo [0 ]) < 2 or len (newTestInfo [0 ][1 ]) < 1 :
368
368
stream_id = ">"
369
369
else :
370
+ # Create args object with topology parameter
371
+ class Args :
372
+ def __init__ (self ):
373
+ self .topology = ""
374
+
375
+ args = Args ()
376
+
370
377
(
371
378
stream_id ,
372
379
overall_result ,
@@ -398,6 +405,7 @@ def self_contained_coordinator_blocking_read(
398
405
default_metrics_str ,
399
406
docker_keep_env ,
400
407
restore_build_artifacts_default ,
408
+ args ,
401
409
)
402
410
num_process_streams = num_process_streams + 1
403
411
num_process_test_suites = num_process_test_suites + total_test_suite_runs
You can’t perform that action at this time.
0 commit comments