-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update all test sdk references to the latest version. #45548
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
base: release/9.0.1xx
Are you sure you want to change the base?
Conversation
@dotnet/dotnet-testing I was talking with @Evangelink and he noticed that we had a bunch of old microsoft.net.test.sdk references so I tried to update them all.
|
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 idea. Almost sounds like we should have a Version.props file just for the tests? Like, I see the fixed xunit versions in here too. I think all the tests should have a central location for their test packages, unless the test is testing a specific version of a package.
This is a quite common issue with VSTest but it can have many sources. I'll try to read the logs next week. |
72bf6a6
to
5c369f0
Compare
@Evangelink pinging after the holiday. any suggestions? |
From discussion with @nohwnd, it usually happens when the testhost process has crashed. We would need the diagnostic logs from when it happens (please refer to https://github.com/microsoft/vstest/blob/main/docs/troubleshooting.md) |
log says that you did not set the lower bound for the package, so the property used for the version is not propagating. This will reference a super old version of test.sdk, which is probably not compatible anymore and so it cannot respond to the handshake |
Linking dotnet/arcade#15402 |
5c369f0
to
45b6b2f
Compare
45b6b2f
to
d6224d8
Compare
d6224d8
to
56f107b
Compare
…ut to the test time on the timeout
@Evangelink @nohwnd coming back to this, I pushed a change that fixes the two test failures but, it might be worth someone from test looking into the When_app_project_reference_a_library_it_flows_to_test_project testcase. That test just downloads PortableToolWithTestProject and then runs dotnet test against it. That's an xunit test project with a Microsoft.NET.Test.Sdk package reference that references a .net tool project. When the test sdk version is 16.11.0, running "dotnet test" loads the project and runs the test (with it passing) all in a few seconds. When I had the version of Microsoft.NET.Test.Sdk updated to current, it never finishes. Not sure what it's doing during that time but it's stuck so there's something broken here. |
Ahh, I figured it out. The value for the test package is used in the sdk build and not available in the tests so when I used it there, it was actually resolving as empty. When it had an empty value, this is hanging the dotnet test call and triggering the NU1604 warning. Not sure why it's hanging but much lower priority as the customer would have to mess up their test version to hit this. As long as there is a value for the Version, it seems to work fine. |
I'll let @nohwnd investigate if needs be. |
The failing tests look like actual failing tests that don't have anything to do with the vstest infrastructure, e.g. Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewSearchTests.CanFilterAuthor_WithoutName(testCase: "--search --columns author --author micro") hopefully those can be solved by their respective owners. Or merged as is if that is known issue. |
I don't think we have a good way of doing the version listed in the versions.props in a test itself (rather than a test asset built ahead of time). Open to suggestions on how to solve that.
For the rest, I don't know if the test infrastructure for those tests includes the version.props which could limit how many of these I can update.