Skip to content

Commit

Permalink
Cherry pick PR #3413: Set Github Actions build job timeouts (#3419)
Browse files Browse the repository at this point in the history
Refer to the original PR: #3413

Adds default timeouts for build jobs, to prevent hang bugs from
consuming all resources.

b/343787224

Co-authored-by: Kaido Kert <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and kaidokert authored Jun 1, 2024
1 parent 5429e94 commit fd14399
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
github.event.label.name == 'runtest' ||
github.event.label.name == 'on_device'
)
timeout-minutes: 10
steps:
- id: checkout
uses: kaidokert/[email protected]
Expand Down Expand Up @@ -148,6 +149,7 @@ jobs:
runs-on: [self-hosted, linux-runner]
permissions:
packages: write
timeout-minutes: 30
steps:
- name: Checkout files
uses: kaidokert/[email protected]
Expand Down Expand Up @@ -184,6 +186,7 @@ jobs:
permissions:
packages: write
runs-on: [self-hosted, linux-runner]
timeout-minutes: 30
steps:
- name: Checkout files
uses: kaidokert/[email protected]
Expand Down Expand Up @@ -231,6 +234,7 @@ jobs:
# However, dind container ends up having / folder mounted on overlay
# filesystem, whereas /__w which contains Cobalt source code is on tmpfs.
TMPDIR: /__w/_temp
timeout-minutes: 60
steps:
- name: Checkout
uses: kaidokert/[email protected]
Expand Down Expand Up @@ -367,6 +371,7 @@ jobs:
HOME: /root
COBALT_EVERGREEN_LOADER: ${{needs.initialize.outputs.evergreen_loader}}
MODULAR_BUILD: ${{ inputs.modular && 1 || 0 }}
timeout-minutes: 90
steps:
- name: Checkout
uses: kaidokert/[email protected]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main_win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
github.event.label.name == 'runtest' ||
github.event.label.name == 'on_device'
)
timeout-minutes: 10
steps:
- id: Checkout
uses: kaidokert/[email protected] # Temporary version
Expand Down Expand Up @@ -133,6 +134,7 @@ jobs:
permissions:
packages: write
runs-on: windows-2019
timeout-minutes: 120
steps:
- name: Checkout files
uses: kaidokert/[email protected]
Expand Down Expand Up @@ -167,6 +169,7 @@ jobs:
platform: ${{ fromJson(needs.initialize.outputs.platforms) }}
include: ${{ fromJson(needs.initialize.outputs.includes) }}
config: [devel, debug, qa, gold]
timeout-minutes: 90
steps:
- name: Checkout
uses: kaidokert/[email protected]
Expand Down Expand Up @@ -204,6 +207,7 @@ jobs:
include: ${{ fromJson(needs.initialize.outputs.includes) }}
env:
MODULAR_BUILD: ${{ inputs.modular && 1 || 0 }}
timeout-minutes: 90
steps:
- name: Checkout
uses: kaidokert/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_25.lts.1+.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
python-version: ['3.8', '3.11']
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Checkout
uses: kaidokert/[email protected]
Expand Down

0 comments on commit fd14399

Please sign in to comment.