Skip to content

Commit 89f2cb2

Browse files
committed
fix: Fix rare failure in pause resume test
Test with 1 vCPU when running the KVMCLOCK_CTRL tests so we don't error on intermittent issue with the soft lockup watchdog. Signed-off-by: Jack Thomson <[email protected]>
1 parent 567b1ea commit 89f2cb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration_tests/functional/test_pause_resume.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ def test_kvmclock_ctrl(uvm_plain_any):
141141
microvm = uvm_plain_any
142142
microvm.help.enable_console()
143143
microvm.spawn()
144-
microvm.basic_config()
144+
145+
# With 2 vCPUs under certain conditions soft lockup warnings can rarely be in dmesg causing this test to fail.
146+
# Example of the warning: `watchdog: BUG: soft lockup - CPU#0 stuck for (x)s! [(udev-worker):758]`
147+
# With 1 vCPU this intermittent issue doesn't occur. If the KVM_CLOCK_CTRL IOCTL is not made
148+
# the test will fail with 1 vCPU, so we can assert the call to the IOCTL is made.
149+
microvm.basic_config(vcpu_count=1)
145150
microvm.add_net_iface()
146151
microvm.start()
147152

0 commit comments

Comments
 (0)