-
Notifications
You must be signed in to change notification settings - Fork 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
Update .NET SDKs #10752
Update .NET SDKs #10752
Conversation
I'm not sure why the tests are failing - will take a look tomorrow. |
@martincostello it looks like we might have been working around a bug you logged upstream, that has since been fixed: dotnet/msbuild#10682. In it "contains the expected output" do
# In CI when the terminal logger is disabled by default in .NET 9 there is no
# output from the test runner: https://github.com/dotnet/msbuild/issues/10682.
# Instead we have to rely on the cmd invocation failing with a non-zero exit code
# if any tests fail. Locally when the terminal logger is enabled we can check
# there is an absence of any evidence of test failures in the output.
# expect(dotnet_test).to include("Passed!")
expect(dotnet_test).not_to include("Build failed")
end |
Well, well, well, if it isn't the consequences of my own actions 😆 I'll fix that up in the morning. |
Still debugging, but it looks like it's not the issue being fixed (it's still open, which makes sense), but that because of the bug, we can't see why the tests are failing. Running them locally, one fails:
|
Just saw, the issue is fixed, but it didn't make it into RC2 so will be in 9.0.100. |
@@ -249,7 +249,7 @@ await TestUpdateForProject("Some.Package", "9.0.1", "13.0.1", | |||
MockNuGetPackage.CreateSimplePackage("Some.Package", "9.0.1", "net8.0"), | |||
MockNuGetPackage.CreateSimplePackage("Some.Package", "13.0.1", "net8.0"), | |||
// necessary for the `net8.0-windows10.0.19041.0` TFM | |||
new("Microsoft.Windows.SDK.NET.Ref", "10.0.19041.34", Files: | |||
new("Microsoft.Windows.SDK.NET.Ref", "10.0.19041.45", Files: |
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 version was changed since RC1 by dotnet/sdk#41936, and it's going to change again with dotnet/sdk#43889 to .46
, so will probably need changing next month when updating to 9.0.100
.
I'm not sure why the lockfile smoke test is failing. The error is: updater | /tmp/package-dependency-resolution_kuH1Yp/Project.csproj : error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Ref with version (= 8.0.10)
updater | /tmp/package-dependency-resolution_kuH1Yp/Project.csproj : error NU1102: - Found 120 version(s) in nuget.org [ Nearest version: 9.0.0-preview.1.24081.3 ] but the package is in NuGet.org: [email protected]. Maybe the test depends on whatever version of the .NET SDK happens to be installed on the hosted runner? |
920b972
to
970f2ac
Compare
From the build logs: #10 [ 5/15] RUN dotnet --list-runtimes
#10 0.181 Microsoft.AspNetCore.App 8.0.10 [/usr/local/dotnet/current/shared/Microsoft.AspNetCore.App]
#10 0.181 Microsoft.AspNetCore.App 9.0.0-rc.2.24474.3 [/usr/local/dotnet/current/shared/Microsoft.AspNetCore.App]
#10 0.181 Microsoft.NETCore.App 8.0.10 [/usr/local/dotnet/current/shared/Microsoft.NETCore.App]
#10 0.181 Microsoft.NETCore.App 9.0.0-rc.2.24473.5 [/usr/local/dotnet/current/shared/Microsoft.NETCore.App]
#10 DONE 0.2s When I do the same locally on my Windows machine: Microsoft.AspNetCore.App 6.0.35 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0-rc.2.24474.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.35 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0-rc.2.24473.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.35 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0-rc.2.24474.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Maybe the issue is that |
970f2ac
to
1031019
Compare
fbc1987
to
5732833
Compare
Update .NET 8 and 9 SDKs to their latest versions.
Update to November 2024 releases for .NET 8 and 9.
Update the version of Microsoft.Windows.SDK.NET.Ref used in the tests.
ad3dc86
to
7b8240a
Compare
@brettfo @JamieMagee Do either of you have any idea what's going on with the end-to-end tests? I'm not sure what I'm missing - feels like the tests depend on a version of .NET that's not present in the Docker image. |
@martincostello It looks like the packages weren't yet present on nuget.org. The publish date says otherwise, but maybe a replication issue? I've restarted the failing jobs to see what happens now.
|
Well the re-run didn't work. I thought I remembered something about the smoke tests caching some network calls which means the cache won't know about that 8.0.11, etc. packages. Let me see if I can track down if there is a cache and if so how to clear or regenerate it. |
I notice that the original one I had issues with was the lockfiles test, which is now passing with the re-runs, so there's now 2 failing instead of 3. Caching sounds like a good avenue to solve the mystery. |
Got it! It was the cache. The results of querying the |
What are you trying to accomplish?
Update .NET 8 and 9 SDKs to their latest versions - the main motivation to use a stable version of .NET 9.
Anything you want to highlight for special attention from reviewers?
No.
How will you know you've accomplished your goal?
The build is green.
Checklist