Просмотр исходного кода

[Infrastructure] Separate dump capturing and upload from log updating and upload (#14198)

* Separates the dumps into its on set of artifacts.
* Prioritizes uploading dumps for hanging builds before any other artifact.
Javier Calvarro Nelson 6 лет назад
Родитель
Сommit
2e9484b44e
2 измененных файлов с 10 добавлено и 2 удалено
  1. 8 0
      .azure/pipelines/ci.yml
  2. 2 2
      .azure/pipelines/jobs/default-build.yml

+ 8 - 0
.azure/pipelines/ci.yml

@@ -450,6 +450,10 @@ stages:
           testResultsFiles: '*.xml'
           testResultsFiles: '*.xml'
           searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Flaky'
           searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Flaky'
       artifacts:
       artifacts:
+      - name: Windows_Test_Dumps
+        path: artifacts/dumps/
+        publishOnError: true
+        includeForks: false
       - name: Windows_Test_Logs
       - name: Windows_Test_Logs
         path: artifacts/log/
         path: artifacts/log/
         publishOnError: true
         publishOnError: true
@@ -474,6 +478,10 @@ stages:
       - script: ./src/ProjectTemplates/build.cmd -ci -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.test.binlog"
       - script: ./src/ProjectTemplates/build.cmd -ci -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.test.binlog"
         displayName: Test Templates
         displayName: Test Templates
       artifacts:
       artifacts:
+      - name: Windows_Test_Templates_Dumps
+        path: artifacts/dumps/
+        publishOnError: true
+        includeForks: false
       - name: Windows_Test_Templates_Logs
       - name: Windows_Test_Templates_Logs
         path: artifacts/log/
         path: artifacts/log/
         publishOnError: true
         publishOnError: true

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

@@ -129,7 +129,7 @@ jobs:
     - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
     - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
       - 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/ (Get-Date).AddMinutes(160) dotnet
+      - powershell: ./eng/scripts/StartDumpCollectionForHangingBuilds.ps1 $(ProcDumpPath)procdump.exe artifacts/dumps/ (Get-Date).AddMinutes(160) dotnet
         displayName: Start background dump collection
         displayName: Start background dump collection
     - ${{ if eq(parameters.installNodeJs, 'true') }}:
     - ${{ if eq(parameters.installNodeJs, 'true') }}:
       - task: NodeTool@0
       - task: NodeTool@0
@@ -171,7 +171,7 @@ jobs:
     - ${{ parameters.afterBuild }}
     - ${{ parameters.afterBuild }}
 
 
     - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
     - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
-      - powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/log/
+      - powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/dumps/
         displayName: Finish background dump collection
         displayName: Finish background dump collection
         continueOnError: true
         continueOnError: true
         condition: always()
         condition: always()