@@ -99,199 +99,6 @@ stages:
9999  displayName : Smoke Tests 
100100  dependsOn : mac_build 
101101  jobs :
102-   #  Check - "Xamarin.Android (macOS > Tests > APKs Classic)"
103-   - job : mac_apk_tests_legacy 
104-     displayName : macOS > Tests > APKs Classic 
105-     #  Disabled on .NET release branches
106-     condition : and(succeeded(), eq(variables.IsRelOrTargetingRel, 'False')) 
107-     pool :
108-       vmImage : $(HostedMacImage) 
109-     timeoutInMinutes : 180 
110-     workspace :
111-       clean : all 
112-     variables :
113-       ApkTestConfiguration : Release 
114-     steps :
115-     - template : yaml-templates/setup-test-environment.yaml 
116-       parameters :
117-         configuration : $(ApkTestConfiguration) 
118-         provisionatorChannel : ${{ parameters.provisionatorChannel }} 
119- 
120-     - template : yaml-templates/run-xaprepare.yaml 
121-       parameters :
122-         displayName : install emulator 
123-         arguments : --s=EmulatorTestDependencies 
124- 
125-     - template : yaml-templates/run-dotnet-preview.yaml 
126-       parameters :
127-         project : Xamarin.Android.sln 
128-         arguments : -t:PrepareJavaInterop -c $(XA.Build.Configuration) -m:1 -v:n 
129-         displayName : prepare java.interop $(XA.Build.Configuration) 
130-         continueOnError : false 
131- 
132-     - template : yaml-templates/apk-instrumentation.yaml 
133-       parameters :
134-         configuration : $(ApkTestConfiguration) 
135-         testName : Xamarin.Android.JcwGen_Tests 
136-         project : tests/CodeGen-Binding/Xamarin.Android.JcwGen-Tests/Xamarin.Android.JcwGen-Tests.csproj 
137-         testResultsFiles : TestResult-Xamarin.Android.JcwGen_Tests-$(ApkTestConfiguration).xml 
138-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Android.JcwGen_Tests-Signed.apk 
139-         artifactFolder : Default 
140- 
141-     - template : yaml-templates/apk-instrumentation.yaml 
142-       parameters :
143-         configuration : $(ApkTestConfiguration) 
144-         testName : Xamarin.Android.JcwGen_Tests_FastDev 
145-         project : tests/CodeGen-Binding/Xamarin.Android.JcwGen-Tests/Xamarin.Android.JcwGen-Tests.csproj 
146-         testResultsFiles : TestResult-Xamarin.Android.JcwGen_Tests-$(ApkTestConfiguration).xml 
147-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Android.JcwGen_Tests-Signed.apk 
148-         artifactFolder : FastDev_Assemblies_Dexes 
149-         extraBuildArgs : /p:AndroidFastDeploymentType=Assemblies:Dexes 
150- 
151-     - template : yaml-templates/apk-instrumentation.yaml 
152-       parameters :
153-         configuration : $(ApkTestConfiguration) 
154-         testName : Xamarin.Android.Locale_Tests 
155-         project : tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj 
156-         testResultsFiles : TestResult-Xamarin.Android.Locale_Tests-$(ApkTestConfiguration).xml 
157-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Android.Locale_Tests-Signed.apk 
158-         artifactFolder : Default 
159- 
160-     - template : yaml-templates/apk-instrumentation.yaml 
161-       parameters :
162-         configuration : $(ApkTestConfiguration) 
163-         testName : Xamarin.Android.Locale_Tests-Aot 
164-         project : tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj 
165-         testResultsFiles : TestResult-Xamarin.Android.Locale_Tests-$(ApkTestConfiguration)-Aot.xml 
166-         extraBuildArgs : /p:AotAssemblies=True 
167-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Android.Locale_Tests-Signed.apk 
168-         artifactFolder : Aot 
169- 
170-     - template : yaml-templates/apk-instrumentation.yaml 
171-       parameters :
172-         configuration : $(ApkTestConfiguration) 
173-         testName : Xamarin.Android.Locale_Tests-Profiled-Aot 
174-         project : tests/locales/Xamarin.Android.Locale-Tests/Xamarin.Android.Locale-Tests.csproj 
175-         testResultsFiles : TestResult-Xamarin.Android.Locale_Tests-$(ApkTestConfiguration)-Profiled-Aot.xml 
176-         extraBuildArgs : /p:AotAssemblies=True /p:AndroidEnableProfiledAot=true 
177-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Android.Locale_Tests-Signed.apk 
178-         artifactFolder : Profiled-Aot 
179- 
180-     - template : yaml-templates/apk-instrumentation.yaml 
181-       parameters :
182-         configuration : $(ApkTestConfiguration) 
183-         testName : Xamarin.Android.EmbeddedDSO_Test 
184-         project : tests/EmbeddedDSOs/EmbeddedDSO/EmbeddedDSO.csproj 
185-         testResultsFiles : TestResult-Xamarin.Android.EmbeddedDSO_Test.nunit-$(ApkTestConfiguration).xml 
186-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Android.EmbeddedDSO_Test-Signed.apk 
187-         artifactFolder : Default 
188- 
189-     - template : yaml-templates/apk-instrumentation.yaml 
190-       parameters :
191-         configuration : $(ApkTestConfiguration) 
192-         testName : Xamarin.Forms-Performance-Integration 
193-         project : tests/Xamarin.Forms-Performance-Integration/Droid/Xamarin.Forms.Performance.Integration.Droid.csproj 
194-         testResultsFiles : TestResult-apkdiff-Xamarin.Forms_Performance_Integration-Signed-$(ApkTestConfiguration).xml 
195-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Forms_Performance_Integration-Signed.apk 
196-         artifactFolder : Default 
197- 
198-     - template : yaml-templates/apk-instrumentation.yaml 
199-       parameters :
200-         configuration : $(ApkTestConfiguration) 
201-         testName : Xamarin.Forms-Performance-Integration-Aot 
202-         project : tests/Xamarin.Forms-Performance-Integration/Droid/Xamarin.Forms.Performance.Integration.Droid.csproj 
203-         testResultsFiles : TestResult-apkdiff-Xamarin.Forms_Performance_Integration-Signed-$(ApkTestConfiguration)-Aot.xml 
204-         extraBuildArgs : /p:AotAssemblies=true 
205-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Forms_Performance_Integration-Signed.apk 
206-         artifactFolder : Aot 
207- 
208-     - template : yaml-templates/apk-instrumentation.yaml 
209-       parameters :
210-         configuration : $(ApkTestConfiguration) 
211-         testName : Xamarin.Forms-Performance-Integration-Profiled-Aot 
212-         project : tests/Xamarin.Forms-Performance-Integration/Droid/Xamarin.Forms.Performance.Integration.Droid.csproj 
213-         testResultsFiles : TestResult-apkdiff-Xamarin.Forms_Performance_Integration-Signed-$(ApkTestConfiguration)-Profiled-Aot.xml 
214-         extraBuildArgs : /p:AotAssemblies=True /p:AndroidEnableProfiledAot=true 
215-         artifactSource : bin/Test$(ApkTestConfiguration)/Xamarin.Forms_Performance_Integration-Signed.apk 
216-         artifactFolder : Profiled-Aot 
217- 
218-     - template : yaml-templates/apk-instrumentation.yaml 
219-       parameters :
220-         configuration : $(ApkTestConfiguration) 
221-         testName : VSAndroidApp 
222-         project : samples/VSAndroidAppProxy.csproj 
223-         testResultsFiles : TestResult-apkdiff-com.companyname.vsandroidapp-Signed-$(ApkTestConfiguration).xml 
224-         artifactSource : bin/Test$(ApkTestConfiguration)/com.companyname.vsandroidapp-Signed.apk 
225-         artifactFolder : Default 
226- 
227-     - task : MSBuild@1 
228-       displayName : shut down emulator 
229-       inputs :
230-         solution : tests/Mono.Android-Tests/Mono.Android-Tests.csproj 
231-         configuration : $(ApkTestConfiguration) 
232-         msbuildArguments : >- 
233-           /t:AcquireAndroidTarget,ReleaseAndroidTarget 
234-           /bl:$(System.DefaultWorkingDirectory)/bin/Test$(ApkTestConfiguration)/shutdown-emulator.binlog 
235- condition : always() 
236- 
237-     - template : yaml-templates/upload-results.yaml 
238-       parameters :
239-         configuration : $(ApkTestConfiguration) 
240-         artifactName : Test Results - APKs Legacy - macOS 
241- 
242-     #  Plots: Utilize command-line utility built here to send plot information contained in CSV files to AppInsights
243-     - task : MSBuild@1 
244-       displayName : build plots-to-appinsights 
245-       inputs :
246-         solution : build-tools/plots-to-appinsights/ProcessPlotCSVFile.csproj 
247-         configuration : $(ApkTestConfiguration) 
248-         msbuildArguments : >- 
249-           /restore 
250-           /t:Build 
251-           /v:normal 
252-           /bl:$(System.DefaultWorkingDirectory)/bin/Test$(ApkTestConfiguration)/plots-to-appinsights.binlog 
253- continueOnError : true 
254-       condition : and(succeeded(), or(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'Manual'))) 
255- 
256-     #  Process Plot CSV files and send results to AppInsights
257-     #  XamarinAndroidMetrics: https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/64e11c84-c922-4ffd-bea9-67ab39354edd/resourceGroups/XamarinMetrics/providers/microsoft.insights/components/XamarinAndroidMetrics/overview
258-     #  UNDONE: Need plot definitions for the following files:
259-     #   TestResult-Xamarin.Android.EmbeddedDSO_Test-times.csv
260- 
261-     - template : yaml-templates/plots-to-appinsights.yaml 
262-       parameters :
263-         condition : and(succeeded(), or(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'Manual'))) 
264-         configuration : $(ApkTestConfiguration) 
265-         plotGroup : Test times 
266-         plotTitle : Runtime merged 
267-         plotPathAndFilename : $(System.DefaultWorkingDirectory)/TestResult-Mono.Android_Tests-times.csv 
268- 
269-     - template : yaml-templates/plots-to-appinsights.yaml 
270-       parameters :
271-         condition : and(succeeded(), or(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'Manual'))) 
272-         configuration : $(ApkTestConfiguration) 
273-         plotGroup : Test times 
274-         plotTitle : Jcw 
275-         plotPathAndFilename : $(System.DefaultWorkingDirectory)/TestResult-Xamarin.Android.JcwGen_Tests-times.csv 
276- 
277-     - template : yaml-templates/plots-to-appinsights.yaml 
278-       parameters :
279-         condition : and(succeeded(), or(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'Manual'))) 
280-         configuration : $(ApkTestConfiguration) 
281-         plotGroup : Test times 
282-         plotTitle : Locale 
283-         plotPathAndFilename : $(System.DefaultWorkingDirectory)/TestResult-Xamarin.Android.Locale_Tests-times.csv 
284- 
285-     - template : yaml-templates/plots-to-appinsights.yaml 
286-       parameters :
287-         condition : and(succeeded(), or(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'Manual'))) 
288-         configuration : $(ApkTestConfiguration) 
289-         plotGroup : Test times 
290-         plotTitle : Xamarin.Forms app startup 
291-         plotPathAndFilename : $(System.DefaultWorkingDirectory)/TestResult-Xamarin.Forms_Test-times.csv 
292- 
293-     - template : yaml-templates/fail-on-issue.yaml 
294- 
295102 #  Check - "Xamarin.Android (macOS > Tests > APKs .NET)"
296103  - job : mac_apk_tests_net 
297104    displayName : macOS > Tests > APKs .NET 
@@ -650,44 +457,6 @@ stages:
650457  dependsOn : mac_build 
651458  condition : and(succeeded(), or(eq(variables['RunAllTests'], true), contains(dependencies.mac_build.outputs['mac_build_create_installers.TestConditions.TestAreas'], 'MSBuildDevice'))) 
652459  jobs :
653-   #  Check - "Xamarin.Android (macOS > Tests > MSBuild+Emulator Legacy #N)"
654-   - template : yaml-templates/run-msbuild-device-tests.yaml 
655-     parameters :
656-       node_id : 1 
657-       job_name : mac_msbuilddevice_tests_1 
658-       job_suffix : Legacy 
659-       nunit_categories : ' && cat != Debugger' 
660-       provisionatorChannel : ${{ parameters.provisionatorChannel }} 
661-       jobCondition : and(succeeded(), eq(variables.IsRelOrTargetingRel, 'False')) 
662- 
663-   - template : yaml-templates/run-msbuild-device-tests.yaml 
664-     parameters :
665-       node_id : 2 
666-       job_name : mac_msbuilddevice_tests_2 
667-       job_suffix : Legacy 
668-       nunit_categories : ' && cat != Debugger' 
669-       provisionatorChannel : ${{ parameters.provisionatorChannel }} 
670-       jobCondition : and(succeeded(), eq(variables.IsRelOrTargetingRel, 'False')) 
671- 
672-   - template : yaml-templates/run-msbuild-device-tests.yaml 
673-     parameters :
674-       node_id : 3 
675-       job_name : mac_msbuilddevice_tests_3 
676-       job_suffix : Legacy 
677-       nunit_categories : ' && cat != Debugger' 
678-       provisionatorChannel : ${{ parameters.provisionatorChannel }} 
679-       jobCondition : and(succeeded(), eq(variables.IsRelOrTargetingRel, 'False')) 
680- 
681-   - template : yaml-templates/run-msbuild-device-tests.yaml 
682-     parameters :
683-       node_id : 4 
684-       job_name : mac_msbuilddevice_tests_with_debugger 
685-       job_suffix : Legacy 
686-       jdkTestFolder : $(XA.Jdk11.Folder) 
687-       nunit_categories : ' && cat == Debugger' 
688-       provisionatorChannel : ${{ parameters.provisionatorChannel }} 
689-       jobCondition : and(succeeded(), eq(variables.IsRelOrTargetingRel, 'False')) 
690- 
691460  #  Check - "Xamarin.Android (macOS > Tests > MSBuild+Emulator One .NET #N)"
692461  - template : yaml-templates/run-msbuild-device-tests.yaml 
693462    parameters :
0 commit comments