@cryptotaxi247 / kubo / commits / e1f38d756

ci: set sensible timeouts on all gha jobs (#9683)

Piotr Galar committed Mar 2, 2023 at 10:51 UTC e1f38d7567df725d37024e7f294ec00d584c84ef
11 files changed +15
.github/workflows/build.yml
+5
@@ -14,6 +14,7 @@ jobs:
14 prepare:
15 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
16 runs-on: ubuntu-latest
17 + timeout-minutes: 5
18 env:
19 TEST_NO_DOCKER: 1
20 TEST_NO_FUSE: 1
@@ -40,6 +41,7 @@ jobs:
41 ipfs-interop:
42 needs: [prepare]
43 runs-on: ubuntu-latest
44 + timeout-minutes: 20
45 strategy:
46 matrix:
47 suites:
@@ -83,6 +85,7 @@ jobs:
85 go-ipfs-api:
86 needs: [prepare]
87 runs-on: ubuntu-latest
88 + timeout-minutes: 5
89 env:
90 TEST_NO_DOCKER: 1
91 TEST_NO_FUSE: 1
@@ -122,6 +125,7 @@ jobs:
125 go-ipfs-http-client:
126 needs: [prepare]
127 runs-on: ubuntu-latest
128 + timeout-minutes: 5
129 env:
130 TEST_NO_DOCKER: 1
131 TEST_NO_FUSE: 1
@@ -154,6 +158,7 @@ jobs:
158 ipfs-webui:
159 needs: [prepare]
160 runs-on: ubuntu-latest
161 + timeout-minutes: 20
162 env:
163 NO_SANDBOX: true
164 LIBP2P_TCP_REUSEPORT: false
.github/workflows/codeql-analysis.yml
+1
@@ -16,6 +16,7 @@ jobs:
16 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
17 name: Analyze
18 runs-on: ubuntu-latest
19 + timeout-minutes: 20
20
21 strategy:
22 fail-fast: false
.github/workflows/docker-build.yml
+1
@@ -11,6 +11,7 @@ jobs:
11 docker-build:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 + timeout-minutes: 10
15 env:
16 IMAGE_NAME: ipfs/kubo
17 WIP_IMAGE_TAG: wip
.github/workflows/docker-image.yml
+1
@@ -14,6 +14,7 @@ jobs:
14 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
15 name: Push Docker image to Docker Hub
16 runs-on: ubuntu-latest
17 + timeout-minutes: 90
18 env:
19 IMAGE_NAME: ipfs/kubo
20 LEGACY_IMAGE_NAME: ipfs/go-ipfs
.github/workflows/gobuild.yml
+1
@@ -14,6 +14,7 @@ jobs:
14 gobuild:
15 needs: [runner]
16 runs-on: ${{ fromJSON(needs.runner.outputs.config).labels }}
17 + timeout-minutes: 20
18 env:
19 TEST_NO_DOCKER: 1
20 TEST_VERBOSE: 1
.github/workflows/golang-analysis.yml
+1
@@ -11,6 +11,7 @@ jobs:
11 unit:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 + timeout-minutes: 10
15 name: All
16 steps:
17 - uses: actions/checkout@v2
.github/workflows/golint.yml
+1
@@ -11,6 +11,7 @@ jobs:
11 golint:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 + timeout-minutes: 10
15 env:
16 TEST_NO_DOCKER: 1
17 TEST_NO_FUSE: 1
.github/workflows/gotest.yml
+1
@@ -11,6 +11,7 @@ jobs:
11 gotest:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 + timeout-minutes: 20
15 env:
16 TEST_NO_DOCKER: 1
17 TEST_NO_FUSE: 1
.github/workflows/runner.yml
+1
@@ -10,6 +10,7 @@ on:
10 jobs:
11 choose:
12 runs-on: ubuntu-latest
13 + timeout-minutes: 1
14 outputs:
15 config: ${{ steps.config.outputs.result }}
16 steps:
.github/workflows/sharness.yml
+1
@@ -14,6 +14,7 @@ jobs:
14 sharness:
15 needs: [runner]
16 runs-on: ${{ fromJSON(needs.runner.outputs.config).labels }}
17 + timeout-minutes: 20
18 defaults:
19 run:
20 shell: bash
.github/workflows/sync-release-assets.yml
+1
@@ -13,6 +13,7 @@ jobs:
13 sync-github-and-dist-ipfs-tech:
14 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
15 runs-on: "ubuntu-latest"
16 + timeout-minutes: 5
17 steps:
18 - uses: ipfs/download-ipfs-distribution-action@v1
19 - uses: ipfs/start-ipfs-daemon-action@v1