Skip to content

Commit a2b8f7f

Browse files
committed
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 <yegorlz@amazon.co.uk>
1 parent 1cc5ade commit a2b8f7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.buildkite/common.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ def __call__(self, parser, namespace, value, option_string=None):
191191
action="store_true",
192192
default=False,
193193
)
194+
COMMON_PARSER.add_argument(
195+
"--parallelism",
196+
help="How many instances of test to create",
197+
required=False,
198+
default=1,
199+
type=int,
200+
)
194201

195202

196203
def random_str(k: int):
@@ -320,6 +327,7 @@ def build_group(self, *args, **kwargs):
320327
"""
321328
depends_on_build = kwargs.pop("depends_on_build", True)
322329
combined = overlay_dict(self.per_instance, kwargs)
330+
combined["parallelism"] = self.args.parallelism
323331
return self.add_step(
324332
group(*args, **combined), depends_on_build=depends_on_build
325333
)

0 commit comments

Comments
 (0)