From 6e35d221273e3b466130c8722463cb5a3e32b737 Mon Sep 17 00:00:00 2001 From: Jack Lacey Date: Wed, 11 Dec 2024 18:43:16 -0800 Subject: [PATCH] Add VM create operation name, if applicable, to `cluster_boot` sample metadata. PiperOrigin-RevId: 705318269 --- perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py | 3 +++ tests/linux_benchmarks/cluster_boot_benchmark_test.py | 1 + 2 files changed, 4 insertions(+) diff --git a/perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py b/perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py index 93692374b8..8174f1c2c6 100644 --- a/perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py +++ b/perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py @@ -271,6 +271,9 @@ def GetTimeToBoot(vms): 'num_vms': len(vms), 'os_type': vm.OS_TYPE, 'create_delay_sec': '%0.1f' % create_delay_sec, + 'create_operation_name': ( + vm.create_operation_name if vm.create_operation_name else 'N/A' + ), } # TIME TO CREATE ASYNC RETURN diff --git a/tests/linux_benchmarks/cluster_boot_benchmark_test.py b/tests/linux_benchmarks/cluster_boot_benchmark_test.py index 4b67bb4180..1c4c577caf 100644 --- a/tests/linux_benchmarks/cluster_boot_benchmark_test.py +++ b/tests/linux_benchmarks/cluster_boot_benchmark_test.py @@ -212,6 +212,7 @@ def testGetTimeToBoot(self): 'num_vms': 1, 'os_type': 'ubuntu2204', 'create_delay_sec': '0.0', + 'create_operation_name': 'N/A', }, timestamp=1678147200.0, )