Skip to content

Commit c22b2a8

Browse files
authored
[ci] Use static macOS pool for nightly emulator tests (#8206)
Attempts to improve the reliability and performance of our nightly emulator tests by using a machine pool containing static mac minis that are more performant than the hosted VMs.
1 parent 180dd52 commit c22b2a8

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

build-tools/automation/azure-pipelines-nightly.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ stages:
153153
parameters:
154154
emulatorMSBuildArgs: -p:TestAvdExtraBootArgs=-writable-system
155155
jobName: SystemApplicationTests
156+
jobTimeout: 120
156157
testSteps:
157158
- template: run-nunit-tests.yaml
158159
parameters:
@@ -173,13 +174,18 @@ stages:
173174
- job: mac_timezoneinfo_tests
174175
displayName: TimeZoneInfoTests Emulator Tests
175176
strategy:
176-
parallel: 4
177+
parallel: 3
177178
pool:
178-
vmImage: $(HostedMacImage)
179+
name: VSEng-VSMac-Xamarin-Shared
180+
demands:
181+
- macOS.Name -equals Ventura
182+
- macOS.Architecture -equals x64
179183
timeoutInMinutes: 120
180184
workspace:
181185
clean: all
182186
steps:
187+
- template: agent-cleanser/v1.yml@yaml-templates
188+
183189
- template: yaml-templates/setup-test-environment.yaml
184190
parameters:
185191
installTestSlicer: true
@@ -221,13 +227,18 @@ stages:
221227
- job: mac_localization_tests
222228
displayName: Localization Emulator Tests
223229
strategy:
224-
parallel: 10
230+
parallel: 6
225231
pool:
226-
vmImage: $(HostedMacImage)
232+
name: VSEng-VSMac-Xamarin-Shared
233+
demands:
234+
- macOS.Name -equals Ventura
235+
- macOS.Architecture -equals x64
227236
timeoutInMinutes: 150
228237
workspace:
229238
clean: all
230239
steps:
240+
- template: agent-cleanser/v1.yml@yaml-templates
241+
231242
- template: yaml-templates/setup-test-environment.yaml
232243
parameters:
233244
installTestSlicer: true
@@ -249,7 +260,7 @@ stages:
249260
parameters:
250261
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/MSBuildDeviceIntegration/$(DotNetStableTargetFramework)/MSBuildDeviceIntegration.dll
251262
testFilter: method == CheckLocalizationIsCorrectWithSlicer
252-
testRunTitle: CheckTimeZoneInfoIsCorrect On Device - macOS
263+
testRunTitle: CheckLocalizationIsCorrect On Device - macOS
253264

254265
- template: yaml-templates/upload-results.yaml
255266
parameters:

build-tools/automation/yaml-templates/run-emulator-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ jobs:
1010
- job: mac_${{ parameters.jobName }}_tests
1111
displayName: ${{ parameters.jobName }} Emulator Tests
1212
pool:
13-
vmImage: $(HostedMacImage)
13+
name: VSEng-VSMac-Xamarin-Shared
14+
demands:
15+
- macOS.Name -equals Ventura
16+
- macOS.Architecture -equals x64
1417
timeoutInMinutes: ${{ parameters.jobTimeout }}
1518
workspace:
1619
clean: all
1720
steps:
21+
- template: agent-cleanser/v1.yml@yaml-templates
22+
1823
- template: setup-test-environment.yaml
1924
parameters:
2025
installLegacyDotNet: false

0 commit comments

Comments
 (0)