Skip to content

[main] Update dependencies from dotnet/runtime dotnet/efcore #46269

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

Merged
merged 4 commits into from
Jan 27, 2023

Conversation

dotnet-maestro[bot]
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Jan 26, 2023

This pull request updates the following dependencies

From https://github.com/dotnet/runtime

  • Subscription: 32db3699-5666-45da-a1b7-08d8b804cd75
  • Build: 20230125.6
  • Date Produced: January 26, 2023 9:18:02 AM UTC
  • Commit: d92e70f05b8de72758f3a990844e53c76b44d713
  • Branch: refs/heads/main

From https://github.com/dotnet/efcore

  • Subscription: 8ce5251e-8269-419d-3b2a-08d8b8050dda
  • Build: 20230126.2
  • Date Produced: January 26, 2023 7:59:35 PM UTC
  • Commit: 81886272a761df8fafe4970b895b1e1fe35effb8
  • Branch: refs/heads/main

…0125.6

Microsoft.Extensions.Caching.Abstractions , Microsoft.Extensions.Caching.Memory , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.FileExtensions , Microsoft.Extensions.Configuration.Ini , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.Configuration.Xml , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyInjection.Abstractions , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Abstractions , Microsoft.Extensions.Logging.Configuration , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Logging.EventLog , Microsoft.Extensions.Logging.EventSource , Microsoft.Extensions.Logging.TraceSource , Microsoft.Extensions.Options , Microsoft.Extensions.Options.ConfigurationExtensions , Microsoft.Extensions.Options.DataAnnotations , Microsoft.Extensions.Primitives , Microsoft.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.DirectoryServices.Protocols , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Reflection.Metadata , System.Resources.Extensions , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting
 From Version 8.0.0-alpha.1.23074.4 -> To Version 8.0.0-alpha.1.23075.6
@dotnet-maestro dotnet-maestro bot requested review from a team, dougbu and wtgodbe as code owners January 26, 2023 13:03
@ghost ghost added area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework Type: Dependency Update 🔼 labels Jan 26, 2023
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving dependency update.

…126.1

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 8.0.0-alpha.1.23075.1 -> To Version 8.0.0-alpha.1.23076.1
@dotnet-maestro dotnet-maestro bot changed the title [main] Update dependencies from dotnet/runtime [main] Update dependencies from dotnet/runtime dotnet/efcore Jan 26, 2023
@wtgodbe
Copy link
Member

wtgodbe commented Jan 26, 2023

D:\a_work\1\s\src\Servers\Kestrel\Core\src\Internal\TlsConnectionFeature.cs(128,19): error CA1416: This call site is reachable on all platforms. 'SslStream.NegotiateClientCertificateAsync(CancellationToken)' is only supported on: 'freebsd', 'linux', 'windows'. [D:\a_work\1\s\src\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj]

@halter73 looks like we've got a new analyzer failure in Kestrel, can you take a look?

@kasperk81
Copy link
Contributor

see #34877 (comment), most likely the same suppression is needed here for same reasons.

…126.2

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 8.0.0-alpha.1.23075.1 -> To Version 8.0.0-alpha.1.23076.2
@brunolins16
Copy link
Member

brunolins16 commented Jan 26, 2023

D:\a_work\1\s\src\Servers\Kestrel\Core\src\Internal\TlsConnectionFeature.cs(128,19): error CA1416: This call site is reachable on all platforms. 'SslStream.NegotiateClientCertificateAsync(CancellationToken)' is only supported on: 'freebsd', 'linux', 'windows'. [D:\a_work\1\s\src\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj]

@halter73 looks like we've got a new analyzer failure in Kestrel, can you take a look?

@Tratcher you did some work related to a similar problem in #34877 (comment). What is the guidance here? Should we add NoWarn for CA1416 here as well?

@Tratcher
Copy link
Member

The prior one was for a whole dependency (quic), so we suppressed that at the project level. This is for a specific API so we should suppress it inline. I don't think there's any way to detect availability of the feature. @wfurt?

@wfurt
Copy link
Member

wfurt commented Jan 26, 2023

no, not really. This is result of dotnet/runtime#80717.
We really should have done it looong time ago. I feel suppressing the warning there is reasonable.
I put macOS on my TODO backlog and I may get to it before 8.0 ships.

@brunolins16
Copy link
Member

I pushed the inline suppress. @Tratcher do you want I file an issue to track it?

@JamesNK
Copy link
Member

JamesNK commented Jan 27, 2023

@brunolins16 Yes, please.

The side effect of an error from that method is scary:

        try
        {
#pragma warning disable CA1416 // Validate platform compatibility
            await _sslStream.NegotiateClientCertificateAsync(cancellationToken);
#pragma warning restore CA1416 // Validate platform compatibility
        }
        catch
        {
            // We can't tell which exceptions are fatal or recoverable. Consider them all recoverable only given a new connection
            // and close the connection gracefully to avoid over-caching and affecting future requests on this connection.
            // This allows recovery by starting a new connection. The close is graceful to allow the server to
            // send an error response like 401. https://github.com/dotnet/aspnetcore/issues/41369
            _context.Features.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
            throw;
        }

I think we need to investigate what happens if someone calls that method on macOS. We might want to check the OS platform and primitively throw. Or maybe add a catch block for NotSupportedException (if that is what gets thrown on macOS)

cc @Tratcher

@wfurt
Copy link
Member

wfurt commented Jan 27, 2023

@JamesNK
Copy link
Member

JamesNK commented Jan 27, 2023

Thanks!

We definitely want to improve this, but it doesn't need to block this PR.

@dotnet-maestro dotnet-maestro bot merged commit 0336c73 into main Jan 27, 2023
@dotnet-maestro dotnet-maestro bot deleted the darc-main-b24e5745-f386-463f-aa93-8ec4a3a98115 branch January 27, 2023 02:24
@ghost ghost added this to the 8.0-preview1 milestone Jan 27, 2023
@Tratcher
Copy link
Member

Filed #46294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework Type: Dependency Update 🔼
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants