[tests] Revert workarounds for dotnet/runtime#123503. Fixes #24558.#25711
Conversation
The workarounds (disabling trim/AOT analyzers and suppressing AD0001 warnings) are no longer necessary now that the underlying runtime issue has been fixed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Pull request overview
Removes temporary build/test workarounds that were introduced due to dotnet/runtime#123503, restoring normal analyzer behavior and re-enabling a previously ignored NativeAOT+trim-analysis unit test (fixing #24558).
Changes:
- Remove repo-wide MSBuild properties that disabled trim/AOT analyzers and suppressed AD0001 in
Directory.Build.props. - Re-enable
BuildMyNativeAotAppWithTrimAnalysisWarningby removing its[Ignore]attribute.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
Directory.Build.props |
Removes the temporary analyzer-disabling/suppression PropertyGroup added as a workaround for dotnet/runtime#123503. |
tests/dotnet/UnitTests/ProjectTest.cs |
Re-enables the NativeAOT trim-analysis warning test by dropping the issue-linked ignore. |
✅ [PR Build #75bb66f] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #75bb66f] Build passed (Build packages) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [PR Build #75bb66f] Build passed (Build macOS tests) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #75bb66f] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 205 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Remove workarounds that were added due to dotnet/runtime#123503:
EnableTrimAnalyzer=false,EnableAotAnalyzer=false, andNoWarn AD0001fromDirectory.Build.props.[Ignore]attribute fromBuildMyNativeAotAppWithTrimAnalysisWarningtest.Fixes #24558
🤖 Pull request created by Copilot