Skip to content

Remove stale test analyzer suppressions#128315

Merged
MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:remove-stale-test-analyzer-suppressions
May 18, 2026
Merged

Remove stale test analyzer suppressions#128315
MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:remove-stale-test-analyzer-suppressions

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

These are no longer needed thanks to extra analysis and Arcade fixes.

Cc @dotnet/illink

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes stale EnableTrimAnalyzer/EnableAotAnalyzer suppressions in test project files that were originally added as workarounds for #126862. With analyzer improvements and Arcade fixes, the suppressions are no longer needed.

Changes:

  • Removes EnableAotAnalyzer=false and/or EnableTrimAnalyzer=false suppressions from ~23 test .csproj files.
  • Removes the corresponding <!-- https://github.com/dotnet/runtime/issues/126862 --> comment where both suppressions were dropped; comments are retained where one suppression still remains.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/libraries/Microsoft.Extensions.Logging/tests/Common/Microsoft.Extensions.Logging.Tests.csproj Drop stale AOT analyzer suppression.
src/libraries/Microsoft.Win32.SystemEvents/tests/Microsoft.Win32.SystemEvents.Tests.csproj Drop stale AOT analyzer suppression.
src/libraries/System.DirectoryServices.AccountManagement/tests/...Tests.csproj Drop stale trim analyzer suppression.
src/libraries/System.Formats.Asn1/tests/System.Formats.Asn1.Tests.csproj Drop stale AOT analyzer suppression.
src/libraries/System.IO.MemoryMappedFiles/tests/...Tests.csproj Drop stale AOT analyzer suppression.
src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/...csproj Drop stale AOT analyzer suppression (trim suppression kept).
src/libraries/System.Net.Http/tests/FunctionalTests/...csproj Drop stale AOT analyzer suppression (trim suppression kept).
src/libraries/System.Net.Http/tests/UnitTests/...csproj Drop stale AOT analyzer suppression.
src/libraries/System.Net.Mail/tests/Functional/...csproj Drop stale trim analyzer suppression (AOT suppression kept).
src/libraries/System.Net.NameResolution/tests/FunctionalTests/...csproj Drop stale trim analyzer suppression.
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/...csproj Drop both trim and AOT suppressions.
src/libraries/System.Net.Ping/tests/FunctionalTests/...csproj Drop stale trim analyzer suppression.
src/libraries/System.Net.Primitives/tests/FunctionalTests/...csproj Drop both trim and AOT suppressions.
src/libraries/System.Net.Security/tests/FunctionalTests/...csproj Drop stale trim analyzer suppression (AOT suppression kept).
src/libraries/System.Net.Security/tests/UnitTests/...csproj Drop stale AOT analyzer suppression.
src/libraries/System.Net.Sockets/tests/FunctionalTests/...csproj Drop both trim and AOT suppressions.
src/libraries/System.Private.Xml.Linq/tests/misc/...csproj Drop stale AOT analyzer suppression.
src/libraries/System.Runtime/tests/System.Globalization.Tests/Invariant/Invariant.Tests.csproj Drop stale trim analyzer suppression.
src/libraries/System.Security.AccessControl/tests/...csproj Drop stale AOT analyzer suppression.
src/libraries/System.Security.Cryptography.Cng/tests/...csproj Drop stale AOT analyzer suppression (trim suppression kept).
src/libraries/System.Security.Cryptography.Cose/tests/...csproj Drop stale AOT analyzer suppression.
src/libraries/System.Security.Cryptography.Csp/tests/...csproj Drop stale AOT analyzer suppression (trim suppression kept).
src/libraries/System.Threading/tests/System.Threading.Tests.csproj Drop stale AOT analyzer suppression.

Copy link
Copy Markdown
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Nice

@MichalStrehovsky
Copy link
Copy Markdown
Member Author

/ba-g helix workitem crash in interpreter

@MichalStrehovsky MichalStrehovsky merged commit 8400ed3 into dotnet:main May 18, 2026
85 of 92 checks passed
@MichalStrehovsky MichalStrehovsky deleted the remove-stale-test-analyzer-suppressions branch May 18, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants