-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unskip tests with Done issues + dotnet-format test fix #41684
Conversation
…ticed the pathing issue for dotnet-format, fixed it, and reenabled the CI job.
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.
Thank you, this is a wonderful idea and something it'd be great to have a real policy on. (e.g. maybe with the label, a bot pings after 90 days to see if it can be unskipped, or it makes a new issue to unskip it if the other one is closed.)
The changes look good, although unfortunately while marked as done a lot of them are still failing, 33 of them so far. At a glance some of them might be due to breaking changes, or just that they never were fixed. I'm guessing you'd need to go through each test individually and decide what to do again to merge it green, which I'm not sure you want to do atm
Yup, that's exactly what I have to do. It is gonna take a bit of time. Run them locally, take a look if it is something fixable. If not, I'll punt back to the original issue or a new one. |
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.
Approving for the dotnet test
part. Thanks for uncovering this skipped test.
[PlatformSpecificFact(TestPlatforms.Windows | TestPlatforms.Linux, Skip = "https://github.com/dotnet/aspnetcore/issues/23394")] | ||
[PlatformSpecificFact(TestPlatforms.Windows | TestPlatforms.Linux)] |
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.
This unskip did not work. Details explained here: dotnet/aspnetcore#23394 (comment)
@v-wuzhai Yanni has done some cleanup here for tests that were skipped and linked to issues that had been closed. He also marked any still active issues as related to test debt. What he didn't do is go through any tests that were marked as skipped but weren't linked to an issue. We think it makes sense to go through those, file issues for them, and make a PR to link them to the issue (if the test is still failing). If the test is no longer failing, we can remove the skip label. Do you think you can do that? No rush but seems worth doing to clean up how we're tracking failing tests. |
#pragma warning disable xUnit1004 // Test methods should not be skipped | ||
[Fact(Skip = "https://github.com/dotnet/templating/issues/4192")] | ||
#pragma warning restore xUnit1004 // Test methods should not be skipped | ||
[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.
The test still fails with:
Assert.DoesNotContain() Failure: Item found in collection
↓ (pos 0)
Collection: ["--test", "--testChoice"]
Found: "--test"
The issue originally linked here was closed. However, it was closed in favor of a different issue. Therefore, I'm just going to replace the Skip message with the new issue.
[Theory(Skip = "https://github.com/dotnet/sdk/issues/3471")] | ||
[Theory] |
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.
The 2 test cases with generatePackageOnBuild: true
fail because of reasons similar to:
C:\Code\sdk\artifacts\bin\redist\Debug\dotnet\sdk\9.0.100-ci\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5026: The file 'C:\Code\sdk\artifacts\tmp\Debug\It_packs_succ---74529E27\bin\Debug\net9.0\HelloWorld.runtimeconfig.json' to be packed was not found on disk. [C:\Code\sdk\artifacts\tmp\Debug\It_packs_succ---74529E27\HelloWorld.csproj]
Seems like the test project it builds isn't building properly, and it goes to pack the project, but fails. The original issue was actually marked as a dup of another issue, so I'll put that issue as the Skip reason instead.
[Theory(Skip = "https://github.com/dotnet/installer/issues/13361")] | ||
[Theory] |
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.
Unskipping this test failed. Details here: dotnet/installer#13361 (comment)
[FullMSBuildOnlyTheory(Skip = "https://github.com/NuGet/Home/issues/8238")] | ||
[FullMSBuildOnlyTheory] |
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.
This test still fails. When it tries to build the test project, it errors with:
C:\h\w\BA370A1F\t\dotnetSdkTests\4g0jldi5.t0a\DesktopInBoxC---C644200B\DesktopInBoxConflictResolution\Program.cs(1,14): error CS0430: The extern alias 'snh' was not specified in a /reference option [C:\h\w\BA370A1F\t\dotnetSdkTests\4g0jldi5.t0a\DesktopInBoxC---C644200B\DesktopInBoxConflictResolution\DesktopInBoxConflictResolution.csproj]
The original issue was closed and copied to a new issue. So, I'll change this Skip text to be against the new issue.
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/3785")] | ||
[FullMSBuildOnlyFact] |
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.
Unskipping this test failed. Marking it with the successor issue. Details here: #11008 (comment)
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/3785")] | ||
[FullMSBuildOnlyFact] |
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.
Unskipping this test failed. Marking it with the successor issue. Details here: #11008 (comment)
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/3785")] | ||
[FullMSBuildOnlyFact] |
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.
Unskipping this test failed. Marking it with the successor issue. Details here: #11008 (comment)
[Fact(Skip = "https://github.com/dotnet/sdk/issues/522")] | ||
[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.
Unskipping failed. Details here: #522 (comment)
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/67019")] | ||
[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.
Unskipping failed. Could not reopen original issue. New issue with details here: dotnet/roslyn#74109
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/67019")] | ||
[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.
Unskipping failed. Could not reopen original issue. New issue with details here: dotnet/roslyn#74109
… skipped with new issue numbers.
…erWasNotInitialized test since it was removed but a bad branch merge reintroduced it. Set DependentUponTest as WindowsOnlyTheory since it literally runs the EXE it produces during the test.
// Call test | ||
CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) | ||
.WithWorkingDirectory(testProjectDirectory) | ||
.Execute( | ||
"--collect", "Code Coverage", | ||
"--filter", "VSTestPassTest"); | ||
|
||
// Verify test results | ||
if (!TestContext.IsLocalized()) | ||
{ | ||
result.StdOut.Should().Contain("No code coverage data available. Code coverage is currently supported only on Windows and Linux x64."); | ||
result.StdOut.Should().Contain("Total: 1"); | ||
result.StdOut.Should().Contain("Passed: 1"); | ||
result.StdOut.Should().NotContain("Failed!"); | ||
} | ||
|
||
result.ExitCode.Should().Be(0); | ||
} | ||
|
||
[PlatformSpecificFact(TestPlatforms.Linux, Skip = "https://github.com/dotnet/sdk/issues/22865")] | ||
public void ItShouldShowWarningMessageOnCollectCodeCoverageThatProfilerWasNotInitialized() | ||
{ | ||
var testProjectDirectory = CopyAndRestoreVSTestDotNetCoreTestApp("13"); | ||
|
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.
This test was removed from main here. The same test was also removed from 6.0.2xx here. Then, the branch merge from 6.0.2xx into main added it back. This was likely a merge issue and the test was intended to be removed, since the first PR was indicated as the reason #22865 could be resolved. So, we're rightfully removing the test from main
.
Fixes: #41060
Summary
Our repo has many skipped tests. I've created a Test Debt label that I used to mark tests that were skipped by linking an associated issue in the Skip text. This label only applies to the issues in this repo.
With all the links (not just SDK repo), I went through and opened the issues to see which ones were Done. The ones that were marked Done I've unskipped in this PR. Additionally, I noticed an issue with the dotnet-format tests, fixed it, and uncommented the skipped job in the CI.