Skip to content

Commit 8428dbf

Browse files
committed
CI(workflows): Increase job timeouts and improve nightly workflow control
1 parent 61f4e9a commit 8428dbf

8 files changed

Lines changed: 55 additions & 31 deletions

File tree

.github/workflows/buildmgr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
5858
needs: [ setup, matrix_prep ]
5959
runs-on: ${{ matrix.runs_on }}
60-
timeout-minutes: 15
60+
timeout-minutes: 20
6161
strategy:
6262
fail-fast: true
6363
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -121,7 +121,7 @@ jobs:
121121
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/buildmgr/')) ||
122122
((github.event.schedule != '') && (!github.event.repository.private))
123123
runs-on: ubuntu-22.04
124-
timeout-minutes: 15
124+
timeout-minutes: 20
125125
permissions:
126126
contents: write
127127
steps:
@@ -222,7 +222,7 @@ jobs:
222222
needs: [ setup, build, docs ]
223223
# Debian package generation in ubuntu 22.04 produces incompatible metadata
224224
runs-on: ubuntu-22.04
225-
timeout-minutes: 15
225+
timeout-minutes: 20
226226
permissions:
227227
contents: write
228228
steps:
@@ -344,7 +344,7 @@ jobs:
344344

345345
test:
346346
needs: [ setup, matrix_prep, create_installer ]
347-
timeout-minutes: 15
347+
timeout-minutes: 20
348348
runs-on: ${{ matrix.runs_on }}
349349
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
350350
env:
@@ -512,7 +512,7 @@ jobs:
512512
GCC_TOOLCHAIN_10_3_1: ${{ github.workspace }}/${{ matrix.toolchain_root }}
513513
AC6_TOOLCHAIN_6_18_0: ${{ github.workspace }}/${{ matrix.toolchain_root }}
514514
runs-on: ubuntu-22.04
515-
timeout-minutes: 15
515+
timeout-minutes: 20
516516

517517
steps:
518518
- name: Harden Runner
@@ -630,7 +630,7 @@ jobs:
630630

631631
sanity-check-native:
632632
needs: [ matrix_prep, create_installer ]
633-
timeout-minutes: 15
633+
timeout-minutes: 20
634634
runs-on: ${{ matrix.runs_on }}
635635
name: sanity check native (${{ matrix.runs_on }}, ${{ matrix.arch }})
636636
env:
@@ -674,7 +674,7 @@ jobs:
674674
675675
sanity-check-docker:
676676
needs: create_installer
677-
timeout-minutes: 15
677+
timeout-minutes: 20
678678
runs-on: ubuntu-22.04
679679
container:
680680
image: ${{ matrix.image }}

.github/workflows/nightly.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,37 @@ jobs:
1313
if: github.repository == 'Open-CMSIS-Pack/devtools'
1414
uses: ./.github/workflows/buildmgr.yml
1515
secrets: inherit
16+
1617
packchk:
17-
needs: [buildmgr]
18+
if: github.repository == 'Open-CMSIS-Pack/devtools'
1819
uses: ./.github/workflows/packchk.yml
1920
secrets: inherit
21+
2022
packgen:
21-
needs: [packchk]
23+
if: github.repository == 'Open-CMSIS-Pack/devtools'
2224
uses: ./.github/workflows/packgen.yml
2325
secrets: inherit
26+
2427
projmgr:
25-
needs: [packgen]
28+
if: github.repository == 'Open-CMSIS-Pack/devtools'
2629
uses: ./.github/workflows/projmgr.yml
2730
secrets: inherit
31+
2832
svdconv:
29-
needs: [projmgr]
33+
if: github.repository == 'Open-CMSIS-Pack/devtools'
3034
uses: ./.github/workflows/svdconv.yml
3135
secrets: inherit
36+
3237
test_libs:
33-
needs: [svdconv]
38+
if: github.repository == 'Open-CMSIS-Pack/devtools'
3439
uses: ./.github/workflows/test_libs.yml
40+
secrets: inherit
41+
3542
coverage:
43+
if: github.repository == 'Open-CMSIS-Pack/devtools'
3644
runs-on: ubuntu-22.04
3745
needs: [ buildmgr, packchk, packgen, projmgr, svdconv, test_libs ]
46+
3847
steps:
3948
- name: Harden Runner
4049
if: ${{ !github.event.repository.private }}
@@ -45,8 +54,7 @@ jobs:
4554
- name: Install dependencies
4655
run: |
4756
sudo apt-get update
48-
sudo apt-get install \
49-
lcov
57+
sudo apt-get install -y --no-install-recommends lcov
5058
5159
- name: Download coverage report
5260
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -57,7 +65,13 @@ jobs:
5765

5866
- name: Consolidate coverage data
5967
run: |
60-
lcov --rc lcov_branch_coverage=1 --add-tracefile coverage_packchk.info -a coverage_packgen.info -a coverage_projmgr.info -a coverage_buildmgr.info -a coverage_svdconv.info -o merged_coverage.info
68+
lcov --rc lcov_branch_coverage=1 \
69+
--add-tracefile coverage_packchk.info \
70+
-a coverage_packgen.info \
71+
-a coverage_projmgr.info \
72+
-a coverage_buildmgr.info \
73+
-a coverage_svdconv.info \
74+
-o merged_coverage.info
6175
working-directory: coverage/
6276

6377
- name: Archive merged coverage report

