Skip to content

Commit ab9769a

Browse files
🌱 Fix protoc build failures
- Fix protoc build failures by retries Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
1 parent 99ecdea commit ab9769a

File tree

1 file changed

+102
-17
lines changed

1 file changed

+102
-17
lines changed

.github/workflows/main.yml

Lines changed: 102 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ jobs:
104104
with:
105105
go-version: '^1.17'
106106
- name: generate mocks
107-
run: |
107+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
108+
with:
109+
max_attempts: 3
110+
retry_on: error
111+
timeout_minutes: 30
112+
command: |
108113
go env -w GOFLAGS=-mod=mod
109114
make install
110115
make generate-mocks
@@ -144,7 +149,12 @@ jobs:
144149
with:
145150
go-version: '^1.17'
146151
- name: generate docs
147-
run: |
152+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
153+
with:
154+
max_attempts: 3
155+
retry_on: error
156+
timeout_minutes: 30
157+
command: |
148158
go env -w GOFLAGS=-mod=mod
149159
make generate-docs
150160
build-proto:
@@ -183,7 +193,12 @@ jobs:
183193
with:
184194
go-version: '^1.17'
185195
- name: build-proto
186-
run: |
196+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
197+
with:
198+
max_attempts: 3
199+
retry_on: error
200+
timeout_minutes: 30
201+
command: |
187202
go env -w GOFLAGS=-mod=mod
188203
make build-proto
189204
build-scorecard:
@@ -223,7 +238,12 @@ jobs:
223238
with:
224239
go-version: '^1.17'
225240
- name: Run build
226-
run: |
241+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
242+
with:
243+
max_attempts: 3
244+
retry_on: error
245+
timeout_minutes: 30
246+
command: |
227247
go env -w GOFLAGS=-mod=mod
228248
make build-scorecard
229249
build-controller:
@@ -263,7 +283,12 @@ jobs:
263283
with:
264284
go-version: '^1.17'
265285
- name: build cron
266-
run: |
286+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
287+
with:
288+
max_attempts: 3
289+
retry_on: error
290+
timeout_minutes: 30
291+
command: |
267292
go env -w GOFLAGS=-mod=mod
268293
make build-controller
269294
build-worker:
@@ -303,7 +328,12 @@ jobs:
303328
with:
304329
go-version: '^1.17'
305330
- name: build worker
306-
run: |
331+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
332+
with:
333+
max_attempts: 3
334+
retry_on: error
335+
timeout_minutes: 30
336+
command: |
307337
go env -w GOFLAGS=-mod=mod
308338
make build-worker
309339
build-cii-worker:
@@ -343,7 +373,12 @@ jobs:
343373
with:
344374
go-version: '^1.17'
345375
- name: build cii-worker
346-
run: |
376+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
377+
with:
378+
max_attempts: 3
379+
retry_on: error
380+
timeout_minutes: 30
381+
command: |
347382
go env -w GOFLAGS=-mod=mod
348383
make build-cii-worker
349384
build-shuffler:
@@ -383,7 +418,12 @@ jobs:
383418
with:
384419
go-version: '^1.17'
385420
- name: build shuffler
386-
run: |
421+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
422+
with:
423+
max_attempts: 3
424+
retry_on: error
425+
timeout_minutes: 30
426+
command: |
387427
go env -w GOFLAGS=-mod=mod
388428
make build-shuffler
389429
build-bq-transfer:
@@ -423,7 +463,12 @@ jobs:
423463
with:
424464
go-version: '^1.17'
425465
- name: build bq transfer
426-
run: |
466+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
467+
with:
468+
max_attempts: 3
469+
retry_on: error
470+
timeout_minutes: 30
471+
command: |
427472
go env -w GOFLAGS=-mod=mod
428473
make build-bq-transfer
429474
build-github-server:
@@ -463,7 +508,12 @@ jobs:
463508
with:
464509
go-version: '^1.17'
465510
- name: build bq transfer
466-
run: |
511+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
512+
with:
513+
max_attempts: 3
514+
retry_on: error
515+
timeout_minutes: 30
516+
command: |
467517
go env -w GOFLAGS=-mod=mod
468518
make build-github-server
469519
build-webhook:
@@ -503,7 +553,12 @@ jobs:
503553
with:
504554
go-version: '^1.17'
505555
- name: build webhook
506-
run: |
556+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
557+
with:
558+
max_attempts: 3
559+
retry_on: error
560+
timeout_minutes: 30
561+
command: |
507562
go env -w GOFLAGS=-mod=mod
508563
make build-webhook
509564
build-add-script:
@@ -543,7 +598,12 @@ jobs:
543598
with:
544599
go-version: '^1.17'
545600
- name: build-add-script
546-
run: |
601+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
602+
with:
603+
max_attempts: 3
604+
retry_on: error
605+
timeout_minutes: 30
606+
command: |
547607
go env -w GOFLAGS=-mod=mod
548608
make build-add-script
549609
build-validate-script:
@@ -583,7 +643,12 @@ jobs:
583643
with:
584644
go-version: '^1.17'
585645
- name: build-validate-script
586-
run: |
646+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
647+
with:
648+
max_attempts: 3
649+
retry_on: error
650+
timeout_minutes: 30
651+
command: |
587652
go env -w GOFLAGS=-mod=mod
588653
make build-validate-script
589654
build-update-script:
@@ -623,7 +688,12 @@ jobs:
623688
with:
624689
go-version: '^1.17'
625690
- name: build-validate-script
626-
run: |
691+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
692+
with:
693+
max_attempts: 3
694+
retry_on: error
695+
timeout_minutes: 30
696+
command: |
627697
go env -w GOFLAGS=-mod=mod
628698
make build-update-script
629699
check-linter:
@@ -697,7 +767,12 @@ jobs:
697767
with:
698768
go-version: '^1.17'
699769
- name: Run build
700-
run: |
770+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
771+
with:
772+
max_attempts: 3
773+
retry_on: error
774+
timeout_minutes: 30
775+
command: |
701776
go env -w GOFLAGS=-mod=mod
702777
make validate-docs
703778
add-projects:
@@ -736,7 +811,12 @@ jobs:
736811
with:
737812
go-version: '^1.17'
738813
- name: Run build
739-
run: |
814+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
815+
with:
816+
max_attempts: 3
817+
retry_on: error
818+
timeout_minutes: 30
819+
command: |
740820
go env -w GOFLAGS=-mod=mod
741821
make add-projects
742822
validate-projects:
@@ -771,7 +851,12 @@ jobs:
771851
with:
772852
go-version: '^1.17'
773853
- name: Run build
774-
run: |
854+
uses: nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
855+
with:
856+
max_attempts: 3
857+
retry_on: error
858+
timeout_minutes: 30
859+
command: |
775860
go env -w GOFLAGS=-mod=mod
776861
make validate-projects
777862
license-check:

0 commit comments

Comments
 (0)