Skip to content

Commit

Permalink
Update .opt-prof.yml for Azure Pipelines (dotnet#8426)
Browse files Browse the repository at this point in the history
Adding parameter to OptProf pipeline for debugging test failures

Co-authored-by: Mickey Tyler <mityler@microsoft.com>
  • Loading branch information
2 people authored and JanKrivanek committed Mar 27, 2023
1 parent f776814 commit a943352
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .opt-prof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ resources:
name: DartLab.OptProf
ref: refs/heads/main

parameters:
# Whether or not to delete the test machines after the run completes
- name: testMachineCleanUpStrategy
type: string
default: delete
values:
- delete
- stop

stages:
- template: \templates\stages\visual-studio\single-runsettings.yml@DartLabOptProfTemplates
parameters:
Expand All @@ -45,6 +54,7 @@ stages:
displayName: OptProf Profiling Workflow
optOptimizationInputsDropName: $(OptimizationInputsDropName)
testLabPoolName: VS-Platform # The test lab pool to run your tests in
testMachineCleanUpStrategy: ${{parameters.testMachineCleanUpStrategy}}
testMachineImageName: Windows-10-Enterprise-20H2
visualStudioSigning: Test
variables:
Expand All @@ -68,7 +78,7 @@ stages:
$vsBranch = $bootstrapperInfoJson[0].VSBranch
Write-Host "VSBootstrapperBranch: $vsBranch"
Set-AzurePipelinesVariable 'VSBootstrapperBranch' $vsBranch
}
}
catch {
Write-Host $_
Write-Error "Failed to set VSBootstrapperBranch pipeline variable"
Expand All @@ -81,4 +91,4 @@ stages:
filePath: $(DartLab.Path)\Scripts\VisualStudio\Bootstrapper\Get-BootstrapperURL.ps1
arguments: -BootstrapperInfoJsonURI '$(Pipeline.Workspace)\ComponentBuildUnderTest\MicroBuildOutputs\BootstrapperInfo.json' -VSBranch '$(VSBootstrapperBranch)' -OutVariableName 'VisualStudio.InstallationUnderTest.BootstrapperURL'
preDeployAndRunTestsStepList:
- download: ComponentBuildUnderTest
- download: ComponentBuildUnderTest

0 comments on commit a943352

Please sign in to comment.