Skip to content

Commit aa3f330

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. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 74a5161 commit aa3f330

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
@@ -178,6 +178,12 @@ def __call__(self, parser, namespace, value, option_string=None):
178178
default=None,
179179
type=str,
180180
)
181+
COMMON_PARSER.add_argument(
182+
"--no-kani",
183+
help="Don't add kani step",
184+
action="store_true",
185+
default=False,
186+
)
181187

182188

183189
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)