Repository navigation
Expand file tree
/
Copy pathazure-pipelines-windows-debug-slim.yml
More file actions
81 lines (70 loc) · 3.14 KB
/
Copy pathazure-pipelines-windows-debug-slim.yml
File metadata and controls
81 lines (70 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Standalone, non-required A/B pipeline for replacing the full Windows Debug graph with the unit-test graph.
# Register this YAML as a separate Azure Pipelines definition; do not add its status to branch protection.
trigger: none
pr:
autoCancel: true
branches:
include:
- main
parameters:
- name: SkipTests
displayName: Skip tests
type: boolean
default: false
variables:
- template: /eng/pipelines/variables/test-env-vars.yml
- name: _BuildConfig
value: Debug
- name: _DebugUnitTestReportArgs
value: '--report-trx --report-trx-filename "{asm}_{tfm}.trx" --report-ctrf --report-ctrf-filename "{asm}_{tfm}.ctrf.json" --report-azdo --report-azdo-severity warning --report-azdo-summary --report-azdo-slow-test-history 30 --report-azdo-slow-test-history-min-sample 10 --report-azdo-slow-test-history-multiplier 3.0 --report-azdo-flaky-history 30 --report-junit --report-junit-filename "{asm}_{tfm}.xml" --hangdump --hangdump-timeout 15m'
jobs:
- job: WindowsDebugSlim
displayName: Windows Debug slim experiment
timeoutInMinutes: 45
pool:
name: NetCore-Public
demands: ImageOverride -equals windows.vs2026preview.scout.amd64.open
steps:
- checkout: self
clean: true
- template: /eng/pipelines/steps/install-windows-prereqs.yml
- pwsh: |
& .\eng\common\CIBuild.cmd `
-configuration $(_BuildConfig) `
-prepareMachine `
-projects WindowsDebugUnitTests.slnf `
-binaryLogName WindowsDebugSlim.binlog `
/p:Test=false `
/p:Pack=false `
/p:Sign=false `
/p:Publish=false `
/p:PublishWindowsPdb=false `
/p:FastAcceptanceTest=true
exit $LASTEXITCODE
displayName: Build unit-test graph
- ${{ if eq(parameters.SkipTests, false) }}:
- pwsh: |
New-Item "$(Build.SourcesDirectory)\artifacts\TestResults\$(_BuildConfig)" -ItemType Directory -Force | Out-Null
dotnet test --no-build --test-modules "artifacts/bin/*UnitTests*/$(_BuildConfig)/**/*UnitTests.exe" --results-directory $(BUILD.SOURCESDIRECTORY)\artifacts\TestResults\$(_BuildConfig) $(_DebugUnitTestReportArgs) --diagnostic --diagnostic-output-directory $(BUILD.SOURCESDIRECTORY)\artifacts\log\$(_BuildConfig) --diagnostic-verbosity trace --show-test-results failed
exit $LASTEXITCODE
displayName: Test unit-test graph
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- task: PublishTestResults@2
displayName: Publish slim TRX Test Results
inputs:
testResultsFormat: VSTest
testResultsFiles: '*.trx'
searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/TestResults/$(_BuildConfig)'
testRunTitle: '$(System.JobName)-trx'
continueOnError: true
condition: always()
- pwsh: New-Item '$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)' -ItemType Directory -Force | Out-Null
displayName: Ensure slim logs directory exists
condition: always()
- task: PublishPipelineArtifact@1
displayName: Publish slim build logs
inputs:
targetPath: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
artifactName: 'WindowsDebugSlimLogs_Attempt$(System.JobAttempt)'
condition: always()