Skip to content

[release/11.0] Fix test failures in dependency update #69958 - #69961

Merged
ilonatommy merged 3 commits into
dotnet:darc-release/11.0-a2371c89-85df-4b9b-bfe8-f31024959109from
wtgodbe:wtgodbe/fix-pr69958-tests
Oct 22, 2026
Merged

ilonatommy merged 3 commits into
dotnet:darc-release/11.0-a2371c89-85df-4b9b-bfe8-f31024959109from
wtgodbe:wtgodbe/fix-pr69958-tests

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Oct 21, 2026

Copy link
Copy Markdown
Member

Summary

Test-only follow-up to #69958. This PR targets the dependency-update branch, not release/11.0 directly.

  • Give the endpoint tests' fake host a valid ContentRootPath so Data Protection options initialization does not throw before the redirect scenarios execute.
  • Wait until the Kestrel application has initiated its request-body read before disposing the client connection. This prevents an early FIN from bypassing request processing and leaves the existing logging assertions intact.
  • Use the existing retrying Browser.Equal helper for the routing test's first post-navigation assertion, reacquiring the element after a transient stale-element exception.

No product code, timeouts, or test expectations are changed.

Validation

Using the repository-pinned SDK on macOS ARM64:

  • Reproduced both endpoint redirect tests failing with NotImplementedException from the fake ContentRootPath getter without the fix; both pass with the fix.
  • Reproduced the original Kestrel test timing out waiting for the bad-request log without the synchronization; the same test passes with the fix.
  • The browser E2E test was not run: the repository disables Selenium E2E tests on ARM64. The assertion follows the retrying pattern already used by neighboring routing tests and still needs CI confirmation.
  • git diff --check passes.

Focused runs used the area build scripts with these filters:

./src/Components/build.sh --test --no-restore \
  --projects "$PWD/src/Components/Endpoints/test/Microsoft.AspNetCore.Components.Endpoints.Tests.csproj" \
  --no-build-nodejs --no-build-native --no-build-java \
  '-p:TestRunnerAdditionalArguments=-method *Invoker_RedirectWhile*'

./src/Servers/Kestrel/build.sh --test --no-restore \
  --projects "$PWD/src/Servers/Kestrel/test/Sockets.FunctionalTests/Sockets.FunctionalTests.csproj" \
  --no-build-nodejs --no-build-native --no-build-java \
  '-p:TestRunnerAdditionalArguments=-method *IncompleteRequestBodyDoesNotLogAsApplicationError'

@wtgodbe
wtgodbe marked this pull request as ready for review October 21, 2026 23:43
@ilonatommy
ilonatommy merged commit 931199c into dotnet:darc-release/11.0-a2371c89-85df-4b9b-bfe8-f31024959109 Oct 22, 2026
25 checks passed
akoeplinger pushed a commit that referenced this pull request Oct 22, 2026
* Backflow from https://github.com/dotnet/dotnet / fba04ff build 337533

Diff: https://github.com/dotnet/dotnet/compare/2408d551ede84e03cfc2c9509f1a7ce4554ec61c..fba04ffe869680486931c78fd815b3f694087f91

From: dotnet/dotnet@2408d55
To: dotnet/dotnet@fba04ff

[[ commit created by automation ]]

