Skip to content

Commit

Permalink
Merge pull request moby#48649 from austinvazquez/cherry-pick-c68c9aed…
Browse files Browse the repository at this point in the history
…8cb3916669de6d7f2c564279ec83663f-to-23.0

[23.0 backport] gha: add guardrails timeouts on all jobs
  • Loading branch information
thaJeztah authored Oct 12, 2024
2 parents 554b1e5 + c60b124 commit d08a1ae
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/.dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ env:
jobs:
run:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
steps:
-
name: Checkout
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/.windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ env:
jobs:
build:
runs-on: ${{ inputs.os }}
timeout-minutes: 120 # guardrails timeout for the whole job
env:
GOPATH: ${{ github.workspace }}\go
GOBIN: ${{ github.workspace }}\go\bin
Expand Down Expand Up @@ -114,7 +115,7 @@ jobs:

unit-test:
runs-on: ${{ inputs.os }}
timeout-minutes: 120
timeout-minutes: 120 # guardrails timeout for the whole job
env:
GOPATH: ${{ github.workspace }}\go
GOBIN: ${{ github.workspace }}\go\bin
Expand Down Expand Up @@ -192,6 +193,7 @@ jobs:

unit-test-report:
runs-on: ubuntu-latest
timeout-minutes: 120 # guardrails timeout for the whole job
if: always()
needs:
- unit-test
Expand All @@ -218,6 +220,7 @@ jobs:
integration-test-prepare:
runs-on: ubuntu-latest
timeout-minutes: 120 # guardrails timeout for the whole job
outputs:
matrix: ${{ steps.tests.outputs.matrix }}
steps:
Expand Down Expand Up @@ -251,7 +254,7 @@ jobs:
integration-test:
runs-on: ${{ inputs.os }}
timeout-minutes: 120
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- build
- integration-test-prepare
Expand Down Expand Up @@ -479,6 +482,7 @@ jobs:

integration-test-report:
runs-on: ubuntu-latest
timeout-minutes: 120 # guardrails timeout for the whole job
if: always()
needs:
- integration-test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/buildkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:

build:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- validate-dco
steps:
Expand All @@ -55,7 +56,7 @@ jobs:

test:
runs-on: ubuntu-20.04
timeout-minutes: 120
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- build
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:

build:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- validate-dco
strategy:
Expand Down Expand Up @@ -65,6 +66,7 @@ jobs:
prepare-cross:
runs-on: ubuntu-latest
timeout-minutes: 20 # guardrails timeout for the whole job
needs:
- validate-dco
outputs:
Expand All @@ -86,6 +88,7 @@ jobs:
cross:
runs-on: ubuntu-20.04
timeout-minutes: 20 # guardrails timeout for the whole job
needs:
- validate-dco
- prepare-cross
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:

build-dev:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- validate-dco
strategy:
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
validate-prepare:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- validate-dco
outputs:
Expand All @@ -91,7 +93,7 @@ jobs:
validate:
runs-on: ubuntu-20.04
timeout-minutes: 120
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- validate-prepare
- build-dev
Expand Down Expand Up @@ -521,6 +523,7 @@ jobs:
prepare-smoke:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- validate-dco
outputs:
Expand All @@ -542,6 +545,7 @@ jobs:
smoke:
runs-on: ubuntu-20.04
timeout-minutes: 120 # guardrails timeout for the whole job
needs:
- prepare-smoke
strategy:
Expand Down

0 comments on commit d08a1ae

Please sign in to comment.