mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-06 14:19:45 +00:00
To unify with WinUI, we're going to share an engineering component of this particular NuGet package full of scripts and utilities to make PGOing things easier. This basically removes all of the scripts that I ~blatantly stole~ copied from https://github.com/microsoft/microsoft-ui-xaml and moves to the NuGet package that the team generates instead. A bunch of build things had to be massaged to make it work in our pipeline.
56 lines
2.0 KiB
YAML
56 lines
2.0 KiB
YAML
parameters:
|
|
configuration: 'Release'
|
|
platform: ''
|
|
additionalBuildArguments: ''
|
|
minimumExpectedTestsExecutedCount: 1 # Sanity check for minimum expected tests to be reported
|
|
rerunPassesRequiredToAvoidFailure: 5
|
|
|
|
jobs:
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
|
variables:
|
|
BuildConfiguration: ${{ parameters.configuration }}
|
|
BuildPlatform: ${{ parameters.platform }}
|
|
PGOBuildMode: 'Instrument'
|
|
pool:
|
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
name: WinDevPoolOSS-L
|
|
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
name: WinDevPool-L
|
|
demands: ImageOverride -equals WinDevVS16-latest
|
|
|
|
steps:
|
|
- template: build-console-steps.yml
|
|
parameters:
|
|
additionalBuildArguments: '${{ parameters.additionalBuildArguments }}'
|
|
|
|
- template: helix-runtests-job.yml
|
|
parameters:
|
|
name: 'RunTestsInHelix'
|
|
dependsOn: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
condition: succeeded()
|
|
testSuite: 'PgoInstrumentationSuite'
|
|
taefQuery: '@IsPgo=true'
|
|
configuration: ${{ parameters.configuration }}
|
|
platform: ${{ parameters.platform }}
|
|
rerunPassesRequiredToAvoidFailure: ${{ parameters.rerunPassesRequiredToAvoidFailure }}
|
|
|
|
- template: helix-processtestresults-job.yml
|
|
parameters:
|
|
name: 'ProcessTestResults'
|
|
pgoArtifact: 'PGO'
|
|
dependsOn:
|
|
- RunTestsInHelix
|
|
condition: succeededOrFailed()
|
|
rerunPassesRequiredToAvoidFailure: ${{ parameters.rerunPassesRequiredToAvoidFailure }}
|
|
minimumExpectedTestsExecutedCount: ${{ parameters.minimumExpectedTestsExecutedCount }}
|
|
|
|
- template: pgo-merge-pgd-job.yml
|
|
parameters:
|
|
name: 'MergePGD'
|
|
dependsOn:
|
|
- ProcessTestResults
|
|
pgoArtifact: 'PGO'
|
|
platform: ${{ parameters.platform }}
|
|
configuration: ${{ parameters.configuration }}
|