Skip to content

Commit 03eb60c

Browse files
committed
test: disable api server timing on 6.1
The startup/snapshot regressions in the current test kernels cause a lot of spurious failures of server timing limiting on 6.1 host kernel. Thus, disable until those are resolved. Signed-off-by: Patrick Roy <[email protected]>
1 parent 00ae82a commit 03eb60c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/framework/microvm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from framework.defs import FC_PID_FILE_NAME, MAX_API_CALL_DURATION_MS
3434
from framework.http import Session
3535
from framework.jailer import JailerContext
36+
from framework.properties import global_props
3637
from framework.resources import (
3738
MMDS,
3839
Actions,
@@ -151,7 +152,7 @@ def __init__(
151152
self._screen_pid = None
152153
self._screen_log = None
153154

154-
self.time_api_requests = True
155+
self.time_api_requests = global_props.host_linux_version != "6.1"
155156

156157
# Initalize memory monitor
157158
self.memory_monitor = None
@@ -509,8 +510,9 @@ def spawn(
509510

510511
jailer_param_list = self.jailer.construct_param_list()
511512

512-
# Checking the timings requires DEBUG level log messages
513-
self.time_api_requests = log_level == "Debug"
513+
if log_level != "Debug":
514+
# Checking the timings requires DEBUG level log messages
515+
self.time_api_requests = False
514516

515517
# When the daemonize flag is on, we want to clone-exec into the
516518
# jailer rather than executing it via spawning a shell. Going

tests/integration_tests/performance/test_snapshot_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_snapshot_create_latency(
208208
idx_vcpu, current_cpu_id + idx_vcpu
209209
), f"Failed to pin fc_vcpu {idx_vcpu} thread."
210210

211-
st_core.name = f"snapshot_create_SnapshotType.FULL_latency"
211+
st_core.name = "snapshot_create_SnapshotType.FULL_latency"
212212
st_core.iterations = SAMPLE_COUNT
213213
st_core.custom["guest_config"] = microvm_cfg.strip(".json")
214214
st_core.custom["snapshot_type"] = "FULL"

0 commit comments

Comments
 (0)