Skip to content

Commit 2c6e89c

Browse files
committed
feat: add option to not add kani bk step
In some cases running kani steps is not useful and only results in longer pipeline runs. Add option to disable it if needed. (cherry picked from commit 83119b8) Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 558f3dd commit 2c6e89c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.buildkite/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ def __call__(self, parser, namespace, value, option_string=None):
179179
default=None,
180180
type=str,
181181
)
182+
COMMON_PARSER.add_argument(
183+
"--no-kani",
184+
help="Don't add kani step",
185+
action="store_true",
186+
default=False,
187+
)
182188

183189

184190
def random_str(k: int):

.buildkite/pipeline_pr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@
4848
"./tools/devtool -y make_release",
4949
)
5050

51-
if not changed_files or any(
52-
x.suffix in [".rs", ".toml", ".lock"] for x in changed_files
51+
if not pipeline.args.no_kani and (
52+
not changed_files
53+
or any(x.suffix in [".rs", ".toml", ".lock"] for x in changed_files)
5354
):
5455
kani_grp = pipeline.build_group(
5556
"🔍 Kani",

0 commit comments

Comments
 (0)