Skip to content

[release/10.0.1xx] Backport CI build fixes - #12667

Open
jonathanpeppers wants to merge 2 commits into
release/10.0.1xxfrom
jonathanpeppers-investigate-10-0-1xx-failures
Open

[release/10.0.1xx] Backport CI build fixes#12667
jonathanpeppers wants to merge 2 commits into
release/10.0.1xxfrom
jonathanpeppers-investigate-10-0-1xx-failures

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

Backports the CI fixes identified while investigating Azure DevOps build 15189356:

For the MAUI integration failure, both pipeline checkouts are pinned to the latest stable .NET MAUI 10.0.100 service release. This provides an immutable .NET 10-compatible source revision instead of following a moving branch.

The macOS Debug APK failure is not included because the logs indicated a transient test-runner failure and all Release variants passed.

Testing

  • git diff --check
  • Verified MAUI 10.0.100 is a stable release and uses .NET SDK 10.0.108
  • Local MSBuild tests were not run because this checkout does not contain a prepared .NET for Android build

Backport the Guardian incrementality, SARIF ignore, and submodule dirty-tree fixes from main. Pin MAUI integration checkouts to net10.0 for release compatibility.

Backported-from: f708e85

Backported-from: 52c36b4

Backported-from: 9595ae3

Adapted-from: 3205de6

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1376546a-f323-4b6f-9eca-b9ada68f8996
Copilot AI lite review requested due to automatic review settings September 3, 2026 17:06

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.

🟡 Changes recommended

The MAUI pipeline resource ref should use an explicit refs/heads/net10.0 to avoid ambiguity and match established pipeline conventions in the same files.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR backports several CI robustness fixes into the release/10.0.1xx branch for .NET for Android, addressing build incrementality regressions from Guardian/SDL tooling, avoiding fail-on-dirty-tree false positives, and aligning MAUI pipeline inputs with .NET 10 servicing.

Changes:

  • Generate a Directory.Build.targets in test projects to clear ResolvedCodeAnalysisRuleSet before CoreCompile, preserving CI incrementality under Guardian analysis.
  • Update CI hygiene: ignore Guardian *.gdn.sarif outputs and ignore submodule working tree state in the “fail on dirty tree” pipeline check.
  • Pin dotnet/maui pipeline resource checkouts to net10.0 for .NET 10 alignment.
File summaries
File Description
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XamarinAndroidProject.cs Adds generated Directory.Build.targets injection (incl. extensibility hook) to clear ResolvedCodeAnalysisRuleSet for incremental builds.
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XamarinAndroidApplicationProject.cs Moves AndroidX workaround into the new extensibility hook instead of writing its own Directory.Build.targets.
build-tools/automation/yaml-templates/fail-on-dirty-tree.yaml Makes dirty-tree detection ignore submodule working tree changes.
build-tools/automation/azure-pipelines.yaml Pins MAUI pipeline resource to net10.0.
build-tools/automation/azure-pipelines-nightly.yaml Pins nightly MAUI pipeline resource to net10.0.
.gitignore Ignores Guardian-generated *.gdn.sarif files.
.github/copilot-instructions.md Updates contributor guidance to prefer C# raw string literals for multi-line strings.
Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread build-tools/automation/azure-pipelines-nightly.yaml Outdated
Comment thread build-tools/automation/azure-pipelines.yaml Outdated
Use the latest stable MAUI service release instead of a moving branch for the .NET 10 integration lanes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1376546a-f323-4b6f-9eca-b9ada68f8996
@jonathanpeppers

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants