Skip to content

Commit

Permalink
[main] Update dependencies from dotnet/arcade (#2374)
Browse files Browse the repository at this point in the history
[main] Update dependencies from dotnet/arcade


 - update to run on dotnet 7

 - update to stable sdk

 - update mime type to align with new value

The default MIME type for `.js` files changed to `text/javascript` in
dotnet/aspnetcore#40771 so the test needed to be updated, too.

 - update minimum sdk version for vscode extension

 - Merge remote-tracking branch 'upstream/main' into darc-main-f75372cd-0832-40a1-95fc-5022c8550314

 - update test package versions

 - add linux test retry

 - don't fail build on docker build failures

 - update test command

 - run tests one assembly at a time

 - update extension lab packages

 - skip ildasm test

 - improve log message

 - log errors

 - run tests on a class-by-class basis
  • Loading branch information
dotnet-maestro[bot] authored Nov 16, 2022
1 parent c9732cf commit 21fd0c6
Show file tree
Hide file tree
Showing 103 changed files with 914 additions and 585 deletions.
10 changes: 5 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"args": {
// Update 'VARIANT' to pick a .NET Core version: 3.1, 5.0, 6.0
// Append -bullseye or -focal to pin to an OS version.
"VARIANT": "6.0",
"VARIANT": "7.0",
// Options
"NODE_VERSION": "16"
}
Expand All @@ -16,19 +16,19 @@
"settings": {
"dotnet-interactive.kernelTransportArgs": [
"{dotnet_path}",
"/workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net6.0/Microsoft.DotNet.Interactive.App.dll",
"/workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net7.0/Microsoft.DotNet.Interactive.App.dll",
"[vscode]",
"stdio",
"--working-dir",
"{working_dir}"
],
"dotnet-interactive.notebookParserArgs": [
"{dotnet_path}",
"/workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net6.0/Microsoft.DotNet.Interactive.App.dll",
"/workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net7.0/Microsoft.DotNet.Interactive.App.dll",
"notebook-parser"
],
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"files.trimTrailingWhitespace": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
Expand Down Expand Up @@ -73,4 +73,4 @@
"features": {
"powershell": "latest"
}
}
}
4 changes: 2 additions & 2 deletions DEVELOPER-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ If you've made changes to `dotnet-interactive` and want to try them out with Vis
```js
"dotnet-interactive.kernelTransportArgs": [
"{dotnet_path}",
"/PATH/TO/REPO/ROOT/artifacts/bin/dotnet-interactive/Debug/net6.0/Microsoft.DotNet.Interactive.App.dll",
"/PATH/TO/REPO/ROOT/artifacts/bin/dotnet-interactive/Debug/net7.0/Microsoft.DotNet.Interactive.App.dll",
"[vscode]",
"stdio",
"--log-path",
Expand All @@ -125,7 +125,7 @@ If you've made changes to `dotnet-interactive` and want to try them out with Vis

"dotnet-interactive.notebookParserArgs": [
"{dotnet_path}",
"/PATH/TO/REPO/ROOT/artifacts/bin/dotnet-interactive/Debug/net6.0/Microsoft.DotNet.Interactive.App.dll",
"/PATH/TO/REPO/ROOT/artifacts/bin/dotnet-interactive/Debug/net7.0/Microsoft.DotNet.Interactive.App.dll",
"notebook-parser"
]
```
Expand Down
4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
</PropertyGroup>

<PropertyGroup>
<MicrosoftNETTestSdkVersion>17.2.0</MicrosoftNETTestSdkVersion>
<MicrosoftNETTestSdkVersion>17.4.0</MicrosoftNETTestSdkVersion>
<NewtonsoftJsonVersion>13.0.1 </NewtonsoftJsonVersion>
<MicrosoftCodeAnalysisCommonVersion>4.2.0</MicrosoftCodeAnalysisCommonVersion>
<SystemReactiveVersion>5.0.0</SystemReactiveVersion>
<SystemSecurityCryptographyXmlVersion>6.0.1</SystemSecurityCryptographyXmlVersion>
<xunitVersion>2.4.2</xunitVersion>
<xunitrunnervisualstudioVersion>2.4.5</xunitrunnervisualstudioVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<ItemGroup Condition="($(MSBuildProjectName.EndsWith('.Tests')) OR $(MSBuildProjectName.EndsWith('.IntegrationTests'))) AND '$(DisableArcade)' == '1'">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
<PackageReference Update="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="xunit" Version="$(xunitVersion)" />
<PackageReference Include="xunit.runner.visualstudio" Version="$(xunitrunnervisualstudioVersion)" />
</ItemGroup>

<!--
Expand Down
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
Expand Down
80 changes: 0 additions & 80 deletions Running a .NET 6 kernel.md

This file was deleted.

102 changes: 101 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,107 @@ stages:
TRYDOTNET_PACKAGES_PATH: $(TryDotNetPackagesPath)
DOTNET_INTERACTIVE_FRONTEND_NAME: CI

