From ba4f0c8dab8f36c964ac547e6c2d00d347a3236a Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Wed, 8 Feb 2023 17:11:45 +0100 Subject: [PATCH] ci: add timeout field to 2h for each task Signed-off-by: Vincenzo Palazzo --- .github/workflows/bsd.yml | 1 + .github/workflows/ci.yaml | 5 +++++ .github/workflows/ci_build.yml | 1 + .github/workflows/macos.yaml | 1 + .github/workflows/prototest.yaml | 2 +- .github/workflows/pypi.yml | 1 + 6 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 222dee804..96cd61dad 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -10,6 +10,7 @@ jobs: testfreebsd: runs-on: macos-10.15 name: Build and test on FreeBSD + timeout-minutes: 120 env: DEVELOPER: 1 VALGRIND: 0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3e9c16484..c71bd2bd3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,7 @@ jobs: prebuild: name: Pre-build checks runs-on: ubuntu-20.04 + timeout-minutes: 30 env: RUST: 1 COMPAT: 1 @@ -58,6 +59,7 @@ jobs: # on the integration tests), so run them with `valgrind` name: Run unit tests runs-on: ubuntu-22.04 + timeout-minutes: 30 env: COMPAT: 1 VALGRIND: 1 @@ -92,6 +94,7 @@ jobs: compile: name: Compile CLN ${{ matrix.cfg }} runs-on: ubuntu-22.04 + timeout-minutes: 30 env: COMPAT: 1 needs: @@ -163,6 +166,7 @@ jobs: integration: name: Test CLN ${{ matrix.name }} runs-on: ubuntu-22.04 + timeout-minutes: 120 env: COMPAT: 1 BITCOIN_VERSION: 24.0.1 @@ -269,6 +273,7 @@ jobs: integration-valgrind: name: Valgrind Test CLN ${{ matrix.name }} runs-on: ubuntu-22.04 + timeout-minutes: 120 env: COMPAT: 1 BITCOIN_VERSION: 24.0.1 diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 7683c539d..71e51cabb 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -5,6 +5,7 @@ on: [push, pull_request] jobs: test: runs-on: ubuntu-latest + timeout-minutes: 120 strategy: fail-fast: false matrix: diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index b7d76129d..a7c96d830 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -6,6 +6,7 @@ jobs: smoke-test: name: Smoke Test macOS runs-on: macos-latest + timeout-minutes: 120 env: DEVELOPER: 1 VALGRIND: 0 diff --git a/.github/workflows/prototest.yaml b/.github/workflows/prototest.yaml index dc2461d07..93da5bd7a 100644 --- a/.github/workflows/prototest.yaml +++ b/.github/workflows/prototest.yaml @@ -9,7 +9,7 @@ jobs: proto-test: name: Protocol Test Config runs-on: ubuntu-22.04 - timeout-minutes: 300 + timeout-minutes: 120 strategy: fail-fast: true matrix: diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 3362867d9..115a4fc28 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -14,6 +14,7 @@ jobs: deploy: name: Build and publish ${{ matrix.package }} 🐍 runs-on: ubuntu-20.04 + timeout-minutes: 120 strategy: fail-fast: true matrix: