Skip to content

[Tests] Remove obsolete Apple NativeAOT warning workaround - #37940

Merged
kubaflo merged 1 commit into
mainfrom
jfversluis-validate-nativeaot-warnings
Aug 28, 2026
Merged

kubaflo merged 1 commit into
mainfrom
jfversluis-validate-nativeaot-warnings

Conversation

@jfversluis

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description

Removes the IlcTreatWarningsAsErrors=false workaround and its TODO from the Apple NativeAOT simulator integration test.

The linked tracking issue, #19397, was closed after all template trimming warnings were resolved. The dedicated AOTTemplateTest.PublishNativeAOT suite also maintains an empty expected-warning baseline for Apple NativeAOT builds, so the simulator run should enforce the default ILC warning policy again.

Validation

  • The exact AppleTemplateTests.RunOniOS_MauiNativeAOT test compiled and started on Windows, but Windows could not complete the Apple ILC phase because the iOS-simulator NativeAOT runtime pack was unavailable (MSB3030 for System.Runtime.InteropServices.RuntimeInformation.dll).
  • The Windows AOTTemplateTest.PublishNativeAOT(... win-arm64) proxy passed, including its assertion that the complete NativeAOT binlog warning list is empty.

Apple-specific ILC/codegen and simulator execution require the macOS CI lanes and will be monitored on this draft PR.

Issue #19397 was closed after the template warnings were resolved, so allow the simulator NativeAOT build to enforce its default warning policy.

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

Copilot-Session: 37f90cb9-27a1-41b7-b954-95bbbcc9e81e
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37940

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37940"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added area-testing Unit tests, device tests platform/ios labels Aug 28, 2026
@jfversluis
jfversluis marked this pull request as ready for review August 28, 2026 13:15
Copilot AI lite review requested due to automatic review settings August 28, 2026 13:15
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo merged commit 169aff2 into main Aug 28, 2026
24 of 39 checks passed
@kubaflo
kubaflo deleted the jfversluis-validate-nativeaot-warnings branch August 28, 2026 13:17
@github-actions github-actions Bot added this to the .NET 10 SR11 milestone Aug 28, 2026

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.

Copilot review overview

Review tier: Lite
Findings: None

What changed in this PR

This PR updates the MAUI integration test suite by removing an obsolete NativeAOT build-property workaround for Apple simulator runs, restoring the default ILC warning behavior for that specific test path.

Changes:

  • Removed IlcTreatWarningsAsErrors=false (and its TODO linked to #19397) from the Apple NativeAOT simulator integration test build properties.
File Description
src/​TestUtils/​src/​Microsoft.Maui.IntegrationTests/​AppleTemplateTests.cs Removes the Apple NativeAOT simulator test workaround that disabled treating ILC warnings as errors.

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — a5dd5afb Deployed Aug 28, 2026 by jfversluis via conclusion #1601
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-testing Unit tests, device tests platform/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants