Skip to content

Commit 5d80946

Browse files
committed
windows build: rerun more times
prebuilt fails a few times somehow, so maybe this can help its flakyness?
1 parent fcb73f2 commit 5d80946

File tree

1 file changed

+25
-40
lines changed

1 file changed

+25
-40
lines changed

.github/workflows/daily-build-windows.yml

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,15 @@ jobs:
125125
# important to cache as its really big, so it will allow `docker pull` on external users to be faster
126126
- name: Pull bootstrap cache
127127
continue-on-error: true
128-
uses: nick-fields/retry@v3
129-
with:
130-
timeout_minutes: 30
131-
max_attempts: 1
132-
shell: pwsh
133-
command: docker pull ghcr.io/${{ github.repository }}-windows:bootstrap-amd64-${{ steps.bootstrap-hash.outputs.HASH }}
128+
timeout-minutes: 30
129+
shell: pwsh
130+
run: try { docker pull ghcr.io/${{ github.repository }}-windows:bootstrap-amd64-${{ steps.bootstrap-hash.outputs.HASH }} } catch { }
134131

135132
- name: Build bootstrap stage
136133
uses: nick-fields/retry@v3
137134
with:
138135
timeout_minutes: 80
139-
max_attempts: 3
136+
max_attempts: 5
140137
shell: pwsh
141138
command: |
142139
docker build `
@@ -156,7 +153,7 @@ jobs:
156153
uses: nick-fields/retry@v3
157154
with:
158155
timeout_minutes: 120
159-
max_attempts: 3
156+
max_attempts: 5
160157
shell: pwsh
161158
command: |
162159
docker push ghcr.io/${{ github.repository }}-windows:bootstrap-amd64-${{ steps.bootstrap-hash.outputs.HASH }}
@@ -166,18 +163,15 @@ jobs:
166163
# === BASE STAGE ===
167164
- name: Pull base cache
168165
continue-on-error: true
169-
uses: nick-fields/retry@v3
170-
with:
171-
timeout_minutes: 15
172-
max_attempts: 1
173-
shell: pwsh
174-
command: docker pull ghcr.io/${{ github.repository }}-windows:base-amd64-${{ steps.bun-sha.outputs.SHA }}
166+
timeout-minutes: 15
167+
shell: pwsh
168+
run: try { docker pull ghcr.io/${{ github.repository }}-windows:base-amd64-${{ steps.bun-sha.outputs.SHA }} } catch { }
175169

176170
- name: Build base stage
177171
uses: nick-fields/retry@v3
178172
with:
179173
timeout_minutes: 15
180-
max_attempts: 3
174+
max_attempts: 10
181175
shell: pwsh
182176
command: |
183177
docker build `
@@ -199,7 +193,7 @@ jobs:
199193
uses: nick-fields/retry@v3
200194
with:
201195
timeout_minutes: 15
202-
max_attempts: 3
196+
max_attempts: 5
203197
shell: pwsh
204198
command: |
205199
docker push ghcr.io/${{ github.repository }}-windows:base-amd64-${{ steps.bun-sha.outputs.SHA }}
@@ -211,18 +205,15 @@ jobs:
211205
# === PREBUILT STAGE ===
212206
- name: Pull prebuilt cache
213207
continue-on-error: true
214-
uses: nick-fields/retry@v3
215-
with:
216-
timeout_minutes: 15
217-
max_attempts: 1
218-
shell: pwsh
219-
command: docker pull ghcr.io/${{ github.repository }}-windows:prebuilt-amd64-${{ steps.bun-sha.outputs.SHA }}
208+
timeout-minutes: 15
209+
shell: pwsh
210+
run: try { docker pull ghcr.io/${{ github.repository }}-windows:prebuilt-amd64-${{ steps.bun-sha.outputs.SHA }} } catch { }
220211

221212
- name: Build prebuilt stage
222213
uses: nick-fields/retry@v3
223214
with:
224215
timeout_minutes: 80
225-
max_attempts: 3
216+
max_attempts: 5
226217
shell: pwsh
227218
command: |
228219
docker build `
@@ -247,7 +238,7 @@ jobs:
247238
uses: nick-fields/retry@v3
248239
with:
249240
timeout_minutes: 30
250-
max_attempts: 3
241+
max_attempts: 5
251242
shell: pwsh
252243
command: |
253244
docker push ghcr.io/${{ github.repository }}-windows:prebuilt-amd64-${{ steps.bun-sha.outputs.SHA }}
@@ -259,18 +250,15 @@ jobs:
259250
# === ARTIFACTS STAGE ===
260251
- name: Pull artifacts cache
261252
continue-on-error: true
262-
uses: nick-fields/retry@v3
263-
with:
264-
timeout_minutes: 15
265-
max_attempts: 1
266-
shell: pwsh
267-
command: docker pull ghcr.io/${{ github.repository }}-windows:artifacts-amd64-${{ steps.bun-sha.outputs.SHA }}
253+
timeout-minutes: 15
254+
shell: pwsh
255+
run: try { docker pull ghcr.io/${{ github.repository }}-windows:artifacts-amd64-${{ steps.bun-sha.outputs.SHA }} } catch { }
268256

269257
- name: Build artifacts stage
270258
uses: nick-fields/retry@v3
271259
with:
272260
timeout_minutes: 15
273-
max_attempts: 3
261+
max_attempts: 5
274262
shell: pwsh
275263
command: |
276264
docker build `
@@ -294,7 +282,7 @@ jobs:
294282
uses: nick-fields/retry@v3
295283
with:
296284
timeout_minutes: 15
297-
max_attempts: 3
285+
max_attempts: 5
298286
shell: pwsh
299287
command: |
300288
docker push ghcr.io/${{ github.repository }}-windows:artifacts-amd64-${{ steps.bun-sha.outputs.SHA }}
@@ -306,18 +294,15 @@ jobs:
306294
# === RUN STAGE ===
307295
- name: Pull run cache
308296
continue-on-error: true
309-
uses: nick-fields/retry@v3
310-
with:
311-
timeout_minutes: 15
312-
max_attempts: 1
313-
shell: pwsh
314-
command: docker pull ghcr.io/${{ github.repository }}-windows:run-amd64-${{ steps.bun-sha.outputs.SHA }}
297+
timeout-minutes: 15
298+
shell: pwsh
299+
run: try { docker pull ghcr.io/${{ github.repository }}-windows:run-amd64-${{ steps.bun-sha.outputs.SHA }} } catch { }
315300

316301
- name: Build run stage
317302
uses: nick-fields/retry@v3
318303
with:
319304
timeout_minutes: 15
320-
max_attempts: 3
305+
max_attempts: 5
321306
shell: pwsh
322307
command: |
323308
docker build `
@@ -342,7 +327,7 @@ jobs:
342327
uses: nick-fields/retry@v3
343328
with:
344329
timeout_minutes: 15
345-
max_attempts: 3
330+
max_attempts: 5
346331
shell: pwsh
347332
command: |
348333
docker push ghcr.io/${{ github.repository }}-windows:run-amd64-${{ steps.bun-sha.outputs.SHA }}

0 commit comments

Comments
 (0)