Skip to content

Commit

Permalink
Add VM create operation name, if applicable, to cluster_boot sample…
Browse files Browse the repository at this point in the history
… metadata.

PiperOrigin-RevId: 705318269
  • Loading branch information
jacklacey11 authored and copybara-github committed Dec 13, 2024
1 parent d9734da commit 6e35d22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/linux_benchmarks/cluster_boot_benchmark_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 6e35d22

Please sign in to comment.