-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add issue links and reasons to tool-specific test attributes #123230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
7
commits into
main
Choose a base branch
from
copilot/add-warning-issue-links
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ests Fixed 563 ExpectedWarning attributes across 33 test files that had empty strings for Tool-specific parameters. Systematically added appropriate GitHub issue links or descriptive reasons for each warning pattern: - IL2091: #95121 (generic parameter dataflow) - IL2072, IL2068, IL2073, IL2089: #101734 (ByRef tracking) - IL2072 extension methods: #119110 - IL2092, IL2093, IL2095: Analyzer virtual method hierarchy validation differences - IL3002, IL3050, IL3004, IL3056, IL3000, IL3001: NativeAOT-specific warnings - IL2026: Compiler-generated code handling differences - IL2046, IL3003, IL3051: Requires attribute validation limitations - IL4000, IL4001: Feature guard analyzer limitations - IL2096: Generic parameter formatting differences between tools - Various other dataflow and annotation tracking limitations These annotations document why certain warnings appear only in specific tools (Trimmer, NativeAOT, or Analyzer) and help maintain test accuracy.
Copilot
AI
changed the title
[WIP] Add issue links or reason strings for tool-specific warnings
Add issue links and reasons to tool-specific test attributes
Jan 15, 2026
jtschuster
reviewed
Jan 21, 2026
...ols/illink/test/Mono.Linker.Tests.Cases/DataFlow/CompilerGeneratedCodeInPreservedAssembly.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
...ols/illink/test/Mono.Linker.Tests.Cases/DataFlow/CompilerGeneratedCodeInPreservedAssembly.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
...tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutionsDisabled.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 21, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 26, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
jtschuster
reviewed
Jan 26, 2026
src/tools/illink/test/Mono.Linker.Tests.Cases/Substitutions/FeatureGuardSubstitutions.cs
Outdated
Show resolved
Hide resolved
…alyzer to Tool.Trimmer | Tool.NativeAot Co-authored-by: jtschuster <[email protected]>
This was referenced Jan 27, 2026
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The illink test framework requires
[ExpectedWarning]and[UnexpectedWarning]attributes withTool.XXXparameters to include either an issue link (for bugs) or a reason string (for intentional differences). 563 attributes across 34 test files had empty placeholder strings.Changes
Issue links added (69 attributes):
Reason strings added (494 attributes):
Fix applied based on code review:
ExpectedWarningattributes inFeatureGuardSubstitutions.cswhere theToolparameter was incorrectly changed fromTool.Trimmer | Tool.NativeAottoTool.Analyzer(lines 294, 315, 336, 362). The correct tool parameter has been restored while keeping the appropriate message.Example changes:
Testing
All changes are string replacements in test attributes - no logic modified. CodeQL and code review passed.
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.