From b22073c5fe8237882bf353fe8b549de56b077577 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 15 Aug 2023 19:37:28 -0700 Subject: [PATCH] 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 --- .github/workflows/test.yml | 2 ++ .github/workflows/validate.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ed6ab1c4..3381bf23d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 984e4f672..f3b9e6765 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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