File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 134134 test_script_opts = ""
135135 if REVISION_A :
136136 devtool_opts += " --ab"
137- test_script_opts = f'{ ab_opts } run build/{ REVISION_A } / build/{ REVISION_B } --pytest-opts "{ test_selector } "'
137+ test_script_opts = f'{ ab_opts } run --binaries_a build/{ REVISION_A } / --binaries_b build/{ REVISION_B } --pytest-opts "{ test_selector } "'
138138 else :
139139 # Passing `-m ''` below instructs pytest to collect tests regardless of
140140 # their markers (e.g. it will collect both tests marked as nonci, and
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ function to [`.buildkite/pipeline_perf.py`](../.buildkite/pipeline_perf.py). To
184184manually run an A/B-Test, use
185185
186186``` sh
187- tools/devtool -y test --ab [optional arguments to ab_test.py] run < dir A> < dir B> --pytest-opts < test specification>
187+ tools/devtool -y test --ab [optional arguments to ab_test.py] run --binaries_a < dir A> --binaries_b < dir B> --pytest-opts < test specification>
188188```
189189
190190Here, _ dir A_ and _ dir B_ are directories containing firecracker and jailer
Original file line number Diff line number Diff line change @@ -422,14 +422,16 @@ def ab_performance_test(
422422 help = "Run an specific test of our test suite as an A/B-test across two specified commits" ,
423423 )
424424 run_parser .add_argument (
425- "a_revision " ,
425+ "--binaries-a " ,
426426 help = "Directory containing firecracker and jailer binaries to be considered the performance baseline" ,
427427 type = Path ,
428+ required = True ,
428429 )
429430 run_parser .add_argument (
430- "b_revision " ,
431- help = "Directory containing firecracker and jailer binaries whose performance we want to compare against the results from a_revision " ,
431+ "--binaries-b " ,
432+ help = "Directory containing firecracker and jailer binaries whose performance we want to compare against the results from binaries-a " ,
432433 type = Path ,
434+ required = True ,
433435 )
434436 run_parser .add_argument (
435437 "--pytest-opts" ,
@@ -472,8 +474,8 @@ def ab_performance_test(
472474
473475 if args .command == "run" :
474476 ab_performance_test (
475- args .a_revision ,
476- args .b_revision ,
477+ args .binaries_a ,
478+ args .binaries_b ,
477479 args .pytest_opts ,
478480 args .significance ,
479481 args .absolute_strength ,
You can’t perform that action at this time.
0 commit comments