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.
This commit is contained in:
dundargoc 2023-02-09 20:13:05 +01:00 committed by GitHub
parent 2af31fc50a
commit 05d3bef836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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