From a2b8f7f291e9374f9980d2505270e3d96ed78068 Mon Sep 17 00:00:00 2001 From: Egor Lazarchuk Date: Tue, 13 May 2025 10:15:24 +0100 Subject: [PATCH] feat(ci): add paralellism option to bk pipelines Add `--parallelism` option to specify how many instances of tests to run. Signed-off-by: Egor Lazarchuk --- .buildkite/common.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.buildkite/common.py b/.buildkite/common.py index a979638e472..57a46f945d0 100644 --- a/.buildkite/common.py +++ b/.buildkite/common.py @@ -191,6 +191,13 @@ def __call__(self, parser, namespace, value, option_string=None): action="store_true", default=False, ) +COMMON_PARSER.add_argument( + "--parallelism", + help="How many instances of test to create", + required=False, + default=1, + type=int, +) def random_str(k: int): @@ -320,6 +327,7 @@ def build_group(self, *args, **kwargs): """ depends_on_build = kwargs.pop("depends_on_build", True) combined = overlay_dict(self.per_instance, kwargs) + combined["parallelism"] = self.args.parallelism return self.add_step( group(*args, **combined), depends_on_build=depends_on_build )