.github/workflows/packchk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
needs: [ setup, matrix_prep ]
6363
runs-on: ${{ matrix.runs_on }}
6464
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
65-
timeout-minutes: 15
65+
timeout-minutes: 20
6666
strategy:
6767
fail-fast: true
6868
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -153,7 +153,7 @@ jobs:
153153
needs: [ setup, matrix_prep ]
154154
runs-on: ${{ matrix.runs_on }}
155155
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
156-
timeout-minutes: 15
156+
timeout-minutes: 20
157157
strategy:
158158
fail-fast: false
159159
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -226,7 +226,7 @@ jobs:
226226
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
227227
lcov_installer: lcov-1.15.tar.gz
228228
runs-on: ubuntu-22.04
229-
timeout-minutes: 15
229+
timeout-minutes: 20
230230
steps:
231231
- name: Harden Runner
232232
if: ${{ !github.event.repository.private }}
@@ -337,7 +337,7 @@ jobs:
337337
startsWith(github.ref, 'refs/tags/tools/packchk/')
338338
needs: [ build, test, coverage ]
339339
runs-on: ubuntu-22.04
340-
timeout-minutes: 15
340+
timeout-minutes: 20
341341
permissions:
342342
contents: write
343343
steps:

.github/workflows/packgen.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
needs: [ setup, matrix_prep ]
5858
runs-on: ${{ matrix.runs_on }}
5959
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
60-
timeout-minutes: 15
60+
timeout-minutes: 20
6161
strategy:
6262
fail-fast: true
6363
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -119,7 +119,7 @@ jobs:
119119
startsWith(github.ref, 'refs/tags/tools/packgen/')
120120
needs: [ build, unittest ]
121121
runs-on: ubuntu-22.04
122-
timeout-minutes: 15
122+
timeout-minutes: 20
123123
permissions:
124124
contents: write
125125
steps:
@@ -187,7 +187,7 @@ jobs:
187187
needs: [ setup, matrix_prep ]
188188
name: unittest (${{ matrix.runs_on }}, ${{ matrix.arch }})
189189
runs-on: ${{ matrix.runs_on }}
190-
timeout-minutes: 15
190+
timeout-minutes: 20
191191
strategy:
192192
fail-fast: true
193193
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -237,7 +237,7 @@ jobs:
237237
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
238238
lcov_installer: lcov-1.15.tar.gz
239239
runs-on: ubuntu-22.04
240-
timeout-minutes: 15
240+
timeout-minutes: 20
241241
steps:
242242
- name: Harden Runner
243243
if: ${{ !github.event.repository.private }}

.github/workflows/projmgr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
startsWith(github.ref, 'refs/tags/tools/projmgr/')
209209
needs: [ build, build-swig, unittest, coverage ]
210210
runs-on: ubuntu-22.04
211-
timeout-minutes: 15
211+
timeout-minutes: 20
212212
permissions:
213213
contents: write
214214

@@ -369,7 +369,7 @@ jobs:
369369
needs: [ setup, matrix_prep ]
370370
name: unittest (${{ matrix.runs_on }}, ${{ matrix.arch }})
371371
runs-on: ${{ matrix.runs_on }}
372-
timeout-minutes: 15
372+
timeout-minutes: 20
373373
strategy:
374374
fail-fast: false
375375
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -429,7 +429,7 @@ jobs:
429429
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
430430
lcov_installer: lcov-1.15.tar.gz
431431
runs-on: ubuntu-22.04
432-
timeout-minutes: 15
432+
timeout-minutes: 20
433433
steps:
434434
- name: Harden Runner
435435
if: ${{ !github.event.repository.private }}

.github/workflows/svdconv.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
needs: [ setup, matrix_prep ]
5555
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
5656
runs-on: ${{ matrix.runs_on }}
57-
timeout-minutes: 15
57+
timeout-minutes: 20
5858
strategy:
5959
fail-fast: true
6060
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -143,7 +143,7 @@ jobs:
143143
needs: [ setup, matrix_prep ]
144144
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
145145
runs-on: ${{ matrix.runs_on }}
146-
timeout-minutes: 15
146+
timeout-minutes: 20
147147
strategy:
148148
fail-fast: false
149149
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
@@ -216,7 +216,7 @@ jobs:
216216
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
217217
lcov_installer: lcov-1.15.tar.gz
218218
runs-on: ubuntu-22.04
219-
timeout-minutes: 15
219+
timeout-minutes: 20
220220
steps:
221221
- name: Harden Runner
222222
if: ${{ !github.event.repository.private }}
@@ -335,7 +335,7 @@ jobs:
335335
startsWith(github.ref, 'refs/tags/tools/svdconv/')
336336
needs: [ build, test, coverage ]
337337
runs-on: ubuntu-22.04
338-
timeout-minutes: 15
338+
timeout-minutes: 20
339339
permissions:
340340
contents: write
341341
steps:

.github/workflows/test_libs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ${{ matrix.runs_on }}
4747
name: test_libs (${{ matrix.runs_on }}, ${{ matrix.arch }})
4848
needs: [ setup, matrix_prep ]
49-
timeout-minutes: 15
49+
timeout-minutes: 20
5050
strategy:
5151
fail-fast: false
5252
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}

codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,34 @@ coverage:
55
patch: false
66
project:
77
default: false
8+
89
packchk-cov:
910
target: auto
11+
threshold: 0.1%
1012
flags:
1113
- packchk-cov
14+
1215
projmgr-cov:
1316
target: auto
17+
threshold: 0.1%
1418
flags:
1519
- projmgr-cov
20+
1621
packgen-cov:
1722
target: auto
23+
threshold: 0.1%
1824
flags:
1925
- packgen-cov
26+
2027
buildmgr-cov:
2128
target: auto
29+
threshold: 0.1%
2230
flags:
2331
- buildmgr-cov
32+
2433
svdconv-cov:
2534
target: auto
35+
threshold: 0.1%
2636
flags:
2737
- svdconv-cov
2838

0 commit comments

Comments
 (0)