Repository navigation
Avoid false duplicate-code reports for required AOT attributes - #11749
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
e159af3 to
0c40aac
Compare
|
Final test-triage resolution — Azure Pipelines build 1623348 Build completed successfully ( Finding: The only non-passed record in the full evidence set is This is not a defect: the test is an intentional integration-test asset ( Historical correlation: checked the last 12 completed Confidence: High. No code/test defect, no environmental flake, no recurrence pattern indicating regression. Conclusion: No issue created — this is expected test design, not an actionable CI failure. No further action required for this build.
|
The repeated trimming and AOT attributes are intentional: compiler and linker diagnostics require the built-in attributes directly on every public overload, so a wrapper attribute or annotated helper would change caller behavior.
AreEquivalent/AreNotEquivalentdeclarations must remain repeated.Validation
gh aw compile duplicate-code-detector --strict— passed.python .github\scripts\check_action_pins.py— passed (2,556 references)..\build.cmd -projects test\UnitTests\TestFramework.UnitTests\TestFramework.UnitTests.csproj -bl— passed with 0 warnings and 0 errors.Microsoft.VisualStudio.TestPlatform.TestFramework.UnitTests.exe --filter-uid Microsoft.VisualStudio.TestPlatform.TestFramework.UnitTests.AssertTests.StructuralEquivalenceAssertions_DeclareTrimAndAotRequirements ...— passed (1/1).Fixes #11745