Skip to content

Comments

Make diagnostic checks more reliable with more exact result matching.#73178

Merged
jkoritzinsky merged 4 commits intodotnet:mainfrom
jkoritzinsky:diagnostic-reliability
Aug 2, 2022
Merged

Make diagnostic checks more reliable with more exact result matching.#73178
jkoritzinsky merged 4 commits intodotnet:mainfrom
jkoritzinsky:diagnostic-reliability

Conversation

@jkoritzinsky
Copy link
Member

Fixes #73127

Generate DiagnosticResult values with the actual diagnostic message instead of just the message arguments to help direct the test harness to directly match the expected diagnostics with the actual diagnostics.

Fixes dotnet#73127

Generate DiagnosticResult values with the actual diagnostic message instead of just the message arguments to help direct the test harness to directly match the expected diagnostics with the actual diagnostics.
@ghost
Copy link

ghost commented Aug 1, 2022

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

Issue Details

Fixes #73127

Generate DiagnosticResult values with the actual diagnostic message instead of just the message arguments to help direct the test harness to directly match the expected diagnostics with the actual diagnostics.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: -

@elinor-fung
Copy link
Member

Do we need to do the same thing for the stateful collection, stateless value, and stateless collection shape validation tests?

@jkoritzinsky
Copy link
Member Author

I think we might need to do the same for stateful collection, but I'm not sure with the stateless shapes. I'll do a quick pass and see if there's any other ones I need to handle.

Use helper in more tests where this could technically be an issue.
@jkoritzinsky
Copy link
Member Author

Failure is unrelated

@jkoritzinsky jkoritzinsky merged commit dae9edc into dotnet:main Aug 2, 2022
@jkoritzinsky jkoritzinsky deleted the diagnostic-reliability branch August 2, 2022 22:56
@ghost ghost locked as resolved and limited conversation to collaborators Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LibraryImportGenerator ModeThatUsesBidirectionalShape_Missing_AllMethods_ReportsDiagnostic failure in CI

3 participants