- script: dotnet test -l trx --no-build --blame-hang-timeout 15m --blame-hang-dump-type full --blame-crash -c $(_BuildConfig) --results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)
- pwsh: |
$retryCount = 5
$normalTestAssemblies = @(
"Microsoft.DotNet.Interactive.ApiCompatibility.Tests",
"Microsoft.DotNet.Interactive.AspNetCore.Tests",
"Microsoft.DotNet.Interactive.Browser.Tests",
"Microsoft.DotNet.Interactive.CSharp.Tests",
"Microsoft.DotNet.Interactive.CSharpProject.Tests",
"Microsoft.DotNet.Interactive.Documents.Tests",
"Microsoft.DotNet.Interactive.ExtensionLab.Tests",
"Microsoft.DotNet.Interactive.FSharp.Tests",
"Microsoft.DotNet.Interactive.Formatting.Tests",
"Microsoft.DotNet.Interactive.Journey.Tests",
"Microsoft.DotNet.Interactive.Jupyter.Tests",
"Microsoft.DotNet.Interactive.Kql.Tests",
"Microsoft.DotNet.Interactive.Mermaid.Tests",
"Microsoft.DotNet.Interactive.PowerShell.Tests",
"Microsoft.DotNet.Interactive.SqlServer.Tests",
"Microsoft.DotNet.Interactive.Telemetry.Tests",
"dotnet-interactive.Tests"
)
foreach ($testAssembly in $normalTestAssemblies) {
for ($i=1; $i -le $retryCount; $i++) {
Write-Host "Testing assembly $testAssembly, attempt $i"
dotnet test $env:BUILDSOURCESDIRECTORY/src/$testAssembly/ -l trx --no-build --blame-hang-timeout 15m --blame-hang-dump-type full --blame-crash -c $env:BUILDCONFIG --results-directory $env:BUILDSOURCESDIRECTORY/artifacts/TestResults/$env:BUILDCONFIG
if ($LASTEXITCODE -eq 0) {
break
}
}
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
}
#
# this one frequently crashes; running tests one class at a time
#
$flakyTestAssembly = "Microsoft.DotNet.Interactive.Tests"
$testClasses = @(
"Microsoft.DotNet.Interactive.Tests.CompositeKernelTests",
"Microsoft.DotNet.Interactive.Tests.ConnectDirectiveTests",
"Microsoft.DotNet.Interactive.Tests.DataExplorerTests",
"Microsoft.DotNet.Interactive.Tests.DirectiveTests",
"Microsoft.DotNet.Interactive.Tests.HtmlKernelTests",
"Microsoft.DotNet.Interactive.Tests.ImportantNotebookTests",
"Microsoft.DotNet.Interactive.Tests.InputsWithinMagicCommandsTests",
"Microsoft.DotNet.Interactive.Tests.JavaScriptKernelTests",
"Microsoft.DotNet.Interactive.Tests.KernelCommandNestingTests",
"Microsoft.DotNet.Interactive.Tests.KernelExtensionsTests",
"Microsoft.DotNet.Interactive.Tests.KernelInfoTests",
"Microsoft.DotNet.Interactive.Tests.KernelInvocationContextTests",
"Microsoft.DotNet.Interactive.Tests.KernelRoutingTests",
"Microsoft.DotNet.Interactive.Tests.KernelSchedulerTests",
"Microsoft.DotNet.Interactive.Tests.KernelTests",
"Microsoft.DotNet.Interactive.Tests.KeyValueStoreKernelTests",
"Microsoft.DotNet.Interactive.Tests.LanguageKernelAssemblyReferenceTests",
"Microsoft.DotNet.Interactive.Tests.LanguageKernelExtensionLoadingTests",
"Microsoft.DotNet.Interactive.Tests.LanguageKernelFormattingTests",
"Microsoft.DotNet.Interactive.Tests.LanguageKernelPackageTests",
"Microsoft.DotNet.Interactive.Tests.LanguageKernelScriptReferenceTests",
"Microsoft.DotNet.Interactive.Tests.LanguageKernelTests",
"Microsoft.DotNet.Interactive.Tests.LogDirectiveTests",
"Microsoft.DotNet.Interactive.Tests.NamedPipeConnectionTests",
"Microsoft.DotNet.Interactive.Tests.PackageReferenceTests",
"Microsoft.DotNet.Interactive.Tests.PackageRestoreContextTests",
"Microsoft.DotNet.Interactive.Tests.QuitCommandTests",
"Microsoft.DotNet.Interactive.Tests.SqlDiscoverabilityKernelTests",
"Microsoft.DotNet.Interactive.Tests.VariableSharingTests",
"Microsoft.DotNet.Interactive.Tests.VariableSharingWithinMagicCommandsTests",
"Microsoft.DotNet.Interactive.Tests.Connection.KernelCommandAndEventSenderTests",
"Microsoft.DotNet.Interactive.Tests.Connection.KernelCommandEnvelopeTests",
"Microsoft.DotNet.Interactive.Tests.Connection.KernelEventEnvelopeTests",
"Microsoft.DotNet.Interactive.Tests.Connection.KernelHostTests",
"Microsoft.DotNet.Interactive.Tests.Connection.ObservableCommandAndEventReceiverTests",
"Microsoft.DotNet.Interactive.Tests.Connection.SerializationTests",
"Microsoft.DotNet.Interactive.Tests.Connection.TokenTests",
"Microsoft.DotNet.Interactive.Tests.LanguageServices.CompletionTests",
"Microsoft.DotNet.Interactive.Tests.LanguageServices.HoverTextTests",
"Microsoft.DotNet.Interactive.Tests.LanguageServices.SignatureHelpTests",
"Microsoft.DotNet.Interactive.Tests.Parsing.DirectiveTokenTests",
"Microsoft.DotNet.Interactive.Tests.Parsing.SubmissionParserTests",
"Microsoft.DotNet.Interactive.Tests.Utility.AsyncContextTests",
"Microsoft.DotNet.Interactive.Tests.Utility.MultiplexingTextWriterTests",
"Microsoft.DotNet.Interactive.Tests.Utility.UtilityTests"
)
foreach ($testClass in $testClasses) {
for ($i=1; $i -le $retryCount; $i++) {
Write-Host "Testing assembly $flakyTestAssembly::$testClass, attempt $i"
dotnet test $env:BUILDSOURCESDIRECTORY/src/$flakyTestAssembly/ --filter FullyQualifiedName~$testClass -l trx --no-build --blame-hang-timeout 15m --blame-hang-dump-type full --blame-crash -c $env:BUILDCONFIG --results-directory $env:BUILDSOURCESDIRECTORY/artifacts/TestResults/$env:BUILDCONFIG
if ($LASTEXITCODE -eq 0) {
break
}
}
}
exit $LASTEXITCODE
displayName: Test / Blame
workingDirectory: $(Build.SourcesDirectory)
env:
BUILDCONFIG: $(_BuildConfig)
BUILDSOURCESDIRECTORY: $(Build.SourcesDirectory)
condition: ne(variables['SkipTests'], 'true')
- pwsh: Get-ChildItem *.dmp -Recurse | Remove-Item
Expand Down Expand Up @@ -322,6 +420,7 @@ stages:
clean: true
- task: Docker@2
displayName: Build main Dockerfile
continueOnError: true
inputs:
command: build
Dockerfile: "$(Build.SourcesDirectory)/Dockerfile"
Expand All @@ -344,6 +443,7 @@ stages:
clean: true
- task: Docker@2
displayName: Build Binder dependency Dockerfile
continueOnError: true
inputs:
command: build
Dockerfile: "$(Build.SourcesDirectory)/samples/my binder/Dockerfile"
Expand Down
4 changes: 2 additions & 2 deletions eng/AfterSolutionBuild.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<ItemGroup>
<SymbolPackageWithBadFiles Include="$(ArtifactsShippingPackagesDir)\Microsoft.dotnet-interactive.*.symbols.nupkg" />

