Skip to content

Commit 72d99d0

Browse files
committed
Add timeouts to action tests
1 parent 56fc5bb commit 72d99d0

11 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/async.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
]
1515
name: make check
1616
runs-on: ubuntu-latest
17+
# This should be a safe limit for the tests to run.
18+
timeout-minutes: 6
1719
steps:
1820
- uses: actions/checkout@v3
1921
name: Checkout wolfSSL

.github/workflows/docker-Espressif.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
espressif_latest:
77
name: latest Docker container
88
runs-on: ubuntu-latest
9+
# This should be a safe limit for the tests to run.
10+
timeout-minutes: 12
911
container:
1012
image: espressif/idf:latest
1113
steps:

.github/workflows/docker-OpenWrt.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build_library:
1010
name: Compile libwolfssl.so
1111
runs-on: ubuntu-latest
12+
# This should be a safe limit for the tests to run.
13+
timeout-minutes: 4
1214
container:
1315
image: alpine:latest
1416
steps:
@@ -26,6 +28,8 @@ jobs:
2628
compile_container:
2729
name: Compile container
2830
runs-on: ubuntu-latest
31+
# This should be a safe limit for the tests to run.
32+
timeout-minutes: 2
2933
needs: build_library
3034
strategy:
3135
fail-fast: false

.github/workflows/hitch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
name: Build wolfSSL
99
# Just to keep it the same as the testing target
1010
runs-on: ubuntu-latest
11+
# This should be a safe limit for the tests to run.
12+
timeout-minutes: 4
1113
steps:
1214
- name: Build wolfSSL
1315
uses: wolfSSL/actions-build-autotools-project@v1
@@ -34,6 +36,8 @@ jobs:
3436
test13-r82.sh test15-proxy-v2-npn.sh test39-client-cert-proxy.sh
3537
name: ${{ matrix.ref }}
3638
runs-on: ubuntu-latest
39+
# This should be a safe limit for the tests to run.
40+
timeout-minutes: 4
3741
needs: build_wolfssl
3842
steps:
3943
- name: Download lib

.github/workflows/hostap.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
name: Build wolfSSL
1616
# Just to keep it the same as the testing target
1717
runs-on: ubuntu-20.04
18+
# This should be a safe limit for the tests to run.
19+
timeout-minutes: 4
1820
steps:
1921
# No way to view the full strategy in the browser (really weird)
2022
- name: Print strategy
@@ -90,6 +92,8 @@ jobs:
9092
name: hwsim test
9193
# For openssl 1.1
9294
runs-on: ubuntu-20.04
95+
# This should be a safe limit for the tests to run.
96+
timeout-minutes: 12
9397
needs: build_wolfssl
9498
steps:
9599
# No way to view the full strategy in the browser (really weird)

.github/workflows/multi-compiler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- CC: clang-14
2626
CXX: clang++-14
2727
runs-on: ubuntu-latest
28+
# This should be a safe limit for the tests to run.
29+
timeout-minutes: 2
2830
steps:
2931
- uses: actions/checkout@v3
3032
- name: Build

.github/workflows/nginx.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
name: Build wolfSSL
1010
# Just to keep it the same as the testing target
1111
runs-on: ubuntu-latest
12+
# This should be a safe limit for the tests to run.
13+
timeout-minutes: 4
1214
steps:
1315
- if: ${{ runner.debug }}
1416
name: Enable wolfSSL debug logging
@@ -66,6 +68,8 @@ jobs:
6668
stream_proxy_ssl_verify.t stream_ssl_alpn.t
6769
name: ${{ matrix.ref }}
6870
runs-on: ubuntu-latest
71+
# This should be a safe limit for the tests to run.
72+
timeout-minutes: 6
6973
needs: build_wolfssl
7074
steps:
7175
- name: Download lib

.github/workflows/openvpn.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
name: Build wolfSSL
99
# Just to keep it the same as the testing target
1010
runs-on: ubuntu-latest
11+
# This should be a safe limit for the tests to run.
12+
timeout-minutes: 4
1113
steps:
1214
- name: Build wolfSSL
1315
uses: wolfSSL/actions-build-autotools-project@v1
@@ -31,6 +33,8 @@ jobs:
3133
ref: [ master, release/2.6, v2.6.0 ]
3234
name: ${{ matrix.ref }}
3335
runs-on: ubuntu-latest
36+
# This should be a safe limit for the tests to run.
37+
timeout-minutes: 6
3438
needs: build_wolfssl
3539
steps:
3640
- name: Download lib

.github/workflows/os-check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
]
2323
name: make check
2424
runs-on: ${{ matrix.os }}
25+
# This should be a safe limit for the tests to run.
26+
timeout-minutes: 8
2527
steps:
2628
- name: Build and test wolfSSL
2729
uses: wolfSSL/actions-build-autotools-project@v1
@@ -40,6 +42,8 @@ jobs:
4042
]
4143
name: make user_setting.h
4244
runs-on: ${{ matrix.os }}
45+
# This should be a safe limit for the tests to run.
46+
timeout-minutes: 6
4347
steps:
4448
- name: Build and test wolfSSL
4549
uses: wolfSSL/actions-build-autotools-project@v1
@@ -61,6 +65,8 @@ jobs:
6165
]
6266
name: make user_setting.h (testwolfcrypt only)
6367
runs-on: ${{ matrix.os }}
68+
# This should be a safe limit for the tests to run.
69+
timeout-minutes: 4
6470
steps:
6571
- name: Build and test wolfSSL
6672
uses: wolfSSL/actions-build-autotools-project@v1
@@ -80,6 +86,8 @@ jobs:
8086
os: [ ubuntu-latest, macos-latest ]
8187
name: make user_setting.h (with sed)
8288
runs-on: ${{ matrix.os }}
89+
# This should be a safe limit for the tests to run.
90+
timeout-minutes: 8
8391
steps:
8492
- uses: actions/checkout@v3
8593
- if: ${{ matrix.os == 'macos-latest' }}
@@ -96,6 +104,8 @@ jobs:
96104
windows_build:
97105
name: Windows Build Test
98106
runs-on: windows-latest
107+
# This should be a safe limit for the tests to run.
108+
timeout-minutes: 6
99109
env:
100110
# Path to the solution file relative to the root of the project.
101111
SOLUTION_FILE_PATH: wolfssl64.sln

.github/workflows/stunnel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
name: Build wolfSSL
99
# Just to keep it the same as the testing target
1010
runs-on: ubuntu-latest
11+
# This should be a safe limit for the tests to run.
12+
timeout-minutes: 4
1113
steps:
1214
- name: Build wolfSSL
1315
uses: wolfSSL/actions-build-autotools-project@v1
@@ -31,6 +33,8 @@ jobs:
3133
ref: [ 5.67 ]
3234
name: ${{ matrix.ref }}
3335
runs-on: ubuntu-latest
36+
# This should be a safe limit for the tests to run.
37+
timeout-minutes: 4
3438
needs: build_wolfssl
3539
steps:
3640
- name: Download lib

0 commit comments

Comments
 (0)