Skip to content

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

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

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

Conversation

@jkoritzinsky

Copy link
Copy Markdown
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

ghost commented Aug 1, 2022

Copy link
Copy Markdown

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
Copy Markdown
Member

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

@jkoritzinsky

Copy link
Copy Markdown
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
Copy Markdown
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