Skip to content

Commit efbf33d

Browse files
committed
storage: skip zfsvol large VDI tests due to known performance issue
Skip test_xva_export_import and test_vdi_export_import when VDI size > 20 GiB, as performance issues make these tests too slow on large volumes. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 6dcac9d commit efbf33d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/storage/zfsvol/test_zfsvol_sr.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from lib import config
88
from lib.commands import SSHCommandFailed
9-
from lib.common import Defer, KiB, MiB, vm_image, wait_for
9+
from lib.common import Defer, GiB, KiB, MiB, vm_image, wait_for
1010
from lib.host import Host
1111
from lib.sr import SR
1212
from lib.vdi import VDI
@@ -98,12 +98,16 @@ def test_invalid_vdi_size(self, zfsvol_sr: SR, image_format: ImageFormat):
9898
def test_xva_export_import(
9999
self, vm_on_zfsvol_sr: VM, compression: XVACompression, temp_large_dir: str, defer: Defer
100100
):
101+
if config.volume_size > 20 * GiB:
102+
pytest.skip("Skipping large VDI test (known performance issue)")
101103
xva_export_import(vm_on_zfsvol_sr, compression, temp_large_dir, defer)
102104

103105
@pytest.mark.small_vm
104106
def test_vdi_export_import(
105107
self, storage_test_vm: VM, zfsvol_sr: SR, image_format: ImageFormat, temp_large_dir: str, defer: Defer
106108
):
109+
if config.volume_size > 20 * GiB:
110+
pytest.skip("Skipping large VDI test (known performance issue)")
107111
vm = storage_test_vm
108112
sr = zfsvol_sr
109113
vdi_export_import(vm, sr, image_format, temp_large_dir, defer)

0 commit comments

Comments
 (0)