Skip to content

Commit 9344aa3

Browse files
authored
Updating Wretry, and adding Wretry to build cache (project-chip#27356)
1 parent d7407b2 commit 9344aa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+597
-417
lines changed

.github/workflows/bloat_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
image: connectedhomeip/chip-build:0.7.3
3737

3838
steps:
39-
- uses: Wandalen/wretry.action@v1.0.36
39+
- uses: Wandalen/wretry.action@v1.0.41
4040
name: Checkout
4141
with:
4242
action: actions/checkout@v3.5.2

.github/workflows/build.yaml

+60-40
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
env:
5454
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
5555
run: echo "$CONCURRENCY_CONTEXT"
56-
- uses: Wandalen/wretry.action@v1.0.36
56+
- uses: Wandalen/wretry.action@v1.0.41
5757
name: Checkout
5858
with:
5959
action: actions/checkout@v3.5.2
@@ -69,14 +69,18 @@ jobs:
6969
mkdir /tmp/cores || true
7070
sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
7171
72-
- name: Bootstrap cache
73-
uses: buildjet/cache@v3
74-
timeout-minutes: 10
72+
- uses: Wandalen/wretry.action@v1.0.41
73+
name: Bootstrap cache
74+
timeout-minutes: 20
7575
with:
76-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
77-
path: |
78-
.environment
79-
build_overrides/pigweed_environment.gni
76+
action: buildjet/cache@v3
77+
attempt_limit: 3
78+
attempt_delay: 2000
79+
with: |
80+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
81+
path: |
82+
.environment
83+
build_overrides/pigweed_environment.gni
8084
- name: Bootstrap
8185
timeout-minutes: 10
8286
run: bash scripts/bootstrap.sh
@@ -165,7 +169,7 @@ jobs:
165169
env:
166170
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
167171
run: echo "$CONCURRENCY_CONTEXT"
168-
- uses: Wandalen/wretry.action@v1.0.36
172+
- uses: Wandalen/wretry.action@v1.0.41
169173
name: Checkout
170174
with:
171175
action: actions/checkout@v3.5.2
@@ -186,14 +190,18 @@ jobs:
186190
mkdir /tmp/cores || true
187191
sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
188192
189-
- name: Bootstrap cache
190-
uses: buildjet/cache@v3
191-
timeout-minutes: 10
193+
- uses: Wandalen/wretry.action@v1.0.41
194+
name: Bootstrap cache
195+
timeout-minutes: 20
192196
with:
193-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
194-
path: |
195-
.environment
196-
build_overrides/pigweed_environment.gni
197+
action: buildjet/cache@v3
198+
attempt_limit: 3
199+
attempt_delay: 2000
200+
with: |
201+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
202+
path: |
203+
.environment
204+
build_overrides/pigweed_environment.gni
197205
- name: Bootstrap
198206
timeout-minutes: 10
199207
run: bash scripts/bootstrap.sh
@@ -337,7 +345,7 @@ jobs:
337345
env:
338346
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
339347
run: echo "$CONCURRENCY_CONTEXT"
340-
- uses: Wandalen/wretry.action@v1.0.36
348+
- uses: Wandalen/wretry.action@v1.0.41
341349
name: Checkout
342350
with:
343351
action: actions/checkout@v3.5.2
@@ -348,14 +356,18 @@ jobs:
348356
- name: Checkout submodules
349357
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
350358

351-
- name: Bootstrap cache
352-
uses: buildjet/cache@v3
353-
timeout-minutes: 10
359+
- uses: Wandalen/wretry.action@v1.0.41
360+
name: Bootstrap cache
361+
timeout-minutes: 20
354362
with:
355-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
356-
path: |
357-
.environment
358-
build_overrides/pigweed_environment.gni
363+
action: buildjet/cache@v3
364+
attempt_limit: 3
365+
attempt_delay: 2000
366+
with: |
367+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
368+
path: |
369+
.environment
370+
build_overrides/pigweed_environment.gni
359371
- name: Bootstrap
360372
timeout-minutes: 10
361373
run: bash scripts/bootstrap.sh
@@ -388,7 +400,7 @@ jobs:
388400
if: github.actor != 'restyled-io[bot]'
389401

390402
steps:
391-
- uses: Wandalen/wretry.action@v1.0.36
403+
- uses: Wandalen/wretry.action@v1.0.41
392404
name: Checkout
393405
with:
394406
action: actions/checkout@v3.5.2
@@ -407,14 +419,18 @@ jobs:
407419
run: |
408420
mkdir -p ~/Library/Logs/DiagnosticReports || true
409421
410-
- name: Bootstrap cache
411-
uses: buildjet/cache@v3
412-
timeout-minutes: 10
422+
- uses: Wandalen/wretry.action@v1.0.41
423+
name: Bootstrap cache
424+
timeout-minutes: 20
413425
with:
414-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
415-
path: |
416-
.environment
417-
build_overrides/pigweed_environment.gni
426+
action: buildjet/cache@v3
427+
attempt_limit: 3
428+
attempt_delay: 2000
429+
with: |
430+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
431+
path: |
432+
.environment
433+
build_overrides/pigweed_environment.gni
418434
- name: Bootstrap
419435
timeout-minutes: 25
420436
run: bash scripts/bootstrap.sh
@@ -496,7 +512,7 @@ jobs:
496512
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
497513

498514
steps:
499-
- uses: Wandalen/wretry.action@v1.0.36
515+
- uses: Wandalen/wretry.action@v1.0.41
500516
name: Checkout
501517
with:
502518
action: actions/checkout@v3.5.2
@@ -507,14 +523,18 @@ jobs:
507523
- name: Checkout submodules
508524
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
509525

510-
- name: Bootstrap cache
511-
uses: buildjet/cache@v3
512-
timeout-minutes: 10
526+
- uses: Wandalen/wretry.action@v1.0.41
527+
name: Bootstrap cache
528+
timeout-minutes: 20
513529
with:
514-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
515-
path: |
516-
.environment
517-
build_overrides/pigweed_environment.gni
530+
action: buildjet/cache@v3
531+
attempt_limit: 3
532+
attempt_delay: 2000
533+
with: |
534+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
535+
path: |
536+
.environment
537+
build_overrides/pigweed_environment.gni
518538
- name: Bootstrap
519539
timeout-minutes: 10
520540
run: bash scripts/bootstrap.sh

.github/workflows/chef.yaml

+36-24
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
options: --user root
4040

4141
steps:
42-
- uses: Wandalen/wretry.action@v1.0.36
42+
- uses: Wandalen/wretry.action@v1.0.41
4343
name: Checkout
4444
with:
4545
action: actions/checkout@v3.5.2
@@ -49,14 +49,18 @@ jobs:
4949
attempt_delay: 2000
5050
- name: Checkout submodules
5151
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
52-
- name: Bootstrap cache
53-
uses: buildjet/cache@v3
54-
timeout-minutes: 10
52+
- uses: Wandalen/wretry.action@v1.0.41
53+
name: Bootstrap cache
54+
timeout-minutes: 20
5555
with:
56-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
57-
path: |
58-
.environment
59-
build_overrides/pigweed_environment.gni
56+
action: buildjet/cache@v3
57+
attempt_limit: 3
58+
attempt_delay: 2000
59+
with: |
60+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
61+
path: |
62+
.environment
63+
build_overrides/pigweed_environment.gni
6064
- name: Bootstrap
6165
timeout-minutes: 10
6266
run: bash scripts/bootstrap.sh
@@ -75,7 +79,7 @@ jobs:
7579
options: --user root
7680

7781
steps:
78-
- uses: Wandalen/wretry.action@v1.0.36
82+
- uses: Wandalen/wretry.action@v1.0.41
7983
name: Checkout
8084
with:
8185
action: actions/checkout@v3.5.2
@@ -85,14 +89,18 @@ jobs:
8589
attempt_delay: 2000
8690
- name: Checkout submodules
8791
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform esp32
88-
- name: Bootstrap cache
89-
uses: buildjet/cache@v3
90-
timeout-minutes: 10
92+
- uses: Wandalen/wretry.action@v1.0.41
93+
name: Bootstrap cache
94+
timeout-minutes: 20
9195
with:
92-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
93-
path: |
94-
.environment
95-
build_overrides/pigweed_environment.gni
96+
action: buildjet/cache@v3
97+
attempt_limit: 3
98+
attempt_delay: 2000
99+
with: |
100+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
101+
path: |
102+
.environment
103+
build_overrides/pigweed_environment.gni
96104
- name: Bootstrap
97105
timeout-minutes: 10
98106
run: bash scripts/bootstrap.sh
@@ -111,7 +119,7 @@ jobs:
111119
options: --user root
112120

113121
steps:
114-
- uses: Wandalen/wretry.action@v1.0.36
122+
- uses: Wandalen/wretry.action@v1.0.41
115123
name: Checkout
116124
with:
117125
action: actions/checkout@v3.5.2
@@ -121,14 +129,18 @@ jobs:
121129
attempt_delay: 2000
122130
- name: Checkout submodules
123131
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform nrfconnect
124-
- name: Bootstrap cache
125-
uses: buildjet/cache@v3
126-
timeout-minutes: 10
132+
- uses: Wandalen/wretry.action@v1.0.41
133+
name: Bootstrap cache
134+
timeout-minutes: 20
127135
with:
128-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
129-
path: |
130-
.environment
131-
build_overrides/pigweed_environment.gni
136+
action: buildjet/cache@v3
137+
attempt_limit: 3
138+
attempt_delay: 2000
139+
with: |
140+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
141+
path: |
142+
.environment
143+
build_overrides/pigweed_environment.gni
132144
- name: Bootstrap
133145
timeout-minutes: 10
134146
run: bash scripts/bootstrap.sh

.github/workflows/cirque.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
# options: "--privileged"
5555

5656
steps:
57-
- uses: Wandalen/wretry.action@v1.0.36
57+
- uses: Wandalen/wretry.action@v1.0.41
5858
name: Checkout
5959
with:
6060
action: actions/checkout@v3.5.2

.github/workflows/darwin-tests.yaml

+12-8
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: macos-latest
4848

4949
steps:
50-
- uses: Wandalen/wretry.action@v1.0.36
50+
- uses: Wandalen/wretry.action@v1.0.41
5151
name: Checkout
5252
with:
5353
action: actions/checkout@v3.5.2
@@ -68,14 +68,18 @@ jobs:
6868
mkdir -p ~/Library/Logs/DiagnosticReports || true
6969
mkdir objdir-clone || true
7070
71-
- name: Bootstrap cache
72-
uses: buildjet/cache@v3
73-
timeout-minutes: 10
71+
- uses: Wandalen/wretry.action@v1.0.41
72+
name: Bootstrap cache
73+
timeout-minutes: 20
7474
with:
75-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
76-
path: |
77-
.environment
78-
build_overrides/pigweed_environment.gni
75+
action: buildjet/cache@v3
76+
attempt_limit: 3
77+
attempt_delay: 2000
78+
with: |
79+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
80+
path: |
81+
.environment
82+
build_overrides/pigweed_environment.gni
7983
- name: Bootstrap
8084
timeout-minutes: 25
8185
run: bash scripts/bootstrap.sh

.github/workflows/darwin.yaml

+12-8
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
runs-on: macos-latest
3939

4040
steps:
41-
- uses: Wandalen/wretry.action@v1.0.36
41+
- uses: Wandalen/wretry.action@v1.0.41
4242
name: Checkout
4343
with:
4444
action: actions/checkout@v3.5.2
@@ -51,14 +51,18 @@ jobs:
5151
- name: Setup Environment
5252
run: brew install python@3.9
5353

54-
- name: Bootstrap cache
55-
uses: buildjet/cache@v3
56-
timeout-minutes: 10
54+
- uses: Wandalen/wretry.action@v1.0.41
55+
name: Bootstrap cache
56+
timeout-minutes: 20
5757
with:
58-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
59-
path: |
60-
.environment
61-
build_overrides/pigweed_environment.gni
58+
action: buildjet/cache@v3
59+
attempt_limit: 3
60+
attempt_delay: 2000
61+
with: |
62+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
63+
path: |
64+
.environment
65+
build_overrides/pigweed_environment.gni
6266
- name: Bootstrap
6367
timeout-minutes: 25
6468
run: bash scripts/bootstrap.sh

.github/workflows/docker_img.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
# NOTE: vscode image consumes ~52 GB disk space but GitHub-hosted runners provide ~10 GB free disk space(https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)
6060
#- "-vscode"
6161
steps:
62-
- uses: Wandalen/wretry.action@v1.0.36
62+
- uses: Wandalen/wretry.action@v1.0.41
6363
name: Checkout
6464
with:
6565
action: actions/checkout@v3.5.2

0 commit comments

Comments
 (0)