Skip to content

Commit

Permalink
[ci] Use static macOS pool for nightly emulator tests (#8206)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pjcollins authored Aug 3, 2023
1 parent 180dd52 commit c22b2a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
21 changes: 16 additions & 5 deletions build-tools/automation/azure-pipelines-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ stages:
parameters:
emulatorMSBuildArgs: -p:TestAvdExtraBootArgs=-writable-system
jobName: SystemApplicationTests
jobTimeout: 120
testSteps:
- template: run-nunit-tests.yaml
parameters:
Expand All @@ -173,13 +174,18 @@ stages:
- job: mac_timezoneinfo_tests
displayName: TimeZoneInfoTests Emulator Tests
strategy:
parallel: 4
parallel: 3
pool:
vmImage: $(HostedMacImage)
name: VSEng-VSMac-Xamarin-Shared
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
timeoutInMinutes: 120
workspace:
clean: all
steps:
- template: agent-cleanser/v1.yml@yaml-templates

- template: yaml-templates/setup-test-environment.yaml
parameters:
installTestSlicer: true
Expand Down Expand Up @@ -221,13 +227,18 @@ stages:
- job: mac_localization_tests
displayName: Localization Emulator Tests
strategy:
parallel: 10
parallel: 6
pool:
vmImage: $(HostedMacImage)
name: VSEng-VSMac-Xamarin-Shared
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
timeoutInMinutes: 150
workspace:
clean: all
steps:
- template: agent-cleanser/v1.yml@yaml-templates

- template: yaml-templates/setup-test-environment.yaml
parameters:
installTestSlicer: true
Expand All @@ -249,7 +260,7 @@ stages:
parameters:
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/MSBuildDeviceIntegration/$(DotNetStableTargetFramework)/MSBuildDeviceIntegration.dll
testFilter: method == CheckLocalizationIsCorrectWithSlicer
testRunTitle: CheckTimeZoneInfoIsCorrect On Device - macOS
testRunTitle: CheckLocalizationIsCorrect On Device - macOS

- template: yaml-templates/upload-results.yaml
parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ jobs:
- job: mac_${{ parameters.jobName }}_tests
displayName: ${{ parameters.jobName }} Emulator Tests
pool:
vmImage: $(HostedMacImage)
name: VSEng-VSMac-Xamarin-Shared
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
timeoutInMinutes: ${{ parameters.jobTimeout }}
workspace:
clean: all
steps:
- template: agent-cleanser/v1.yml@yaml-templates

- template: setup-test-environment.yaml
parameters:
installLegacyDotNet: false
Expand Down

0 comments on commit c22b2a8

Please sign in to comment.