Skip to content

Commit 74de0c9

Browse files
committed
tests: Mark kernels newer than 6.12 as next
To make it easier to track the upstream kernels which may change as we rebase, let's mark kernels newer than 6.12 as next for now to make dashboarding easier. Signed-off-by: Jack Thomson <[email protected]>
1 parent ad06919 commit 74de0c9

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

Diff for: tests/conftest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,20 +133,20 @@ def pytest_runtest_logreport(report):
133133
"test": report.nodeid,
134134
"instance": global_props.instance,
135135
"cpu_model": global_props.cpu_model,
136-
"host_kernel": "linux-" + global_props.host_linux_version,
136+
"host_kernel": "linux-" + global_props.host_linux_version_metrics,
137137
"phase": report.when,
138138
},
139139
# per test
140140
{
141141
"test": report.nodeid,
142142
"instance": global_props.instance,
143143
"cpu_model": global_props.cpu_model,
144-
"host_kernel": "linux-" + global_props.host_linux_version,
144+
"host_kernel": "linux-" + global_props.host_linux_version_metrics,
145145
},
146146
# per phase
147147
{"phase": report.when},
148148
# per host kernel
149-
{"host_kernel": "linux-" + global_props.host_linux_version},
149+
{"host_kernel": "linux-" + global_props.host_linux_version_metrics},
150150
# per CPU
151151
{"cpu_model": global_props.cpu_model},
152152
# and global

Diff for: tests/framework/microvm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def dimensions(self):
457457
return {
458458
"instance": global_props.instance,
459459
"cpu_model": global_props.cpu_model,
460-
"host_kernel": f"linux-{global_props.host_linux_version}",
460+
"host_kernel": f"linux-{global_props.host_linux_version_metrics}",
461461
"guest_kernel": self.kernel_file.stem[2:],
462462
"rootfs": self.rootfs_file.name,
463463
"vcpus": str(self.vcpus_count),

Diff for: tests/framework/properties.py

+7
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ def host_linux_version_tpl(self):
102102
"""Host Linux version major.minor, as a tuple for easy comparison"""
103103
return tuple(int(x) for x in self.host_linux_version.split("."))
104104

105+
@property
106+
def host_linux_version_metrics(self):
107+
"""Host Linux version to be reported in metrics"""
108+
return (
109+
"next" if self.host_linux_version_tpl > (6, 12) else self.host_linux_version
110+
)
111+
105112
@property
106113
def is_ec2(self):
107114
"""Are we running on an EC2 instance?"""

Diff for: tests/host_tools/fcmetrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def __init__(self, vm, timer=60):
508508
self.metrics_logger.set_dimensions(
509509
{
510510
"instance": global_props.instance,
511-
"host_kernel": "linux-" + global_props.host_linux_version,
511+
"host_kernel": "linux-" + global_props.host_linux_version_metrics,
512512
"guest_kernel": vm.kernel_file.stem[2:],
513513
}
514514
)

Diff for: tests/integration_tests/performance/test_boottime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"instance": global_props.instance,
2424
"cpu_model": global_props.cpu_model,
2525
"host_os": global_props.host_os,
26-
"host_kernel": "linux-" + global_props.host_linux_version,
26+
"host_kernel": "linux-" + global_props.host_linux_version_metrics,
2727
}
2828

2929

0 commit comments

Comments
 (0)