diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 0ca96a500ec..19e4e90981b 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -94,7 +94,10 @@ stages: - job: mac_apk_tests_net displayName: macOS > Tests > APKs .NET pool: - vmImage: $(HostedMacImage) + name: VSEng-VSMac-Xamarin-Shared + demands: + - macOS.Name -equals Ventura + - macOS.Architecture -equals arm64 timeoutInMinutes: 180 workspace: clean: all diff --git a/build-tools/automation/yaml-templates/run-msbuild-tests.yaml b/build-tools/automation/yaml-templates/run-msbuild-tests.yaml index 9d391d2de82..92777ac4ee4 100644 --- a/build-tools/automation/yaml-templates/run-msbuild-tests.yaml +++ b/build-tools/automation/yaml-templates/run-msbuild-tests.yaml @@ -18,7 +18,10 @@ jobs: pool: $(1ESWindowsPool) ${{ if eq(parameters.testOS, 'macOS') }}: pool: - vmImage: $(HostedMacImage) + name: VSEng-VSMac-Xamarin-Shared + demands: + - macOS.Name -equals Ventura + - macOS.Architecture -equals x64 timeoutInMinutes: 180 cancelTimeoutInMinutes: 5 steps: diff --git a/build-tools/automation/yaml-templates/stage-msbuild-emulator-tests.yaml b/build-tools/automation/yaml-templates/stage-msbuild-emulator-tests.yaml index a6eeba08f25..10544ae57d2 100644 --- a/build-tools/automation/yaml-templates/stage-msbuild-emulator-tests.yaml +++ b/build-tools/automation/yaml-templates/stage-msbuild-emulator-tests.yaml @@ -4,7 +4,7 @@ parameters: stageName: msbuilddevice_tests job_name: 'mac_dotnetdevice_tests' dependsOn: mac_build - agent_count: 8 + agent_count: 6 stageCondition: succeeded() stagePrefix: '' xaSourcePath: $(System.DefaultWorkingDirectory) @@ -25,7 +25,10 @@ stages: parallel: ${{ parameters.agent_count }} displayName: "macOS > Tests > MSBuild+Emulator" pool: - vmImage: $(HostedMacImage) + name: VSEng-VSMac-Xamarin-Shared + demands: + - macOS.Name -equals Ventura + - macOS.Architecture -equals arm64 timeoutInMinutes: 90 cancelTimeoutInMinutes: 5 workspace: @@ -87,7 +90,10 @@ stages: deviceName: wear_square androidSdkPlatforms: 33 pool: - vmImage: $(HostedMacImage) + name: VSEng-VSMac-Xamarin-Shared + demands: + - macOS.Name -equals Ventura + - macOS.Architecture -equals x64 workspace: clean: all steps: diff --git a/build-tools/automation/yaml-templates/stage-msbuild-tests.yaml b/build-tools/automation/yaml-templates/stage-msbuild-tests.yaml index 6c9eaf929d7..3d5ed3e63e3 100644 --- a/build-tools/automation/yaml-templates/stage-msbuild-tests.yaml +++ b/build-tools/automation/yaml-templates/stage-msbuild-tests.yaml @@ -21,7 +21,7 @@ stages: testOS: macOS jobName: mac_msbuild_tests jobDisplayName: macOS > Tests > MSBuild - agentCount: 10 + agentCount: 6 testFilter: cat != Dummy # This is because $(ExcludedNUnitCategories) gets appended which starts with '&' xaSourcePath: ${{ parameters.xaSourcePath }} repositoryAlias: ${{ parameters.repositoryAlias }} diff --git a/tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs b/tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs index df4eca72697..2763ca27aa9 100644 --- a/tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs +++ b/tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs @@ -25,7 +25,7 @@ public void BuildBasicApplicationAndAotProfileIt () IsRelease = true, AotAssemblies = false, }; - proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); + proj.SetAndroidSupportedAbis ("arm64-v8a", "x86_64"); if (Builder.UseDotNet) { // TODO: only needed in .NET 6+ diff --git a/tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs b/tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs index b94326b4684..459fa5d77bd 100755 --- a/tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs +++ b/tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs @@ -59,7 +59,7 @@ public void ApplicationRunsWithoutDebugger ([Values (false, true)] bool isReleas IsRelease = isRelease, }; if (isRelease || !CommercialBuildAvailable) { - proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); + proj.SetAndroidSupportedAbis ("arm64-v8a", "x86_64"); } proj.SetDefaultTargetDevice (); if (Builder.UseDotNet && isRelease) { @@ -91,7 +91,7 @@ public void ClassLibraryMainLauncherRuns ([Values (true, false)] bool preloadAss ProjectName = "MyApp", }; if (!CommercialBuildAvailable) { - app.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); + app.SetAndroidSupportedAbis ("arm64-v8a", "x86_64"); } app.SetDefaultTargetDevice (); app.SetProperty ("AndroidEnablePreloadAssemblies", preloadAssemblies.ToString ()); @@ -192,7 +192,7 @@ public void CustomApplicationRunsWithDebuggerAndBreaks (bool embedAssemblies, st IsRelease = false, AndroidFastDeploymentType = fastDevType, }; - proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); + proj.SetAndroidSupportedAbis ("arm64-v8a", "x86_64"); proj.SetProperty ("EmbedAssembliesIntoApk", embedAssemblies.ToString ()); proj.SetProperty ("AndroidPackageFormat", packageFormat); proj.SetDefaultTargetDevice (); @@ -434,7 +434,7 @@ public Foo () app.SetProperty ("AndroidPackageFormat", packageFormat); app.MainPage = app.MainPage.Replace ("InitializeComponent ();", "InitializeComponent (); new Foo ();"); app.AddReference (lib); - app.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); + app.SetAndroidSupportedAbis ("arm64-v8a", "x86", "x86_64"); app.SetProperty (KnownProperties._AndroidAllowDeltaInstall, allowDeltaInstall.ToString ()); app.SetDefaultTargetDevice (); using (var libBuilder = CreateDllBuilder (Path.Combine (path, lib.ProjectName))) diff --git a/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs b/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs index 75ffe121ca4..d6963b88138 100644 --- a/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs +++ b/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs @@ -37,7 +37,7 @@ public void ReInstallIfUserUninstalled ([Values (false, true)] bool isRelease) IsRelease = isRelease, }; if (isRelease) { - proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); + proj.SetAndroidSupportedAbis ("arm64-v8a", "x86_64"); } using (var builder = CreateApkBuilder ()) { Assert.IsTrue (builder.Build (proj)); @@ -67,7 +67,7 @@ public void InstallAndUnInstall ([Values (false, true)] bool isRelease) if (isRelease) { // Set debuggable=true to allow run-as command usage with a release build proj.AndroidManifest = proj.AndroidManifest.Replace ("