Skip to content

Commit 539c38d

Browse files
misc(disk_perf): add marks and job definition
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent a1f9b10 commit 539c38d

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

jobs.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,24 @@
143143
"markers": "quicktest and not sr_disk_4k",
144144
"name_filter": "not linstor and not zfsvol",
145145
},
146+
"storage-benchmarks": {
147+
"description": "runs disk benchmark tests",
148+
"requirements": [
149+
"A local SR on host A1"
150+
"A small VM that can be imported on the SR",
151+
"Enough storage space to store the largest test file (numjobs*memory*2)G"
152+
],
153+
"nb_pools": 1,
154+
"params": {
155+
"--block-sizes": "4k,16k,64k,1M",
156+
"--file-sizes": "1G,4G,(memory*2)G",
157+
"--modes": "read,randread,write,randwrite",
158+
"--numjobs": 1,
159+
"--iodepth": 1,
160+
"--prev-csv": ""
161+
},
162+
"paths": ["tests/storage"],
163+
},
146164
"linstor-main": {
147165
"description": "tests the linstor storage driver, but avoids migrations and reboots",
148166
"requirements": [

tests/storage/benchmarks/test_disk_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def assert_performance_not_degraded(current, previous, threshold=10):
8888

8989
class TestDiskPerf:
9090

91-
@pytest.mark.parametrize("block_size,file_size,rw_mode", test_cases)
91+
@pytest.mark.small_vm
9292
def test_disk_benchmark(
9393
self,
9494
pytestconfig,

0 commit comments

Comments
 (0)