From: Mike McLaughlin Date: Tue, 7 Feb 2023 18:16:03 +0000 (-0800) Subject: Add .NET 8.0 testing (#3633) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055542~43^2~2^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1efe5e57ea7bd9d027ad7320e2b11fa4c057b0f6;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Add .NET 8.0 testing (#3633) * Add .NET 8.0 testing Enable DumpGen and ConcurrentDictionaries tests on cdb and lldb. This involved some small changes and hacks (like assuming the cdb prompt is always "0:000>". Add script to disable DAC signature checks for Windows legs (not used for now). Add dump generation xunit fixture to set reg key values. Better card table error message * Update versions * Code review feedback --- diff --git a/eng/DisableSignatureCheck.ps1 b/eng/DisableSignatureCheck.ps1 new file mode 100644 index 000000000..45be4336f --- /dev/null +++ b/eng/DisableSignatureCheck.ps1 @@ -0,0 +1,49 @@ +Param( + [switch] $Restore, + [string] $RepoRoot +) +$windowsNode = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" +$relevantNodeName = "MiniDumpSettings" +$relevantNode = "$windowsNode\$relevantNodeName" +$propName = "DisableAuxProviderSignatureCheck" +$stateFileDirectory = "$RepoRoot\artifacts\tmp" +$stateFileName = "$stateFileDirectory\SignatureCheck.state" + +if ($Restore) +{ + if (Test-Path $stateFileName) + { + Write-Host "Restoring state" + $value = Get-Content -Path $stateFileName + Write-Host "Restoring state: Set-ItemProperty $relevantNode -Name $propName -Value $value" + Set-ItemProperty $relevantNode -Name $propName -Value $value -Type "DWORD" + Write-Host "Restoring state: after Set-ItemProperty" + } +} +else +{ + $value = 0 + if (Test-Path $relevantNode) + { + try + { + Write-Host "Disabling state: Get-ItemPropertyValue -Path $relevantNode -Name $propName" + $value = Get-ItemPropertyValue -Path $relevantNode -Name $propName + } + catch + { + Write-Host "Disabling state: exception" + } + } + else + { + Write-Host "Disabling state: New-Item -Path $windowsNode -Name $relevantNodeName" +     New-Item -Path $windowsNode -Name $relevantNodeName | Out-Null + } + New-Item -Path $stateFileDirectory -Force -ItemType 'Directory' | Out-Null  + Write-Host "Disabling state: Writing state $value file to $stateFileName" + Out-File -Encoding ascii -InputObject $value -FilePath $stateFileName + Write-Host "Disabling state: Set-ItemProperty $relevantNode -Name $propName -Value 1" + Set-ItemProperty $relevantNode -Name $propName -Value 1 -Type "DWORD" + Write-Host "Disabling state: after Set-ItemProperty" +} diff --git a/eng/InstallRuntimes.proj b/eng/InstallRuntimes.proj index 5e466ed3a..dc16301c6 100644 --- a/eng/InstallRuntimes.proj +++ b/eng/InstallRuntimes.proj @@ -15,15 +15,17 @@ $(MicrosoftDotnetSdkInternalVersion) - .NET SDK to use for testing - $(VSRedistCommonNetCoreSharedFrameworkx6470Version) - latest dotnet runtime package version (the version to install) + $(VSRedistCommonNetCoreSharedFrameworkx6480Version) - latest dotnet runtime package version (the version to install) $(MicrosoftNETCoreAppRuntimewinx64Version) - latest dotnet runtime stable version (the version that actually is installed) $(MicrosoftAspNetCoreAppRefInternalVersion) - latest dotnet aspnetcore package version (the version to install) $(MicrosoftAspNetCoreAppRefVersion) - latest dotnet aspnetcore stable version (the version that actually is installed) + $(MicrosoftNETCoreApp70Version) $(MicrosoftAspNetCoreApp70Version) - 7.0 version $(MicrosoftNETCoreApp60Version) $(MicrosoftAspNetCoreApp60Version) - 6.0 version $(SingleFileRuntimeLatestVersion) - The latest version of the runtime used to build single-file apps + $(SingleFileRuntime70Version) - The 7.0.x version of the runtime used to build single-file apps $(SingleFileRuntime60Version) - The 6.0.x version of the runtime used to build single-file apps From Arcade: @@ -63,11 +65,6 @@ regedit.exe - - true - false - - @@ -83,13 +80,16 @@ - + + + + - + @@ -153,7 +153,8 @@ $(MicrosoftNETCoreApp60Version) $(MicrosoftAspNetCoreApp60Version) - + $(MicrosoftNETCoreApp70Version) + $(MicrosoftAspNetCoreApp70Version) @@ -169,17 +170,18 @@ $(PrivateBuildTesting) $(InternalReleaseTesting) - $(RuntimeVersion31) - $(AspNetCoreVersion31) - $(RuntimeVersion60) $(AspNetCoreVersion60) + $(RuntimeVersion70) + $(AspNetCoreVersion70) + $(RuntimeVersionLatest) $(AspNetCoreVersionLatest) $(SingleFileRuntimeLatestVersion) $(SingleFileRuntime60Version) + $(SingleFileRuntime70Version) ]]> diff --git a/eng/Versions.props b/eng/Versions.props index d04a1c3c2..f50a49ffc 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -18,21 +18,24 @@ 1.0.410601 - 7.0.2 - 7.0.2 + 8.0.0-alpha.1.23080.2 + 8.0.0-alpha.1.23080.2 - 7.0.2 - 7.0.2 + 8.0.0-alpha.1.23079.1 + 8.0.0-alpha.1.23079.1 - 7.0.103-servicing.23073.22 + 8.0.100-alpha.1.23080.8 - 6.0.8 + 6.0.12 $(MicrosoftNETCoreApp60Version) + 7.0.2 + $(MicrosoftNETCoreApp70Version) - 6.0.8 - 7.0.2 + $(MicrosoftNETCoreApp60Version) + $(MicrosoftNETCoreApp70Version) + 8.0.0-alpha.1.23076.9 diff --git a/global.json b/global.json index 8e96bb603..8a3db1b2b 100644 --- a/global.json +++ b/global.json @@ -1,18 +1,16 @@ { "tools": { - "dotnet": "7.0.101", + "dotnet": "8.0.100-alpha.1.23063.11", "runtimes": { - "dotnet/x64": [ + "dotnet": [ "$(MicrosoftNETCoreApp60Version)", - "$(VSRedistCommonNetCoreSharedFrameworkx6470Version)" + "$(MicrosoftNETCoreApp70Version)", + "$(VSRedistCommonNetCoreSharedFrameworkx6480Version)" ], "dotnet/x86": [ "$(MicrosoftNETCoreApp60Version)", - "$(VSRedistCommonNetCoreSharedFrameworkx6470Version)" - ], - "dotnet/arm64": [ - "$(MicrosoftNETCoreApp60Version)", - "$(VSRedistCommonNetCoreSharedFrameworkx6470Version)" + "$(MicrosoftNETCoreApp70Version)", + "$(VSRedistCommonNetCoreSharedFrameworkx6480Version)" ] } }, diff --git a/src/Microsoft.Diagnostics.TestHelpers/TestConfiguration.cs b/src/Microsoft.Diagnostics.TestHelpers/TestConfiguration.cs index 071f6ad34..e5e4bd225 100644 --- a/src/Microsoft.Diagnostics.TestHelpers/TestConfiguration.cs +++ b/src/Microsoft.Diagnostics.TestHelpers/TestConfiguration.cs @@ -670,7 +670,7 @@ namespace Microsoft.Diagnostics.TestHelpers } /// - /// The framework type/version used to build the debuggee like "netcoreapp3.1" or "netstandard2.0". + /// The framework type/version used to build the debuggee like "net6.0" or "net7.0" /// public string BuildProjectFramework { diff --git a/src/SOS/SOS.UnitTests/ConfigFiles/Unix/Debugger.Tests.Config.txt b/src/SOS/SOS.UnitTests/ConfigFiles/Unix/Debugger.Tests.Config.txt index c29ae7de1..bd1568c03 100644 --- a/src/SOS/SOS.UnitTests/ConfigFiles/Unix/Debugger.Tests.Config.txt +++ b/src/SOS/SOS.UnitTests/ConfigFiles/Unix/Debugger.Tests.Config.txt @@ -24,6 +24,7 @@ true false + net8.0 net7.0 net6.0 @@ -35,6 +36,7 @@ $(DotNetRoot)/dotnet + dotnet8=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet8/nuget/v3/index.json; dotnet7=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet7/nuget/v3/index.json; dotnet6=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet6/nuget/v3/index.json; dotnet-core=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json; @@ -45,25 +47,28 @@ - - + - - + + net8.0 net7.0 net6.0 - net5.0 ProjectK $(RepoRootDir)/src/tests @@ -22,6 +22,8 @@ $(DotNetRoot)/dotnet + dotnet8=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet8/nuget/v3/index.json; + dotnet7=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet7/nuget/v3/index.json; dotnet6=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet6/nuget/v3/index.json; dotnet-core=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json; dotnet-public=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json @@ -35,6 +37,10 @@ $(BuildProjectFrameworkLatest) $(RuntimeVersionLatest) + + + +