Skip to content

Commit 1c3a4b2

Browse files
jellyfishcakecopybara-github
authored andcommitted
Add retries to the sysbench build to reduce flakes.
PiperOrigin-RevId: 716395947
1 parent 76e98b4 commit 1c3a4b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

perfkitbenchmarker/linux_packages/sysbench.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from perfkitbenchmarker import os_types
2626
from perfkitbenchmarker import regex_util
2727
from perfkitbenchmarker import sample
28+
from perfkitbenchmarker import vm_util
2829

2930

3031
FLAGS = flags.FLAGS
@@ -118,7 +119,7 @@ def _Install(vm, spanner_oltp=False, args=immutabledict.immutabledict()):
118119
' spanner_oltp_write_only.diff'
119120
)
120121

121-
vm.RemoteCommand(
122+
vm_util.Retry(max_retries=10)(vm.RemoteCommand)(
122123
f'cd {SYSBENCH_DIR} && ./autogen.sh && ./configure --with-pgsql'
123124
f' {without_mysql}'
124125
)

0 commit comments

Comments
 (0)