From 70fd786be63c0edafac22c1c9ab863bdc0e3ac7b Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 20 Mar 2026 11:38:45 -0500 Subject: [PATCH 1/2] [build] Add `build-summary` stage to `Xamarin.Android-PR` pipeline Context: https://devdiv.visualstudio.com/DevDiv/_git/Xamarin.yaml-templates/pullrequest/720277 Points yaml-templates at `dev/peppers/build-summary` to test the new `build-summary` template. Only runs on `Xamarin.Android-PR` pipeline for non-fork PRs. For testing: * Add invalid XML to NativeAOT.targets to trigger test failures Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com> --- build-tools/automation/azure-pipelines.yaml | 17 ++++++++++++++++- .../Microsoft.Android.Sdk.NativeAOT.targets | 3 +++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index a8b0871ca9b..9c50fbe96df 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -18,7 +18,7 @@ resources: - repository: yaml-templates type: git name: DevDiv/Xamarin.yaml-templates - ref: refs/heads/main + ref: refs/heads/dev/peppers/build-summary - repository: android-platform-support type: git name: DevDiv/android-platform-support @@ -456,3 +456,18 @@ extends: policheckPtbScanFolder: $(Build.SourcesDirectory)\Localize\loc\pt-BR policheckRusScanFolder: $(Build.SourcesDirectory)\Localize\loc\ru policheckTrkScanFolder: $(Build.SourcesDirectory)\Localize\loc\tr + + - ${{ if eq(variables['Build.DefinitionName'], 'Xamarin.Android-PR') }}: + - stage: BuildSummary + dependsOn: + - mac_build + - win_build_test + - linux_build + - smoke_tests + - linux_tests + - msbuild_dotnet + - msbuilddevice_tests + - maui_tests + condition: failed() + jobs: + - template: build-summary/v1.yml@yaml-templates diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets index b4ecd0f5fe6..196ea082539 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets @@ -7,6 +7,9 @@ This file contains the NativeAOT-specific MSBuild logic for .NET for Android. --> + + + From 45dcfdfb5e6b64a490c3c11a9af640d9baa5ca1e Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 24 Mar 2026 16:54:26 -0500 Subject: [PATCH 2/2] Point yaml-templates back to main, remove intentional breakage The build-summary template has been merged to main in Xamarin.yaml-templates. Remove the deliberate invalid XML from NativeAOT.targets that was used for testing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build-tools/automation/azure-pipelines.yaml | 2 +- .../targets/Microsoft.Android.Sdk.NativeAOT.targets | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 9c50fbe96df..29836acff14 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -18,7 +18,7 @@ resources: - repository: yaml-templates type: git name: DevDiv/Xamarin.yaml-templates - ref: refs/heads/dev/peppers/build-summary + ref: refs/heads/main - repository: android-platform-support type: git name: DevDiv/android-platform-support diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets index 196ea082539..b4ecd0f5fe6 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets @@ -7,9 +7,6 @@ This file contains the NativeAOT-specific MSBuild logic for .NET for Android. --> - - -