From 6cc048ae6f935f30dfb92eb4a930c695dc8fde5d Mon Sep 17 00:00:00 2001 From: Kitsios Konstantinos Date: Tue, 15 Jul 2025 03:54:43 +0300 Subject: [PATCH] Added Custom Timeout to CI (#2189) * Added Custom Timeout to CI Signed-off-by: Konstantinos * remove unnecessary comment Signed-off-by: Konstantinos * Use correct syntax for timeout in jobs that span multiple files Signed-off-by: Konstantinos --------- Signed-off-by: Konstantinos --- .github/workflows/linux.yml | 3 +++ .github/workflows/macos.yml | 1 + .github/workflows/windows.yml | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7f83c7864..1cb5f0d31 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -118,6 +118,8 @@ jobs: CMAKE_ARGS: -DOQS_USE_SHA3_AVX512VL=OFF PYTEST_ARGS: --ignore=tests/test_leaks.py --ignore=tests/test_kat_all.py runs-on: ${{ matrix.runner }} + timeout-minutes: 85 # max + 3*std over the last thousands of successful runs + container: image: ${{ matrix.container }} steps: @@ -154,6 +156,7 @@ jobs: linux_arm_emulated: runs-on: ubuntu-latest + timeout-minutes: 85 # max + 3*std over the last thousands of successful runs strategy: fail-fast: false matrix: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c8a14e60f..566283e6e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -42,6 +42,7 @@ jobs: libjade-build: -DOQS_LIBJADE_BUILD=OFF runs-on: ${{ matrix.os }} + timeout-minutes: 85 # max + 3*std over the last thousands of successful runs steps: - name: Install Python uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # pin@v5 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index aa8ec8db7..b9fda30cb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -4,7 +4,6 @@ permissions: contents: read on: [workflow_call, workflow_dispatch] - jobs: windows-arm64: @@ -13,6 +12,7 @@ jobs: runner: [windows-2022, windows-2025] stfl_opt: [ON, OFF] runs-on: ${{ matrix.runner }} + timeout-minutes: 85 # max + 3*std over the last thousands of successful runs steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 - name: Generate Project @@ -28,6 +28,7 @@ jobs: toolchain: [.CMake/toolchain_windows_x86.cmake, .CMake/toolchain_windows_amd64.cmake] stfl_opt: [ON, OFF] runs-on: ${{ matrix.runner }} + timeout-minutes: 85 # max + 3*std over the last thousands of successful runs steps: - name: Install Python uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # pin@v5