<SymbolPackageFilesToStrip Include="tools/net6.0/any/runtimes/linux-musl-x64/native/libpsl-native.so" />
<SymbolPackageFilesToStrip Include="tools/net6.0/any/runtimes/linux-x64/native/libmi.so" />
<SymbolPackageFilesToStrip Include="tools/net7.0/any/runtimes/linux-musl-x64/native/libpsl-native.so" />
<SymbolPackageFilesToStrip Include="tools/net7.0/any/runtimes/linux-x64/native/libmi.so" />
</ItemGroup>
<PropertyGroup>
<PackageTempPath>$([System.IO.Path]::GetTempPath())/$([System.Guid]::NewGuid())</PackageTempPath>
Expand Down
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22316.2">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.22554.2">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>ccfe6da198c5f05534863bbb1bff66e830e0c6ab</Sha>
<Sha>80b6be47e1425ea90c5febffac119250043a0c92</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
18 changes: 9 additions & 9 deletions eng/common/SetupNugetSources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,22 @@ $userName = "dn-bot"
# Insert credential nodes for Maestro's private feeds
InsertMaestroPrivateFeedCredentials -Sources $sources -Creds $creds -Username $userName -Password $Password

# 3.1 uses a different feed url format so it's handled differently here
$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
if ($dotnet31Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
}

$dotnet5Source = $sources.SelectSingleNode("add[@key='dotnet5']")
if ($dotnet5Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet5-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet5-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet5-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
}
$dotnetVersions = @('5','6','7')

$dotnet6Source = $sources.SelectSingleNode("add[@key='dotnet6']")
if ($dotnet6Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet6-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet6-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet6-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet6-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
foreach ($dotnetVersion in $dotnetVersions) {
$feedPrefix = "dotnet" + $dotnetVersion;
$dotnetSource = $sources.SelectSingleNode("add[@key='$feedPrefix']")
if ($dotnetSource -ne $null) {
AddPackageSource -Sources $sources -SourceName "$feedPrefix-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/$feedPrefix-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
AddPackageSource -Sources $sources -SourceName "$feedPrefix-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/$feedPrefix-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
}
}

$doc.Save($filename)
Loading

0 comments on commit 21fd0c6

Please sign in to comment.