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

Remove experimental label from FakeTimeProvider #4259

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Aug 9, 2023

  • Fixed a bug in the API lifecycle analyzer which complained when I removed the experimental attribute and shouldn't have.

  • Reenable a bunch of analyzer tests that got turned off at some point during debugging and never turned back on.

Microsoft Reviewers: Open in CodeFlow

@geeknoid geeknoid requested a review from rafal-mz August 9, 2023 17:58
@ghost ghost assigned geeknoid Aug 9, 2023
@joperezr
Copy link
Member

joperezr commented Aug 9, 2023

Looks like several tests in the Microsoft.Analyzers.Local.Tests are broken by this:

[xUnit.net 00:00:05.50]     Microsoft.Extensions.LocalAnalyzers.ApiLifecycle.Test.ApiLifecycleAnalyzerTest.Analyzer_Reports_Diagnostics_When_StableCode_Was_Not_Found_In_The_Compilation(expectedDiagnostics: 0, fileName: "ApiLifecycle/Data/BufferWriter2.json", testAssemblyName: "BufferWriter2", ids: [], source: "\r\n            using System;\r\n            using"...) [FAIL]
[xUnit.net 00:00:05.50]       Assert.Equal() Failure
[xUnit.net 00:00:05.50]       Expected: 0
[xUnit.net 00:00:05.50]       Actual:   3
[xUnit.net 00:00:05.50]       Stack Trace:
[xUnit.net 00:00:05.50]         /_/test/Analyzers/Microsoft.Analyzers.Local.Tests/ApiLifecycle/ApiLifecycleAnalyzerTest.cs(76,0): at Microsoft.Extensions.LocalAnalyzers.ApiLifecycle.Test.ApiLifecycleAnalyzerTest.Analyzer_Reports_Diagnostics_When_StableCode_Was_Not_Found_In_The_Compilation(Int32 expectedDiagnostics, String fileName, String testAssemblyName, String[] ids, String source)
[xUnit.net 00:00:05.50]         --- End of stack trace from previous location ---
[xUnit.net 00:00:05.69]     Microsoft.Extensions.LocalAnalyzers.ApiLifecycle.Test.ApiLifecycleAnalyzerTest.Analyzer_Reports_Diagnostics_When_StableCode_Was_Not_Found_In_The_Compilation(expectedDiagnostics: 0, fileName: "ApiLifecycle/Data/Analyzers.json", testAssemblyName: "Microsoft.Extensions.Analyzers", ids: [], source: "\r\n                namespace Test;\r\n\r\n       "...) [FAIL]
[xUnit.net 00:00:05.69]       Assert.Equal() Failure
[xUnit.net 00:00:05.69]       Expected: 0
[xUnit.net 00:00:05.69]       Actual:   3
[xUnit.net 00:00:05.69]       Stack Trace:
[xUnit.net 00:00:05.69]         /_/test/Analyzers/Microsoft.Analyzers.Local.Tests/ApiLifecycle/ApiLifecycleAnalyzerTest.cs(76,0): at Microsoft.Extensions.LocalAnalyzers.ApiLifecycle.Test.ApiLifecycleAnalyzerTest.Analyzer_Reports_Diagnostics_When_StableCode_Was_Not_Found_In_The_Compilation(Int32 expectedDiagnostics, String fileName, String testAssemblyName, String[] ids, String source)
[xUnit.net 00:00:05.69]         --- End of stack trace from previous location ---

@geeknoid
Copy link
Member Author

geeknoid commented Aug 9, 2023

Huh, all these tests passed locally. Argh.

- Fixed a bug in the API lifecycle analyzer which complained when I
removed the experimental attribute and shouldn't have.

- Reenable a bunch of analyzer tests that got turned off at some point
during debugging and never turned back on.
@geeknoid
Copy link
Member Author

geeknoid commented Aug 9, 2023

@joperezr All better now...

Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geeknoid geeknoid merged commit acada07 into main Aug 10, 2023
6 checks passed
@geeknoid geeknoid deleted the geeknoid/timeprovider branch August 10, 2023 14:55
@ghost ghost added this to the 8.0 RC1 milestone Aug 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 9, 2023
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.

3 participants