Skip to content

Commit 536ac62

Browse files
committed
Add automatic retries for spot preemptions
1 parent b81310b commit 536ac62

File tree

3 files changed

+308
-0
lines changed

3 files changed

+308
-0
lines changed

.buildkite/pipelines/periodic.bwc.template.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@
99
buildDirectory: /dev/shm/bk
1010
env:
1111
BWC_VERSION: $BWC_VERSION
12+
retry:
13+
automatic:
14+
- exit_status: '-1'
15+
limit: 3
16+
signal_reason: none
17+
- signal_reason: agent_stop
18+
limit: 3

.buildkite/pipelines/periodic.template.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ steps:
2424
env:
2525
ES_RUNTIME_JAVA: "{{matrix.ES_RUNTIME_JAVA}}"
2626
GRADLE_TASK: "{{matrix.GRADLE_TASK}}"
27+
retry:
28+
automatic:
29+
- exit_status: "-1"
30+
limit: 3
31+
signal_reason: none
32+
- signal_reason: agent_stop
33+
limit: 3
2734
- label: "{{matrix.ES_RUNTIME_JAVA}} / {{matrix.BWC_VERSION}} / java-fips-matrix-bwc"
2835
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.fips.enabled=true v$$BWC_VERSION#bwcTest
2936
timeout_in_minutes: 300
@@ -41,6 +48,13 @@ steps:
4148
env:
4249
ES_RUNTIME_JAVA: "{{matrix.ES_RUNTIME_JAVA}}"
4350
BWC_VERSION: "{{matrix.BWC_VERSION}}"
51+
retry:
52+
automatic:
53+
- exit_status: "-1"
54+
limit: 3
55+
signal_reason: none
56+
- signal_reason: agent_stop
57+
limit: 3
4458
- group: java-matrix
4559
steps:
4660
- label: "{{matrix.ES_RUNTIME_JAVA}} / {{matrix.GRADLE_TASK}} / java-matrix"
@@ -67,6 +81,13 @@ steps:
6781
env:
6882
ES_RUNTIME_JAVA: "{{matrix.ES_RUNTIME_JAVA}}"
6983
GRADLE_TASK: "{{matrix.GRADLE_TASK}}"
84+
retry:
85+
automatic:
86+
- exit_status: "-1"
87+
limit: 3
88+
signal_reason: none
89+
- signal_reason: agent_stop
90+
limit: 3
7091
- label: "{{matrix.ES_RUNTIME_JAVA}} / {{matrix.BWC_VERSION}} / java-matrix-bwc"
7192
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v$$BWC_VERSION#bwcTest
7293
timeout_in_minutes: 300
@@ -87,6 +108,13 @@ steps:
87108
env:
88109
ES_RUNTIME_JAVA: "{{matrix.ES_RUNTIME_JAVA}}"
89110
BWC_VERSION: "{{matrix.BWC_VERSION}}"
111+
retry:
112+
automatic:
113+
- exit_status: "-1"
114+
limit: 3
115+
signal_reason: none
116+
- signal_reason: agent_stop
117+
limit: 3
90118
- group: platform-support-unix
91119
steps:
92120
- label: "{{matrix.image}} / platform-support-unix"
@@ -120,3 +148,10 @@ steps:
120148
machineType: n1-standard-32
121149
preemptible: true
122150
env: {}
151+
retry:
152+
automatic:
153+
- exit_status: "-1"
154+
limit: 3
155+
signal_reason: none
156+
- signal_reason: agent_stop
157+
limit: 3

0 commit comments

Comments
 (0)