Skip to content

Commit 7219252

Browse files
committed
fix(test): increase timeout of kani tests
Some changes that we did in the VirtIO queue in this PR: #4726 pushed kani proofs close to the time limit we set in the CI. This commit just increases the timeout from 30 to 40 minutes. (cherry picked from commit b8ca08e) Signed-off-by: Babis Chalios <[email protected]>
1 parent e238023 commit 7219252

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/integration_tests/test_kani.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
"""
4-
Proofs ensuring memory safety properites, user-defined assertions,
4+
Proofs ensuring memory safety properties, user-defined assertions,
55
absence of panics and some types of unexpected behavior (e.g., arithmetic overflows).
66
"""
77
import os
@@ -14,7 +14,9 @@
1414
PLATFORM = platform.machine()
1515

1616

17-
@pytest.mark.timeout(1800)
17+
# The `check_output` timeout will always fire before this one, but we need to
18+
# set a timeout here to override the default pytest timeout of 180s.
19+
@pytest.mark.timeout(2420)
1820
@pytest.mark.skipif(PLATFORM != "x86_64", reason="Kani proofs run only on x86_64.")
1921
@pytest.mark.skipif(
2022
os.environ.get("BUILDKITE") != "true",
@@ -31,7 +33,8 @@ def test_kani(results_dir):
3133
# --output-format terse is required by -j
3234
# --enable-unstable is needed to enable `-Z` flags
3335
_, stdout, _ = utils.check_output(
34-
"cargo kani --enable-unstable -Z stubbing -Z function-contracts --restrict-vtable -j --output-format terse"
36+
"cargo kani --enable-unstable -Z stubbing -Z function-contracts --restrict-vtable -j --output-format terse",
37+
timeout=2400,
3538
)
3639

3740
(results_dir / "kani_log").write_text(stdout, encoding="utf-8")

0 commit comments

Comments
 (0)