From 05d3bef8364c93b205fd47398420dcd705df2714 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Thu, 9 Feb 2023 20:13:05 +0100 Subject: [PATCH] ci: add individual timeout limits for all tests (#22193) The CI somtimes freezes on a specific test, wasting 45 minutes for the entire job. Adding a timeout of 15 minutes to functionaltest and 5 minutes to unittests will mitigate the problem. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3974e8c85..d1a6b5dcaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -266,10 +266,12 @@ jobs: - if: matrix.flavor != 'tsan' && matrix.flavor != 'functionaltest-lua' && (success() || failure() && steps.abort_job.outputs.status == 'success') name: Unittests + timeout-minutes: 5 run: ./ci/run_tests.sh unittests - if: success() || failure() && steps.abort_job.outputs.status == 'success' name: Functionaltests + timeout-minutes: 15 run: ./ci/run_tests.sh functionaltests - if: matrix.flavor != 'tsan' && (success() || failure() && steps.abort_job.outputs.status == 'success') @@ -340,6 +342,7 @@ jobs: - if: success() || failure() && steps.abort_job.outputs.status == 'success' name: Run functionaltests + timeout-minutes: 15 run: cmake --build build --target functionaltest - if: success() || failure() && steps.abort_job.outputs.status == 'success'