Skip to content

Commit dbe1fc9

Browse files
committed
Update test to write results to S3 bucket
Change tests to save results to s3 bucket, so that the results can more easily be processed Signed-off-by: James Curtis <[email protected]>
1 parent 0e3be4b commit dbe1fc9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/conftest.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ def rootfs_fxt(request, record_property):
362362
guest_kernel_fxt, params=kernel_params("vmlinux-5.10*")
363363
)
364364
guest_kernel_linux_acpi_only = pytest.fixture(
365-
guest_kernel_fxt, params=kernel_params("vmlinux-5.10.221")
365+
guest_kernel_fxt, params=kernel_params("vmlinux-5.10.219")
366+
)
367+
guest_kernel_linux_6_5 = pytest.fixture(
368+
guest_kernel_fxt, params=kernel_params("vmlinux-6.5.*", select=kernels_unfiltered)
366369
)
367370
# Use the unfiltered selector, since we don't officially support 6.1 yet.
368371
# TODO: switch to default selector once we add full 6.1 support.

tests/integration_tests/performance/test_vcpu_hotplug.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_custom_udev_rule_latency(
9494
"vcpu_count", [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30]
9595
)
9696
def test_manual_latency(
97-
microvm_factory, guest_kernel_linux_acpi_only, rootfs_rw, vcpu_count
97+
microvm_factory, guest_kernel_linux_acpi_only, rootfs_rw, vcpu_count, results_dir
9898
):
9999
"""Test the latency for hotplugging and booting CPUs in the guest"""
100100
gcc_compile(Path("./host_tools/hotplug_time.c"), Path("host_tools/hotplug_time.o"))
@@ -143,8 +143,9 @@ def test_manual_latency(
143143

144144
data.append({"vcpus": vcpu_count, "api": api_duration, "onlining": timestamp})
145145

146-
df = pandas.DataFrame.from_dict(data).to_csv(
147-
f"../test_results/manual-hotplug_{vcpu_count}.csv",
146+
output_file = results_dir / f"hotplug-{vcpu_count}.csv"
147+
148+
csv_data = pandas.DataFrame.from_dict(data).to_csv(
148149
index=False,
149150
float_format="%.3f",
150151
)

0 commit comments

Comments
 (0)