-
Notifications
You must be signed in to change notification settings - Fork 756
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
Revert correct Meter name #5403
Conversation
Fixes #5404 |
@dotnet-policy-service agree |
Hi @gitmln, Thank you for your contribution! Could you please add unit tests for the change made? We would like to avoid repeating this bug in the future. |
...soft.Extensions.Diagnostics.ResourceMonitoring.Tests/Windows/WindowsSnapshotProviderTests.cs
Show resolved
Hide resolved
@@ -155,4 +157,15 @@ public void Provider_Returns_MemoryConsumption() | |||
var usage = WindowsSnapshotProvider.GetMemoryUsageInBytes(); | |||
Assert.InRange(usage, 0, long.MaxValue); | |||
} | |||
|
|||
[Fact] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be [ConditionalFact] to support run on a certain platform only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good observation.
No, that's no correct. The Windows-specific tests should have the following decoration:
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX, SkipReason = "Windows specific tests")]
/backport to release/8.9 |
Started backporting to release/8.9: https://github.com/dotnet/extensions/actions/runs/10741673708 |
Fixes #5404
Corrects a bug with wrong meter name that has been changed from Microsoft.Extensions.Diagnostics.ResourceMonitoring to ResourceMonitoring
Microsoft Reviewers: Open in CodeFlow