-
Notifications
You must be signed in to change notification settings - Fork 4.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 TFM in tests to net8.0 #69669
Conversation
...CodeAnalysis.LanguageServer.UnitTests/Microsoft.CodeAnalysis.LanguageServer.UnitTests.csproj
Outdated
Show resolved
Hide resolved
@@ -15,6 +15,8 @@ Imports Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE | |||
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax | |||
Imports Roslyn.Test.Utilities | |||
|
|||
#Disable Warning SYSLIB0050 ' 'TypeAttributes.Serializable' is obsolete |
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.
What's the context for this? I'm not seeing that attribute as obsolete on https://learn.microsoft.com/en-us/dotnet/api/system.reflection.typeattributes?view=net-8.0
If it is obsolete, are we supposed to use something else instead?
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.
It's suppressed at other places that were upgraded to net8 previously, e.g.:
roslyn/src/Compilers/VisualBasic/Portable/Symbols/Metadata/PE/PENamedTypeSymbol.vb
Line 223 in 32b3fc0
#Disable Warning SYSLIB0050 ' 'TypeAttributes.Serializable' is obsolete |
See also comment in https://github.com/dotnet/roslyn/pull/68627/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.
Done with review pass (iteration 2). I just have a question on the obsoleted attribute
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.
LGTM (commit 2)
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.
LGTM Thanks (iteration 2)
A few months ago, I could use the following to build roslyn on Linux and run (many of?) its unit tests: $ ./eng/build.sh --restore --build --pack --test Unfortunately, PR dotnet#69669 (commit 4d8f347) changed how that works. That PR changed the default build target of many projects to net8.0, and the test runner seems to be running only 7.0 projects. After that commit, the above command shows only one set of unit tests running: Running tests in 1 partitions 1 running, 0 queued, 0 completed 0 running, 0 queued, 1 completed ================ Microsoft.CodeAnalysis.UnitTests_0 PASSED 00:00:45.4625833 ================ Adding the net8.0 as a tfm target in the eng/build.sh makes us run more tests again: ================ Microsoft.CodeAnalysis.Scripting.UnitTests_12 PASSED 00:00:03.9577625 Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.UnitTests_10 PASSED 00:00:04.9223846 VBCSCompiler.UnitTests_20 PASSED 00:00:23.7411654 Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests_4 PASSED 00:00:27.8150736 Microsoft.Build.Tasks.CodeAnalysis.UnitTests_0 PASSED 00:00:31.9628642 Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests_6 PASSED 00:00:33.1929440 Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests_18 PASSED 00:00:33.5702799 Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests_1 PASSED 00:00:39.4990867 Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests_5 PASSED 00:00:52.4321826 Microsoft.CodeAnalysis.UnitTests_13 PASSED 00:00:53.3982241 Roslyn.Compilers.VisualBasic.IOperation.UnitTests_19 PASSED 00:00:53.7378359 Microsoft.CodeAnalysis.UnitTests_14 PASSED 00:00:54.3801182 Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests_9 PASSED 00:01:17.6610151 Microsoft.CodeAnalysis.Rebuild.UnitTests_11 PASSED 00:01:22.3798957 Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests_17 PASSED 00:01:29.8493252 Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests_16 FAILED 00:01:50.8836743 Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests_15 FAILED 00:03:35.7901555 Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests_8 FAILED 00:04:06.2959522 Microsoft.CodeAnalysis.CSharp.Emit.UnitTests_2 FAILED 00:05:27.2969811 Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests_3 FAILED 00:06:26.4284098 Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests_7 FAILED 00:08:06.2821945 ================
#69506 (comment)