File tree 2 files changed +27
-0
lines changed
redis_benchmarks_specification/__self_contained_coordinator__
2 files changed +27
-0
lines changed 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 @@ -375,6 +375,13 @@ def self_contained_coordinator_blocking_read(
375
375
if len (newTestInfo [0 ]) < 2 or len (newTestInfo [0 ][1 ]) < 1 :
376
376
stream_id = ">"
377
377
else :
378
+ # Create args object with topology parameter
379
+ class Args :
380
+ def __init__ (self ):
381
+ self .topology = ""
382
+
383
+ args = Args ()
384
+
378
385
(
379
386
stream_id ,
380
387
overall_result ,
@@ -406,6 +413,7 @@ def self_contained_coordinator_blocking_read(
406
413
default_metrics_str ,
407
414
docker_keep_env ,
408
415
restore_build_artifacts_default ,
416
+ args ,
409
417
)
410
418
num_process_streams = num_process_streams + 1
411
419
num_process_test_suites = num_process_test_suites + total_test_suite_runs
@@ -486,6 +494,7 @@ def process_self_contained_coordinator_stream(
486
494
default_metrics_str = "ALL_STATS.Totals.Ops/sec" ,
487
495
docker_keep_env = False ,
488
496
restore_build_artifacts_default = True ,
497
+ args = None ,
489
498
):
490
499
stream_id = "n/a"
491
500
overall_result = False
@@ -772,6 +781,18 @@ def process_self_contained_coordinator_stream(
772
781
for topology_spec_name in benchmark_config ["redis-topologies" ]:
773
782
setup_name = topology_spec_name
774
783
setup_type = "oss-standalone"
784
+
785
+ # Filter by topology if specified
786
+ if (
787
+ args is not None
788
+ and args .topology
789
+ and topology_spec_name != args .topology
790
+ ):
791
+ logging .info (
792
+ f"Skipping topology { topology_spec_name } as it doesn't match the requested topology { args .topology } "
793
+ )
794
+ continue
795
+
775
796
if topology_spec_name in topologies_map :
776
797
topology_spec = topologies_map [topology_spec_name ]
777
798
setup_type = topology_spec ["type" ]
You can’t perform that action at this time.
0 commit comments