diff --git a/tests/integration_tests/performance/test_boottime.py b/tests/integration_tests/performance/test_boottime.py index 5732a7e56f8..ad0822b0436 100644 --- a/tests/integration_tests/performance/test_boottime.py +++ b/tests/integration_tests/performance/test_boottime.py @@ -8,8 +8,6 @@ import pytest -from framework.properties import global_props - # Regex for obtaining boot time from some string. DEFAULT_BOOT_ARGS = ( @@ -18,14 +16,6 @@ ) -DIMENSIONS = { - "instance": global_props.instance, - "cpu_model": global_props.cpu_model, - "host_os": global_props.host_os, - "host_kernel": "linux-" + global_props.host_linux_version, -} - - def get_boottime_device_info(vm): """Auxiliary function for asserting the expected boot time.""" boot_time_us = None @@ -114,17 +104,7 @@ def test_boottime( ): """Test boot time with different guest configurations""" - metrics.set_dimensions( - { - **DIMENSIONS, - "performance_test": "test_boottime", - "guest_kernel": guest_kernel_acpi.name, - "vcpus": str(vcpu_count), - "mem_size_mib": str(mem_size_mib), - } - ) - - for _ in range(10): + for i in range(10): vm = microvm_factory.build(guest_kernel_acpi, rootfs_rw) vm.jailer.extra_args.update({"boot-timer": None}) vm.spawn() @@ -139,6 +119,15 @@ def test_boottime( vm.pin_threads(0) boot_time_us, cpu_boot_time_us = get_boottime_device_info(vm) + + if i == 0: + metrics.set_dimensions( + { + "performance_test": "test_boottime", + **vm.dimensions, + } + ) + metrics.put_metric( "guest_boot_time", boot_time_us,