Increase wake time for ProcDump CI task

This commit is contained in:
Dustin Campbell 2022-10-27 10:21:29 -07:00
Родитель c0500283df
Коммит a28d33a3cc
1 изменённых файлов: 26 добавлений и 1 удалений

Просмотреть файл

@ -104,6 +104,7 @@ stages:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
enableMicrobuild: true enableMicrobuild: true
enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }} enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}
jobs: jobs:
- job: Windows - job: Windows
timeoutInMinutes: 120 timeoutInMinutes: 120
@ -139,6 +140,7 @@ stages:
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1) /p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
/p:DotNetPublishBlobFeedUrl=$(_PublishBlobFeedUrl) /p:DotNetPublishBlobFeedUrl=$(_PublishBlobFeedUrl)
/p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed) /p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
variables: variables:
- _DotNetPublishToBlobFeed: false - _DotNetPublishToBlobFeed: false
- _PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json - _PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json
@ -159,27 +161,36 @@ stages:
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- group: DotNet-Blob-Feed - group: DotNet-Blob-Feed
- group: DotNet-Symbol-Server-Pats - group: DotNet-Symbol-Server-Pats
steps: steps:
- task: NodeTool@0 - task: NodeTool@0
displayName: Install Node 10.x displayName: Install Node 10.x
inputs: inputs:
versionSpec: 10.x versionSpec: 10.x
- powershell: npm install -g yarn - powershell: npm install -g yarn
displayName: Install yarn displayName: Install yarn
condition: succeeded() condition: succeeded()
- task: NuGetCommand@2 - task: NuGetCommand@2
displayName: 'Clear NuGet caches' displayName: 'Clear NuGet caches'
condition: succeeded() condition: succeeded()
inputs: inputs:
command: custom command: custom
arguments: 'locals all -clear' arguments: 'locals all -clear'
- ${{ if ne(variables['System.TeamProject'], 'public') }}: - ${{ if ne(variables['System.TeamProject'], 'public') }}:
- template: /eng/restore-internal-tools.yml - template: /eng/restore-internal-tools.yml
- powershell: ./eng/scripts/InstallProcDump.ps1 - powershell: ./eng/scripts/InstallProcDump.ps1
displayName: Install ProcDump displayName: Install ProcDump
- powershell: ./eng/scripts/StartDumpCollectionForHangingBuilds.ps1 $(ProcDumpPath)procdump.exe artifacts/log/$(_BuildConfig) (Get-Date).AddMinutes(25) devenv, xunit.console, xunit.console.x86
- powershell: ./eng/scripts/StartDumpCollectionForHangingBuilds.ps1
$(ProcDumpPath)procdump.exe artifacts/log/$(_BuildConfig)
(Get-Date).AddMinutes(60)
devenv, xunit.console, xunit.console.x86
displayName: Start background dump collection displayName: Start background dump collection
- ${{ if ne(variables['System.TeamProject'], 'public') }}: - ${{ if ne(variables['System.TeamProject'], 'public') }}:
- task: PowerShell@2 - task: PowerShell@2
displayName: Setup Private Feeds Credentials displayName: Setup Private Feeds Credentials
@ -188,6 +199,7 @@ stages:
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
env: env:
Token: $(dn-bot-dnceng-artifact-feeds-rw) Token: $(dn-bot-dnceng-artifact-feeds-rw)
- script: eng\CIBuild.cmd - script: eng\CIBuild.cmd
-restore -restore
-build -build
@ -203,6 +215,7 @@ stages:
name: Build name: Build
displayName: Build displayName: Build
condition: succeeded() condition: succeeded()
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Build BinLog displayName: Upload Build BinLog
condition: always() condition: always()
@ -212,6 +225,7 @@ stages:
artifactName: $(Agent.Os)_$(Agent.JobName) BuildBinLog artifactName: $(Agent.Os)_$(Agent.JobName) BuildBinLog
artifactType: Container artifactType: Container
parallel: true parallel: true
- script: eng\cibuild.cmd - script: eng\cibuild.cmd
-configuration $(_BuildConfig) -configuration $(_BuildConfig)
-msbuildEngine vs -msbuildEngine vs
@ -228,6 +242,7 @@ stages:
name: Build_Vsix name: Build_Vsix
displayName: Build and Deploy Vsix displayName: Build and Deploy Vsix
condition: succeeded() condition: succeeded()
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Build VSIX BinLog displayName: Upload Build VSIX BinLog
condition: always() condition: always()
@ -237,6 +252,7 @@ stages:
artifactName: $(Agent.Os)_$(Agent.JobName) BuildVSIXBinLog artifactName: $(Agent.Os)_$(Agent.JobName) BuildVSIXBinLog
artifactType: Container artifactType: Container
parallel: true parallel: true
- script: eng\CIBuild.cmd - script: eng\CIBuild.cmd
-configuration $(_BuildConfig) -configuration $(_BuildConfig)
-prepareMachine -prepareMachine
@ -246,6 +262,7 @@ stages:
name: Run_Tests name: Run_Tests
displayName: Run Unit and Integration tests displayName: Run Unit and Integration tests
condition: succeeded() condition: succeeded()
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Run tests BinLog displayName: Upload Run tests BinLog
condition: always() condition: always()
@ -255,10 +272,12 @@ stages:
artifactName: $(Agent.Os)_$(Agent.JobName) RunTestsBinLog artifactName: $(Agent.Os)_$(Agent.JobName) RunTestsBinLog
artifactType: Container artifactType: Container
parallel: true parallel: true
- powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/log/$(_BuildConfig) - powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/log/$(_BuildConfig)
displayName: Finish background dump collection displayName: Finish background dump collection
continueOnError: true continueOnError: true
condition: always() condition: always()
- powershell: | - powershell: |
$version = $(node -p "require('./package.json').version" | Out-String).Trim() $version = $(node -p "require('./package.json').version" | Out-String).Trim()
yarn install yarn install
@ -268,6 +287,7 @@ stages:
workingDirectory: $(Build.SourcesDirectory)/src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmDebuggingExtension workingDirectory: $(Build.SourcesDirectory)/src/Razor/src/Microsoft.AspNetCore.Razor.VSCode.BlazorWasmDebuggingExtension
failOnStderr: true failOnStderr: true
condition: and(succeeded(), eq(variables['_BuildConfig'], 'Release')) condition: and(succeeded(), eq(variables['_BuildConfig'], 'Release'))
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Upload Test Results displayName: Upload Test Results
condition: always() condition: always()
@ -277,6 +297,7 @@ stages:
artifactName: $(Agent.Os)_$(Agent.JobName) TestResults artifactName: $(Agent.Os)_$(Agent.JobName) TestResults
artifactType: Container artifactType: Container
parallel: true parallel: true
# - task: PublishTestResults@2 # - task: PublishTestResults@2
# displayName: Publish VSCode Test Results # displayName: Publish VSCode Test Results
# inputs: # inputs:
@ -285,6 +306,7 @@ stages:
# searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' # searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
# continueOnError: true # continueOnError: true
# condition: always() # condition: always()
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish VSIX Artifacts displayName: Publish VSIX Artifacts
inputs: inputs:
@ -293,6 +315,7 @@ stages:
ArtifactName: VSIX_$(Agent.Os)_$(_BuildConfig) ArtifactName: VSIX_$(Agent.Os)_$(_BuildConfig)
continueOnError: true continueOnError: true
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release')) condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish VS for Mac Artifacts displayName: Publish VS for Mac Artifacts
inputs: inputs:
@ -301,6 +324,7 @@ stages:
ArtifactName: MPack_$(Agent.Os)_$(_BuildConfig) ArtifactName: MPack_$(Agent.Os)_$(_BuildConfig)
continueOnError: true continueOnError: true
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release')) condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish package artifacts displayName: Publish package artifacts
inputs: inputs:
@ -309,6 +333,7 @@ stages:
ArtifactName: Packages_$(Agent.Os)_$(_BuildConfig) ArtifactName: Packages_$(Agent.Os)_$(_BuildConfig)
continueOnError: true continueOnError: true
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release')) condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false), eq(variables['_BuildConfig'], 'Release'))
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish VS Code extension artifacts displayName: Publish VS Code extension artifacts
inputs: inputs: