Skip to content

Commit 0405259

Browse files
gojimmypidanielinux
authored andcommitted
Set max-parallel 12 to address runner concurrency saturation, cleanup
1 parent 74857d0 commit 0405259

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

.github/workflows/test-library.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,36 @@ on:
88

99
jobs:
1010
test-lib:
11+
# If jobs cancel, consider pinning to ubuntu-24.04
12+
# The ubuntu-latest alias can point to different images during migrations (and sometimes be extra busy),
13+
# while ubuntu-24.04 always targets the 24.04 poo
1114
runs-on: ubuntu-latest
15+
16+
# The timeout is run time after a runner starts, not time in queue
1217
timeout-minutes: 15
1318

19+
concurrency:
20+
# Avoid duplicate runs on the same ref
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
1424
strategy:
1525
fail-fast: false
26+
27+
# Limit concurrent jobs for scheduling problem on GitHub's hosted runner pool.
28+
max-parallel: 12
29+
1630
matrix:
17-
math: [SPMATH=1 WOLFBOOT_SMALL_STACK=0,
18-
SPMATH=1 WOLFBOOT_SMALL_STACK=1,
19-
SPMATHALL=1 WOLFBOOT_SMALL_STACK=0,
20-
SPMATHALL=1 WOLFBOOT_SMALL_STACK=1,
21-
SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=0,
22-
SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=1]
31+
math:
32+
- "SPMATH=1 WOLFBOOT_SMALL_STACK=0"
33+
- "SPMATH=1 WOLFBOOT_SMALL_STACK=1"
34+
- "SPMATHALL=1 WOLFBOOT_SMALL_STACK=0"
35+
- "SPMATHALL=1 WOLFBOOT_SMALL_STACK=1"
36+
- "SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=0"
37+
- "SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=1"
2338
asym: [ed25519, ecc256, ecc384, ecc521, rsa2048, rsa3072, rsa4096, ed448]
2439
hash: [sha256, sha384, sha3]
40+
2541
steps:
2642
- uses: actions/checkout@v4
2743
with:
@@ -35,14 +51,15 @@ jobs:
3551
env:
3652
ASYM: ${{ matrix.asym }}
3753
HASH: ${{ matrix.hash }}
54+
MATH: ${{ matrix.math }}
3855
run: |
3956
cp config/examples/library.config .config
4057
make keytools
41-
./tools/keytools/keygen --${{ matrix.asym }} -g wolfboot_signing_private_key.der
58+
./tools/keytools/keygen --${ASYM} -g wolfboot_signing_private_key.der
4259
echo "Test" > test.bin
43-
./tools/keytools/sign --${{ matrix.asym }} --${{ matrix.hash }} test.bin wolfboot_signing_private_key.der 1
60+
./tools/keytools/sign --${ASYM} --${HASH} test.bin wolfboot_signing_private_key.der 1
4461
# Convert asym and hash to upper case
45-
make test-lib SIGN=${ASYM^^} HASH=${HASH^^}
62+
make test-lib SIGN=${ASYM^^} HASH=${HASH^^} ${MATH}
4663
4764
- name: Run test-lib
4865
run: |

0 commit comments

Comments
 (0)