-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set Github Actions build job timeouts
Adds default timeouts for build jobs, to prevent hang bugs from consuming all resources. b/343787224
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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] | ||
|
@@ -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] | ||
|
@@ -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: 90 | ||
steps: | ||
- name: Checkout | ||
uses: kaidokert/[email protected] | ||
|
@@ -335,6 +339,7 @@ jobs: | |
COBALT_EVERGREEN_LOADER: ${{ needs.initialize.outputs.evergreen_loader }} | ||
ON_DEVICE_TEST_ATTEMPTS: ${{ needs.initialize.outputs.on_device_test_attempts }} | ||
MODULAR_BUILD: ${{ inputs.modular && 1 || 0 }} | ||
# timeout-minutes: TODO: Not setting it here, depends on lab capacity | ||
steps: | ||
- name: Checkout | ||
uses: kaidokert/[email protected] | ||
|
@@ -367,6 +372,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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -133,6 +134,7 @@ jobs: | |
permissions: | ||
packages: write | ||
runs-on: windows-2019 | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Checkout files | ||
uses: kaidokert/[email protected] | ||
|
@@ -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] | ||
|
@@ -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] | ||
|