From 1fe2771a0ddb05d5e952eb67a18a34d656efe3a7 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 22 Feb 2024 17:22:24 +0000 Subject: [PATCH] build: Add some timeouts to integration test workflow Add top-level timeout for the jobs and also more agressive per step timeouts. Signed-off-by: Rob Bradford --- .github/workflows/integration-arm64.yaml | 2 ++ .github/workflows/integration-x86-64.yaml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-arm64.yaml b/.github/workflows/integration-arm64.yaml index da6e9432e..ee13b7816 100644 --- a/.github/workflows/integration-arm64.yaml +++ b/.github/workflows/integration-arm64.yaml @@ -3,6 +3,7 @@ on: [pull_request, create] jobs: build: + timeout-minutes: 60 if: github.event_name == 'pull_request' name: Tests (ARM64) runs-on: focal-arm64 @@ -16,4 +17,5 @@ jobs: - name: Load openvswitch module run: sudo modprobe openvswitch - name: Run integration tests (musl) + timeout-minutes: 30 run: scripts/dev_cli.sh tests --integration --libc musl \ No newline at end of file diff --git a/.github/workflows/integration-x86-64.yaml b/.github/workflows/integration-x86-64.yaml index 4eecbaa62..15204c82c 100644 --- a/.github/workflows/integration-x86-64.yaml +++ b/.github/workflows/integration-x86-64.yaml @@ -3,6 +3,7 @@ on: [pull_request, create] jobs: build: + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -28,10 +29,12 @@ jobs: - name: Prepare for VDPA run: scripts/prepare_vdpa.sh - name: Run unit tests - run: scripts/dev_cli.sh tests --unit + run: scripts/dev_cli.sh tests --unit --libc ${{ matrix.libc }} - name: Load openvswitch module run: sudo modprobe openvswitch - name: Run integration tests + timeout-minutes: 40 run: scripts/dev_cli.sh tests --integration --libc ${{ matrix.libc }} - name: Run live-migration integration tests + timeout-minutes: 20 run: scripts/dev_cli.sh tests --integration-live-migration --libc ${{ matrix.libc }}