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 <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford 2024-02-22 17:22:24 +00:00
parent 2e4079becb
commit 1fe2771a0d
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 }}