Skip to content
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

Logging generator: Handle multiple type definitions #5352

Conversation

dariusclay
Copy link
Contributor

@dariusclay dariusclay commented Aug 12, 2024

Fixes #5173

Microsoft Reviewers: Open in CodeFlow

@dariusclay dariusclay changed the title Handle multiple type definitions and add unit tests Logging generator: Handle multiple type definitions and add unit tests Aug 12, 2024
@dariusclay dariusclay changed the title Logging generator: Handle multiple type definitions and add unit tests Logging generator: Handle multiple type definitions Aug 12, 2024
@dotnet-bot
Copy link
Contributor

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Gen.Metrics Line 99 93.99 🔻
Microsoft.Gen.Metrics Branch 99 85.85 🔻
Microsoft.Gen.Logging Line 99 97.61 🔻
Microsoft.Gen.Logging Branch 99 97.92 🔻

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=772805&view=codecoverage-tab

src/Generators/Shared/RoslynExtensions.cs Show resolved Hide resolved
src/Generators/Shared/RoslynExtensions.cs Show resolved Hide resolved
src/Generators/Shared/RoslynExtensions.cs Outdated Show resolved Hide resolved
src/Generators/Shared/RoslynExtensions.cs Outdated Show resolved Hide resolved
src/Generators/Shared/RoslynExtensions.cs Outdated Show resolved Hide resolved
test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.cs Outdated Show resolved Hide resolved
@dariusclay
Copy link
Contributor Author

dariusclay commented Aug 13, 2024

  • todo: deal with code coverage drop

@dotnet-bot

This comment was marked as resolved.

src/Generators/Shared/RoslynExtensions.cs Outdated Show resolved Hide resolved
dariusclay and others added 2 commits August 13, 2024 16:46
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
@dariusclay dariusclay enabled auto-merge (squash) August 13, 2024 14:46
@dariusclay dariusclay merged commit 5393aee into main Aug 13, 2024
6 checks passed
@dariusclay dariusclay deleted the 5173-microsoftextensionshttpresilience-breaks-loggermessage-code-generation branch August 13, 2024 15:11
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft.Extensions.Http.Resilience breaks LoggerMessage code generation.
4 participants