ci/gha: add job timeouts

The default timeout is 360 minutes, which is way long for these jobs.
If the CI (or a test) has stuck, we'd better know about it earlier than
in 6 hours.

Set the timeouts for some [relatively] long running jobs conservatively:
 - test and release jobs usually take ~10 minutes;
 - lint job takes 1 minute (but can be a few times slower when we switch
   Go or golangci-lint version);
 - cross-386 job takes about 2 minutes;
 - the rest is seconds (and I am lazy to set timeouts everywhere).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2023-08-15 19:37:28 -07:00
parent fe5e2b3c31
commit b22073c5fe
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -19,6 +19,7 @@ env:
jobs:
test:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
@@ -113,6 +114,7 @@ jobs:
# We are not interested in providing official support for i386.
cross-i386:
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
+2
View File
@@ -21,6 +21,7 @@ jobs:
run: make validate-keyring
lint:
timeout-minutes: 30
permissions:
contents: read
pull-requests: read
@@ -159,6 +160,7 @@ jobs:
release:
timeout-minutes: 30
runs-on: ubuntu-22.04
steps:
- name: checkout