Skip to content

Commit 886c66d

Browse files
committed
ci: enable running kani on ARM
Kani supports verification on ARM since version 0.37.0 [1], so enable it in our CI. [1]: https://github.com/model-checking/kani/blob/main/CHANGELOG.md#0370 Signed-off-by: Patrick Roy <[email protected]> Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent e70195f commit 886c66d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.buildkite/pipeline_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"./tools/devtool -y test --no-build -- ../tests/integration_tests/test_kani.py -n auto",
5757
# Kani step default
5858
# Kani runs fastest on m6a.metal
59-
instances=["m6a.metal"],
59+
instances=["m6a.metal", "m7g.metal"],
6060
platforms=[("al2", "linux_5.10")],
6161
timeout_in_minutes=300,
6262
**DEFAULTS_PERF,

tests/integration_tests/test_kani.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# The `check_output` timeout will always fire before this one, but we need to
1818
# set a timeout here to override the default pytest timeout of 180s.
1919
@pytest.mark.timeout(2420)
20-
@pytest.mark.skipif(PLATFORM != "x86_64", reason="Kani proofs run only on x86_64.")
2120
@pytest.mark.skipif(
2221
os.environ.get("BUILDKITE") != "true",
2322
reason="Kani's memory requirements likely cannot be satisfied locally",

tools/devctr/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-too
108108
&& rustup target add aarch64-unknown-linux-musl \
109109
&& rustup component add llvm-tools-preview clippy rustfmt \
110110
&& cargo install --locked cargo-audit cargo-deny grcov cargo-sort cargo-afl \
111-
&& (if [ "$ARCH" = "x86_64" ]; then cargo install --locked kani-verifier && cargo kani setup; else true; fi) \
111+
&& cargo install --locked kani-verifier && cargo kani setup \
112112
\
113113
&& apt-get update \
114114
&& apt-get -y install --no-install-recommends \

0 commit comments

Comments
 (0)