Skip to content

Commit

Permalink
ci: add timeouts for all jobs (#1268)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez authored Feb 6, 2025
1 parent 10db65d commit 5f893fd
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
[self-hosted, macos, arm64, 14, test]
]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-msi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
get-tag-name:
name: Get tag name
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
tag: ${{ steps.check-tag.outputs.tag }}
version: ${{ steps.check-tag.outputs.version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
get-tag-name:
name: Get tag name
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
tag: ${{ steps.check-tag.outputs.tag }}
steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ on:
jobs:
git-secrets:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Pull latest awslabs/git-secrets repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -65,26 +66,31 @@ jobs:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 2
steps:
- run: echo "Skipping CI for docs & contrib files"
unit-tests:
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 2
steps:
- run: echo "Skipping CI for docs & contrib files"
go-linter:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- run: echo "Skipping CI for docs & contrib files"
go-mod-tidy-check:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- run: echo "Skipping CI for docs & contrib files"
check-licenses:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- run: echo "Skipping CI for docs & contrib files"
macos-e2e-tests:
Expand Down Expand Up @@ -112,6 +118,7 @@ jobs:
uses: ./.github/workflows/e2e-docs.yaml
mdlint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ concurrency:
jobs:
git-secrets:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Pull latest awslabs/git-secrets repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -72,6 +73,7 @@ jobs:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
Expand All @@ -86,6 +88,7 @@ jobs:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- name: Configure git CRLF settings
run: |
Expand All @@ -101,6 +104,7 @@ jobs:
go-linter:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
Expand Down Expand Up @@ -132,6 +136,7 @@ jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run ShellCheck
Expand All @@ -141,6 +146,7 @@ jobs:
continue-on-error: true
go-mod-tidy-check:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
Expand All @@ -152,6 +158,7 @@ jobs:
- run: git diff --exit-code
check-licenses:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
Expand Down Expand Up @@ -205,6 +212,7 @@ jobs:

mdlint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Skip
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
"${{ inputs.version }}",
"${{ inputs.runner-type }}",
]
timeout-minutes: 60
outputs:
has_creds: ${{ steps.vars.outputs.has_creds}}
vm_report: ${{ steps.set-multiple-vars.outputs.VM_REPORT }}
Expand Down Expand Up @@ -151,6 +152,7 @@ jobs:
"${{ inputs.version }}",
"${{ inputs.runner-type }}",
]
timeout-minutes: 5
steps:
- name: Set output variables to check AL2
id: linux2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
"${{ inputs.version }}",
"${{ inputs.runner-type }}",
]
timeout-minutes: 60
outputs:
has_creds: ${{ steps.vars.outputs.has_creds}}
vm_report: ${{ steps.set-multiple-vars.outputs.VM_REPORT }}
Expand Down Expand Up @@ -113,6 +114,7 @@ jobs:
"${{ inputs.version }}",
"${{ inputs.runner-type }}",
]
timeout-minutes: 5
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
upload-windows-e2e-test-report:
needs: test
if: always()
timeout-minutes: 180
timeout-minutes: 5
runs-on:
[
"self-hosted",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
main:
name: conventional-commit
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pkg-output-arch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
outputs:
arch: ${{ steps.output-arch.arch }}
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: 'get output arch'
id: output-arch
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
get-latest-tag:
name: Get the latest release tag
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
tag: ${{ steps.latest-tag.outputs.tag }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sync-submodules-and-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upload-installer-to-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
get-tag-name:
name: Get tag name
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
tag: ${{ steps.check-tag.outputs.tag }}
steps:
Expand All @@ -30,6 +31,7 @@ jobs:
upload-installers:
needs: get-tag-name
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upload-msi-to-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
get-version-tag:
name: Get the version, tag and validate the format
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
tag: ${{ steps.check-tag.outputs.tag }}
version: ${{ steps.check-tag.outputs.version }}
Expand All @@ -40,6 +41,7 @@ jobs:
upload-windows-msi:
needs: get-version-tag
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
Expand Down

0 comments on commit 5f893fd

Please sign in to comment.