Skip to content

Commit 706309f

Browse files
Ryan Nowakrynowak
Ryan Nowak
authored andcommitted
Increase cancelTimeoutInMinutes
This is a setting AZDO supports to control how long you have after a build is canceled before all of the work is terminated. When a build reaches a timeout, usually the `build.{cmd|sh}` step will be terminated, and then you have cancelTimeoutInMinutes number of minutes to do everything else before everything shuts down. We need to a value larger than the default of 5 minutes because it takes us *about* 5 minutes to upload all of our logs and artifacts in a success case. This should give us a sufficient grace period to upload all of our logs in the case that a build fails due to a test hang.
1 parent 7b6654d commit 706309f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.azure/pipelines/jobs/default-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ parameters:
6969
installJdk: true
7070
timeoutInMinutes: 180
7171

72+
# We need longer than the default amount of 5 minutes to upload our logs/artifacts. (We currently take around 5 mins in the best case).
73+
# This makes sure we have time to upload everything in the case of a build timeout - really important for investigating a build
74+
# timeout due to test hangs.
75+
cancelTimeoutInMinutes: 15
76+
7277
jobs:
7378
- job: ${{ coalesce(parameters.jobName, parameters.agentOs) }}
7479
displayName: ${{ coalesce(parameters.jobDisplayName, parameters.agentOs) }}

0 commit comments

Comments
 (0)