Skip to content

Commit 321bc21

Browse files
[Github] Add Timeouts to Premerge Jobs (#164038)
The premerge jobs currently use the default timeouts. If something ends up hanging, they run for the full six hours. Given our jobs never actually take six hours other than when something hangs, we should set the timeouts lower to not use up machine capacity when something does go wrong. These limits were currently chosen conservatively, being a decent amount above the maximum run times I have seen over the past couple months, excluding six hour timeouts.
1 parent 44a77f2 commit 321bc21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/premerge.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
with:
6363
fetch-depth: 2
6464
- name: Build and Test
65+
timeout-minutes: 120
6566
continue-on-error: ${{ runner.arch == 'ARM64' }}
6667
run: |
6768
git config --global --add safe.directory '*'
@@ -149,6 +150,7 @@ jobs:
149150
echo "windows-runtimes=${runtimes_to_build}" >> $GITHUB_OUTPUT
150151
echo "windows-runtimes-check-targets=${runtimes_check_targets}" >> $GITHUB_OUTPUT
151152
- name: Build and Test
153+
timeout-minutes: 180
152154
if: ${{ steps.vars.outputs.windows-projects != '' }}
153155
shell: cmd
154156
run: |

0 commit comments

Comments
 (0)