Skip to content

Commit 5364987

Browse files
woody-applepull[bot]
authored andcommitted
Checkouts are constantly timing out, trying some retries (#15883)
* Update build.yaml * Trying passing in token * Adding retries
1 parent 32b4ce9 commit 5364987

36 files changed

+727
-516
lines changed

.github/workflows/bloat_check.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222
# Don't cancel an already-running bloat check just because it took more
2323
# than 5 minutes to run and our cron job is trying to schedule a new one.
2424
cancel-in-progress: false
25-
25+
2626
jobs:
2727
pull_request_update:
2828
name: Report on pull requests
@@ -33,8 +33,15 @@ jobs:
3333
image: connectedhomeip/chip-build:0.5.56
3434

3535
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v2
36+
- uses: Wandalen/[email protected]
37+
name: Checkout
38+
with:
39+
action: actions/checkout@v3
40+
with: |
41+
submodules: true
42+
token: ${{ github.token }}
43+
attempt_limit: 3
44+
attempt_delay: 2000
3845

3946
- name: Report
4047
run: |

.github/workflows/build.yaml

+86-70
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,27 @@ jobs:
3535
image: connectedhomeip/chip-build:0.5.56
3636
volumes:
3737
- "/tmp/log_output:/tmp/test_logs"
38-
options:
39-
--sysctl "net.ipv6.conf.all.disable_ipv6=0
38+
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
4039
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
4140

4241
steps:
4342
- name: Dump GitHub context
4443
env:
45-
GITHUB_CONTEXT: ${{ toJSON(github) }}
44+
GITHUB_CONTEXT: ${{ toJSON(github) }}
4645
run: echo "$GITHUB_CONTEXT"
4746
- name: Dump Concurrency context
4847
env:
49-
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
48+
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
5049
run: echo "$CONCURRENCY_CONTEXT"
51-
- name: Checkout
52-
uses: actions/checkout@v2
50+
- uses: Wandalen/[email protected]
51+
name: Checkout
5352
with:
54-
submodules: true
55-
53+
action: actions/checkout@v3
54+
with: |
55+
submodules: true
56+
token: ${{ github.token }}
57+
attempt_limit: 3
58+
attempt_delay: 2000
5659
- name: Bootstrap
5760
timeout-minutes: 10
5861
run: scripts/build/gn_bootstrap.sh
@@ -62,8 +65,8 @@ jobs:
6265
with:
6366
name: bootstrap-logs
6467
path: |
65-
.environment/gn_out/.ninja_log
66-
.environment/pigweed-venv/*.log
68+
.environment/gn_out/.ninja_log
69+
.environment/pigweed-venv/*.log
6770
- name: Setup Build
6871
run: scripts/build/gn_gen.sh --args="chip_config_memory_debug_checks=true chip_config_memory_debug_dmalloc=true"
6972
- name: Run Build
@@ -97,7 +100,7 @@ jobs:
97100
run: scripts/run_in_build_env.sh "ninja -C ./out"
98101
build_linux:
99102
name: Build on Linux (fake, gcc_release, clang, mbedtls, simulated)
100-
timeout-minutes: 120
103+
timeout-minutes: 120
101104

102105
runs-on: ubuntu-latest
103106
if: github.actor != 'restyled-io[bot]'
@@ -106,23 +109,27 @@ jobs:
106109
image: connectedhomeip/chip-build:0.5.56
107110
volumes:
108111
- "/tmp/log_output:/tmp/test_logs"
109-
options:
110-
--sysctl "net.ipv6.conf.all.disable_ipv6=0
112+
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
111113
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
112114

113115
steps:
114116
- name: Dump GitHub context
115117
env:
116-
GITHUB_CONTEXT: ${{ toJSON(github) }}
118+
GITHUB_CONTEXT: ${{ toJSON(github) }}
117119
run: echo "$GITHUB_CONTEXT"
118120
- name: Dump Concurrency context
119121
env:
120-
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
122+
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
121123
run: echo "$CONCURRENCY_CONTEXT"
122-
- name: Checkout
123-
uses: actions/checkout@v2
124+
- uses: Wandalen/[email protected]
125+
name: Checkout
124126
with:
125-
submodules: true
127+
action: actions/checkout@v3
128+
with: |
129+
submodules: true
130+
token: ${{ github.token }}
131+
attempt_limit: 3
132+
attempt_delay: 2000
126133
# - name: Initialize CodeQL
127134
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
128135
# uses: github/codeql-action/init@v1
@@ -137,16 +144,16 @@ jobs:
137144
with:
138145
name: bootstrap-logs
139146
path: |
140-
.environment/gn_out/.ninja_log
141-
.environment/pigweed-venv/*.log
147+
.environment/gn_out/.ninja_log
148+
.environment/pigweed-venv/*.log
142149
- name: Setup and Build Simulated Device
143150
timeout-minutes: 20
144151
run: |
145-
BUILD_TYPE=simulated
146-
GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
147-
CHIP_ROOT_PATH=examples/placeholder/linux
148-
CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
149-
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
152+
BUILD_TYPE=simulated
153+
GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
154+
CHIP_ROOT_PATH=examples/placeholder/linux
155+
CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
156+
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
150157
- name: Setup Build, Run Build and Run Tests
151158
timeout-minutes: 90
152159
run: |
@@ -167,39 +174,39 @@ jobs:
167174
env:
168175
LSAN_OPTIONS: detect_leaks=0
169176
run: |
170-
# for BUILD_TYPE in asan msan tsan ubsan; do
171-
for BUILD_TYPE in asan tsan ubsan; do
172-
case $BUILD_TYPE in
173-
"asan") GN_ARGS='is_clang=true is_asan=true';;
174-
"msan") GN_ARGS='is_clang=true is_msan=true';;
175-
"tsan") GN_ARGS='is_clang=true is_tsan=true chip_enable_wifi=false';;
176-
"ubsan") GN_ARGS='is_clang=true is_ubsan=true';;
177-
esac
177+
# for BUILD_TYPE in asan msan tsan ubsan; do
178+
for BUILD_TYPE in asan tsan ubsan; do
179+
case $BUILD_TYPE in
180+
"asan") GN_ARGS='is_clang=true is_asan=true';;
181+
"msan") GN_ARGS='is_clang=true is_msan=true';;
182+
"tsan") GN_ARGS='is_clang=true is_tsan=true chip_enable_wifi=false';;
183+
"ubsan") GN_ARGS='is_clang=true is_ubsan=true';;
184+
esac
178185
179-
scripts/build/gn_gen.sh --args="$GN_ARGS"
180-
scripts/tests/gn_tests.sh
181-
done
186+
scripts/build/gn_gen.sh --args="$GN_ARGS"
187+
scripts/tests/gn_tests.sh
188+
done
182189
- name: Build using build_examples.py
183190
timeout-minutes: 40
184191
run: |
185-
./scripts/run_in_build_env.sh \
186-
"./scripts/build/build_examples.py --no-log-timestamps \
187-
--target linux-x64-all-clusters \
188-
--target linux-x64-all-clusters-ipv6only \
189-
--target linux-x64-chip-tool \
190-
--target linux-x64-chip-tool-ipv6only \
191-
--target linux-x64-minmdns-ipv6only \
192-
--target linux-x64-rpc-console \
193-
--target linux-x64-thermostat-ipv6only \
194-
--target linux-x64-tv-app-ipv6only \
195-
build \
196-
"
192+
./scripts/run_in_build_env.sh \
193+
"./scripts/build/build_examples.py --no-log-timestamps \
194+
--target linux-x64-all-clusters \
195+
--target linux-x64-all-clusters-ipv6only \
196+
--target linux-x64-chip-tool \
197+
--target linux-x64-chip-tool-ipv6only \
198+
--target linux-x64-minmdns-ipv6only \
199+
--target linux-x64-rpc-console \
200+
--target linux-x64-thermostat-ipv6only \
201+
--target linux-x64-tv-app-ipv6only \
202+
build \
203+
"
197204
198205
- name: Run fake linux tests
199206
timeout-minutes: 15
200207
run: |
201-
./scripts/run_in_build_env.sh \
202-
"./scripts/build/build_examples.py --no-log-timestamps --target linux-fake-tests build"
208+
./scripts/run_in_build_env.sh \
209+
"./scripts/build/build_examples.py --no-log-timestamps --target linux-fake-tests build"
203210
204211
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
205212
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
@@ -229,32 +236,36 @@ jobs:
229236
image: connectedhomeip/chip-build:0.5.56
230237
volumes:
231238
- "/tmp/log_output:/tmp/test_logs"
232-
options:
233-
--sysctl "net.ipv6.conf.all.disable_ipv6=0
239+
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
234240
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
235241

236242
steps:
237243
- name: Dump GitHub context
238244
env:
239-
GITHUB_CONTEXT: ${{ toJSON(github) }}
245+
GITHUB_CONTEXT: ${{ toJSON(github) }}
240246
run: echo "$GITHUB_CONTEXT"
241247
- name: Dump Concurrency context
242248
env:
243-
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
249+
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
244250
run: echo "$CONCURRENCY_CONTEXT"
245-
- name: Checkout
246-
uses: actions/checkout@v2
251+
- uses: Wandalen/[email protected]
252+
name: Checkout
247253
with:
248-
submodules: true
254+
action: actions/checkout@v3
255+
with: |
256+
submodules: true
257+
token: ${{ github.token }}
258+
attempt_limit: 3
259+
attempt_delay: 2000
249260
- name: Bootstrap
250261
timeout-minutes: 10
251262
run: scripts/build/gn_bootstrap.sh
252263
- name: Setup Build, Run Build and Run Tests
253264
timeout-minutes: 50
254265
run: |
255-
scripts/build/gn_gen.sh --args="enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false"
256-
scripts/run_in_build_env.sh "ninja -C ./out"
257-
scripts/tests/gn_tests.sh
266+
scripts/build/gn_gen.sh --args="enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false"
267+
scripts/run_in_build_env.sh "ninja -C ./out"
268+
scripts/tests/gn_tests.sh
258269
- name: Run Python library specific unit tests
259270
timeout-minutes: 5
260271
run: |
@@ -267,10 +278,15 @@ jobs:
267278
if: github.actor != 'restyled-io[bot]'
268279

269280
steps:
270-
- name: Checkout
271-
uses: actions/checkout@v2
281+
- uses: Wandalen/[email protected]
282+
name: Checkout
272283
with:
273-
submodules: true
284+
action: actions/checkout@v3
285+
with: |
286+
submodules: true
287+
token: ${{ github.token }}
288+
attempt_limit: 3
289+
attempt_delay: 2000
274290
#- name: Initialize CodeQL
275291
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
276292
# uses: github/codeql-action/init@v1
@@ -298,16 +314,16 @@ jobs:
298314
with:
299315
name: bootstrap-logs
300316
path: |
301-
.environment/gn_out/.ninja_log
302-
.environment/pigweed-venv/*.log
317+
.environment/gn_out/.ninja_log
318+
.environment/pigweed-venv/*.log
303319
- name: Setup and Build Simulated Device
304320
timeout-minutes: 20
305321
run: |
306-
BUILD_TYPE=simulated
307-
GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
308-
CHIP_ROOT_PATH=examples/placeholder/linux
309-
CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
310-
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
322+
BUILD_TYPE=simulated
323+
GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
324+
CHIP_ROOT_PATH=examples/placeholder/linux
325+
CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
326+
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
311327
- name: Setup Build, Run Build and Run Tests
312328
timeout-minutes: 120
313329
# Just go ahead and do the "all" build; on Darwin that's fairly

.github/workflows/cirque.yaml

+26-22
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
name: Cirque
1616

1717
on:
18-
push:
19-
pull_request:
20-
workflow_dispatch:
18+
push:
19+
pull_request:
20+
workflow_dispatch:
2121

2222
concurrency:
2323
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
@@ -27,36 +27,41 @@ jobs:
2727
cirque:
2828
name: Cirque
2929
timeout-minutes: 60
30-
30+
3131
env:
3232
DOCKER_RUN_VERSION: 0.5.56
3333
GITHUB_CACHE_PATH: /tmp/cirque-cache/
3434

3535
runs-on: ubuntu-latest
3636
if: github.actor != 'restyled-io[bot]'
3737

38-
# need to run with privilege, which isn't supported by job.XXX.contaner
39-
# https://github.com/actions/container-action/issues/2
40-
# container:
41-
# image: connectedhomeip/chip-build-cirque:0.5.56
42-
# volumes:
43-
# - "/tmp:/tmp"
44-
# - "/dev/pts:/dev/pts"
45-
# env:
46-
# LOG_DIR: /tmp/cirque_test_output/
47-
# CLEANUP_DOCKER_FOR_CI: 1
48-
# options: "--privileged"
38+
# need to run with privilege, which isn't supported by job.XXX.contaner
39+
# https://github.com/actions/container-action/issues/2
40+
# container:
41+
# image: connectedhomeip/chip-build-cirque:0.5.56
42+
# volumes:
43+
# - "/tmp:/tmp"
44+
# - "/dev/pts:/dev/pts"
45+
# env:
46+
# LOG_DIR: /tmp/cirque_test_output/
47+
# CLEANUP_DOCKER_FOR_CI: 1
48+
# options: "--privileged"
4949

5050
steps:
51-
- name: Checkout
52-
uses: actions/checkout@v2
51+
- uses: Wandalen/[email protected]
52+
name: Checkout
5353
with:
54-
submodules: true
54+
action: actions/checkout@v3
55+
with: |
56+
submodules: true
57+
token: ${{ github.token }}
58+
attempt_limit: 3
59+
attempt_delay: 2000
5560

5661
- name: Get cirque cache key
5762
id: cirque-key
5863
run: |
59-
echo "::set-output name=val::$(scripts/tests/cirque_tests.sh cachekeyhash)"
64+
echo "::set-output name=val::$(scripts/tests/cirque_tests.sh cachekeyhash)"
6065
6166
- name: Cache
6267
uses: actions/cache@v2
@@ -66,7 +71,7 @@ jobs:
6671
path: ${{ env.GITHUB_CACHE_PATH }}
6772
key: ${{ runner.os }}-cirque-${{ steps.cirque-key.outputs.val }}
6873
restore-keys: |
69-
${{ runner.os }}-cirque-
74+
${{ runner.os }}-cirque-
7075
7176
- name: Bootstrap
7277
timeout-minutes: 10
@@ -122,6 +127,5 @@ jobs:
122127
uses: actions/upload-artifact@v2
123128
if: ${{ always() }} && ${{ !env.ACT }}
124129
with:
125-
name:
126-
cirque_log-${{steps.outsuffix.outputs.value}}-logs
130+
name: cirque_log-${{steps.outsuffix.outputs.value}}-logs
127131
path: /tmp/cirque_test_output/

0 commit comments

Comments
 (0)