Unverified Commit 1009efeb authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Add timeouts to CI jobs (#3586)

This PR adds reasonable timeouts to each CI job so that a PR isn't held
up for six hours by a hung runner.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent b52ba10f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ jobs:
  acquire-base-image:
    runs-on: smithy_ubuntu-latest_8-core
    name: Acquire Base Image
    timeout-minutes: 60
    outputs:
      docker-login-password: ${{ steps.set-token.outputs.docker-login-password }}
    permissions:
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ jobs:
  # The login password is encrypted with the repo secret DOCKER_LOGIN_TOKEN_PASSPHRASE
  save-docker-login-token:
    name: Save a docker login token
    timeout-minutes: 10
    outputs:
      docker-login-password: ${{ steps.set-token.outputs.docker-login-password }}
    permissions:
@@ -51,6 +52,7 @@ jobs:
    name: Acquire Base Image
    needs: save-docker-login-token
    runs-on: ubuntu-latest
    timeout-minutes: 60
    env:
      ENCRYPTED_DOCKER_PASSWORD: ${{ needs.save-docker-login-token.outputs.docker-login-password }}
      DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ jobs:
    name: Acquire Base Image
    if: ${{ github.event.pull_request.head.repo.full_name != 'smithy-lang/smithy-rs' }}
    runs-on: ubuntu-latest
    timeout-minutes: 60
    steps:
    - uses: actions/checkout@v4
      with:
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ jobs:
  # The login password is encrypted with the repo secret DOCKER_LOGIN_TOKEN_PASSPHRASE
  save-docker-login-token:
    name: Save a docker login token
    timeout-minutes: 10
    if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }}
    outputs:
      docker-login-password: ${{ steps.set-token.outputs.docker-login-password }}
@@ -50,6 +51,7 @@ jobs:
  # it uploads the image as a build artifact for other jobs to download and use.
  acquire-base-image:
    name: Acquire Base Image
    timeout-minutes: 60
    needs: save-docker-login-token
    if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }}
    runs-on: smithy_ubuntu-latest_8-core
@@ -113,6 +115,7 @@ jobs:
  semver-checks:
    name: check the semver status of this PR
    runs-on: smithy_ubuntu-latest_8-core
    timeout-minutes: 20
    needs:
    - save-docker-login-token
    - acquire-base-image
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ jobs:
  verify-tls-config:
    name: Verify TLS configuration
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
    - name: Install packages
      shell: bash
Loading