Skip to content

[build] Add build-summary stage to Xamarin.Android-PR pipeline - #10982

Merged
jonathanpeppers merged 2 commits into
mainfrom
dev/peppers/build-summary
Mar 30, 2026
Merged

[build] Add build-summary stage to Xamarin.Android-PR pipeline#10982
jonathanpeppers merged 2 commits into
mainfrom
dev/peppers/build-summary

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

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

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>
@jonathanpeppers

jonathanpeppers commented Mar 24, 2026

Copy link
Copy Markdown
Member Author

If you go to any Xamarin.Android-PR pipeline run, the Extensions tab will have a markdown file like:

image image

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>
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review March 24, 2026 21:55
Copilot AI review requested due to automatic review settings March 24, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a failure-only BuildSummary stage to the Xamarin.Android-PR Azure Pipelines definition so failed PR runs can publish a consolidated build summary using the shared yaml-templates build-summary template.

Changes:

  • Adds a new BuildSummary stage gated on Build.DefinitionName == Xamarin.Android-PR.
  • Configures the stage to depend on the main build/test stages and run only when the pipeline is failing (condition: failed()).
  • Uses build-summary/v1.yml@yaml-templates as the job template for the stage.

Comment thread build-tools/automation/azure-pipelines.yaml
Comment thread build-tools/automation/azure-pipelines.yaml
Comment thread build-tools/automation/azure-pipelines.yaml
@jonathanpeppers

Copy link
Copy Markdown
Member Author

Great explanation of a flaky test:

image

@jonathanpeppers
jonathanpeppers merged commit cee2497 into main Mar 30, 2026
9 of 10 checks passed
@jonathanpeppers
jonathanpeppers deleted the dev/peppers/build-summary branch March 30, 2026 13:24
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants