Skip to content

Commit 29dd058

Browse files
raduweissandreeaflorescu
authored andcommitted
adjust integration test parameters for CI
Reason for changes: - Compilation is now done with more optiimzationis, so the building requires more time. - Since this will be a part of the CI, the coverage target needs to be reduced. - To debug CI issues, we don't silence build, unittest, and coverage test output. Signed-off-by: Radu Weiss <[email protected]>
1 parent 6ec1a67 commit 29dd058

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

tests/build/test_build.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
def build(flags=''):
99
run(
10-
'cargo build --target=x86_64-unknown-linux-musl --quiet ' + flags +
11-
' >/dev/null 2>&1',
10+
'cargo build --quiet ' + flags,
11+
# ' >/dev/null 2>&1',
12+
# HACK: we need a consistent way to control test output.
1213
shell=True,
1314
check=True
1415
)

tests/build/test_coverage.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_coverage(testsession_tmp_path):
2222
created by kcov after a coverag run.
2323
"""
2424

25-
COVERAGE_TARGET_PCT = 90
25+
COVERAGE_TARGET_PCT = 70
2626
# TODO: Put the coverage in s3 and update it automatically.
2727

2828
COVERAGE_FILE = 'index.json'
@@ -42,8 +42,9 @@ def test_coverage(testsession_tmp_path):
4242
'taskset --cpu-list 0-63 '
4343
'cargo kcov --all --target=x86_64-unknown-linux-musl '
4444
' --output ' + testsession_tmp_path +
45-
' -- --exclude-pattern=' + exclude_pattern + ' --verify '
46-
'>/dev/null 2>&1',
45+
' -- --exclude-pattern=' + exclude_pattern + ' --verify ',
46+
# '>/dev/null 2>&1',
47+
# HACK: we need a consistent way to control test output.
4748
shell=True,
4849
check=True
4950
)

tests/build/test_unittests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
def test_unittests():
1010
""" Runs all unit tests from all Rust crates in the repo. """
1111
run(
12-
'RUST_BACKTRACE=1 cargo test --all --quiet --no-fail-fast'
13-
' >/dev/null 2>&1',
12+
'RUST_BACKTRACE=1 cargo test --all --quiet --no-fail-fast',
13+
# ' >/dev/null 2>&1',
14+
# HACK: we need a consistent way to control test output.
1415
shell=True,
1516
check=True
1617
)

tests/functional/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pytest
1010

1111

12-
@pytest.mark.timeout(120)
12+
@pytest.mark.timeout(240)
1313
def test_api_happy_start(test_microvm_any, uhttp):
1414
""" Tests a regular microvm API start sequence. """
1515

0 commit comments

Comments
 (0)