* Update dependencies from build 337533
Updated Dependencies:
Microsoft.NET.Runtime.WebAssembly.Sdk, Microsoft.NET.Runtime.MonoAOTCompiler.Task, dotnet-ef, Microsoft.Bcl.AsyncInterfaces, Microsoft.Bcl.Cryptography, Microsoft.Bcl.TimeProvider, Microsoft.EntityFrameworkCore, Microsoft.EntityFrameworkCore.Design, Microsoft.EntityFrameworkCore.InMemory, Microsoft.EntityFrameworkCore.Relational, Microsoft.EntityFrameworkCore.Sqlite, Microsoft.EntityFrameworkCore.SqlServer, Microsoft.EntityFrameworkCore.Tools, 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.Diagnostics, Microsoft.Extensions.Diagnostics.Abstractions, Microsoft.Extensions.FileProviders.Abstractions, Microsoft.Extensions.FileProviders.Composite, Microsoft.Extensions.FileProviders.Physical, Microsoft.Extensions.FileSystemGlobbing, 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.NETCore.App.Ref, System.Collections.Immutable, System.Composition, System.Configuration.ConfigurationManager, System.Diagnostics.DiagnosticSource, System.Diagnostics.EventLog, System.Diagnostics.PerformanceCounter, System.DirectoryServices.Protocols, System.Formats.Asn1, System.Formats.Cbor, System.IO.Hashing, System.IO.Pipelines, System.Memory.Data, System.Net.Http.Json, System.Net.Http.WinHttpHandler, System.Net.ServerSentEvents, System.Numerics.Tensors, System.Reflection.Metadata, System.Resources.Extensions, System.Runtime.Caching, 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 (Version 11.0.0 -> 11.0.0)
Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Archives, Microsoft.DotNet.Build.Tasks.Installers, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.Helix.JobMonitor, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.RemoteExecutor, Microsoft.DotNet.SharedFramework.Sdk (Version 11.0.0-beta.26514.117 -> 11.0.0-beta.26520.139)
Microsoft.Extensions.HostFactoryResolver.Sources, Microsoft.Internal.Runtime.AspNetCore.Transport, Microsoft.NETCore.BrowserDebugHost.Transport, Microsoft.NETCore.Platforms (Version 11.0.0-rtm.26514.117 -> 11.0.0-rtm.26520.139)
Microsoft.Web.Xdt (Version 3.3.0 -> 3.3.0)
NuGet.Frameworks, NuGet.Packaging, NuGet.Versioning (Version 8.0.0-rc.51617 -> 8.0.0-rc.52239)
[[ commit created by automation ]]

* Update dependencies from build 337734
Updated Dependencies:
Microsoft.NET.Runtime.WebAssembly.Sdk, Microsoft.NET.Runtime.MonoAOTCompiler.Task, dotnet-ef, Microsoft.Bcl.AsyncInterfaces, Microsoft.Bcl.Cryptography, Microsoft.Bcl.TimeProvider, Microsoft.EntityFrameworkCore, Microsoft.EntityFrameworkCore.Design, Microsoft.EntityFrameworkCore.InMemory, Microsoft.EntityFrameworkCore.Relational, Microsoft.EntityFrameworkCore.Sqlite, Microsoft.EntityFrameworkCore.SqlServer, Microsoft.EntityFrameworkCore.Tools, 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.Diagnostics, Microsoft.Extensions.Diagnostics.Abstractions, Microsoft.Extensions.FileProviders.Abstractions, Microsoft.Extensions.FileProviders.Composite, Microsoft.Extensions.FileProviders.Physical, Microsoft.Extensions.FileSystemGlobbing, 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.NETCore.App.Ref, System.Collections.Immutable, System.Composition, System.Configuration.ConfigurationManager, System.Diagnostics.DiagnosticSource, System.Diagnostics.EventLog, System.Diagnostics.PerformanceCounter, System.DirectoryServices.Protocols, System.Formats.Asn1, System.Formats.Cbor, System.IO.Hashing, System.IO.Pipelines, System.Memory.Data, System.Net.Http.Json, System.Net.Http.WinHttpHandler, System.Net.ServerSentEvents, System.Numerics.Tensors, System.Reflection.Metadata, System.Resources.Extensions, System.Runtime.Caching, 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 (Version 11.0.0 -> 11.0.0)
Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Archives, Microsoft.DotNet.Build.Tasks.Installers, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.Helix.JobMonitor, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.RemoteExecutor, Microsoft.DotNet.SharedFramework.Sdk (Version 11.0.0-beta.26520.139 -> 11.0.0-beta.26521.105)
Microsoft.Extensions.HostFactoryResolver.Sources, Microsoft.Internal.Runtime.AspNetCore.Transport, Microsoft.NETCore.BrowserDebugHost.Transport, Microsoft.NETCore.Platforms (Version 11.0.0-rtm.26520.139 -> 11.0.0-rtm.26521.105)
Microsoft.Web.Xdt (Version 3.3.0 -> 3.3.0)
NuGet.Frameworks, NuGet.Packaging, NuGet.Versioning (Version 8.0.0-rc.52239 -> 8.0.0-rc.52305)
[[ commit created by automation ]]

* [release/11.0] Fix test failures in dependency update #69958 (#69961)

* Fix content root in endpoint redirect test fixture

Co-authored-by: Copilot <[email protected]>

* Synchronize incomplete request body test before closing the client

Co-authored-by: Copilot <[email protected]>

* Wait for query string page navigation in routing test

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: William Godbe <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants