Skip to content

Stabilize IIS child process restart test - #70294

Merged
BrennanConroy merged 3 commits into
mainfrom
flaky/68150-worker-exit-sync
Nov 6, 2026
Merged

BrennanConroy merged 3 commits into
mainfrom
flaky/68150-worker-exit-sync

Conversation

@BrennanConroy

@BrennanConroy BrennanConroy commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Stabilize IIS child process restart test

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making.

Retry the restart assertion through the out-of-process worker transition.

Description

ConfigurationChangeForcesChildProcessRestart reads the original out-of-process worker PID, touches web.config, and polls /ProcessId until the replacement worker responds. A request can reach the old worker while ANCM is terminating it. The IIS integration logging handler then buffers that response body while the connection is forcibly closed, producing the HttpRequestException recorded in #68150.

Use the existing test retry helper around both the /ProcessId request and PID assertion. This treats the connection reset and responses from the original process as transient during the expected worker replacement, while preserving the final assertion, timeout, and quarantine.

Validation

  • git diff --check passes.
  • A fresh Windows test run of the earlier process-exit synchronization timed out waiting for the original process, confirming that approach did not model ANCM's restart behavior.
  • Local compilation was unavailable because this checkout does not have the repository-managed .NET SDK installed. The affected test remains Windows-only, so runtime validation is delegated to the PR's Windows CI.

Fixes #68150

🤖 Posted by Flaky (AI Agent)

Wait for the original out-of-process worker to exit before polling the replacement, avoiding response-body logging against a connection being forcibly closed.

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Nov 4, 2026
@BrennanConroy
BrennanConroy marked this pull request as ready for review November 4, 2026 18:56
Copilot AI balanced review requested due to automatic review settings November 4, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The Windows IIS/ANCM shutdown-race fix needs targeted Windows CI validation because restore blocked compilation and execution, and the affected test remains quarantined.

No open issues 🎉

What changed in this PR

This PR addresses the intermittent IIS restart-test failure in #68150 by waiting for the original child process to exit before polling for its replacement.

Changes:

  • Captures the original worker process using its returned PID, parsed with invariant culture.
  • Waits for that process to exit using the existing default timeout, preserving the quarantine and replacement-PID assertion.

Runtime validation remains deferred to Windows CI; local builds were blocked during dependency restore.

File Description
src/​Servers/​IIS/​IIS/​test/​Common.LongTests/​ShutdownTests.cs Synchronizes restart polling with the original worker’s exit.

Review effort: Balanced

@PureWeen

PureWeen commented Nov 4, 2026

Copy link
Copy Markdown
Member

/review

@BrennanConroy

Copy link
Copy Markdown
Member Author

Test failed with:

Details

[0.002s] [TestLifetime] [Information] Starting test ConfigurationChangeForcesChildProcessRestart at 2026-11-04T20:03:06
[0.004s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Deploying [Variation] :: ServerType=IISExpress, Runtime=CoreClr, Arch=x64, BaseUrlHint=, Publish=True, HostingModel=OutOfProcess
[0.004s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Microsoft Windows NT 10.0.26100.0
[0.004s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Using prepublished application from C:\h\w\A76208B8\w\92EB087E\e\InProcessWebSite-Portable
[0.006s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\ARM64
[0.006s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying aspnetcorev2_inprocess.dll
[0.009s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\runtimes\win\lib\net12.0
[0.009s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying System.Diagnostics.EventLog.dll
[0.010s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying System.Diagnostics.EventLog.Messages.dll
[0.011s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying System.Security.Cryptography.Pkcs.dll
[0.012s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\runtimes\win\lib
[0.013s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\runtimes\win
[0.013s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\runtimes
[0.013s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\wwwroot
[0.014s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying static.txt
[0.014s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying static.txt.br
[0.015s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying static.txt.gz
[0.016s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\x64
[0.016s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying aspnetcorev2_inprocess.dll
[0.018s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc\x86
[0.018s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying aspnetcorev2_inprocess.dll
[0.019s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Processing C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc
[0.019s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying InProcessWebSite.deps.json
[0.020s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying InProcessWebSite.dll
[0.021s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying InProcessWebSite.exe
[0.022s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying InProcessWebSite.pdb
[0.023s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying InProcessWebSite.runtimeconfig.json
[0.024s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying InProcessWebSite.staticwebassets.endpoints.json
[0.025s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.Abstractions.dll
[0.025s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.Abstractions.pdb
[0.026s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.Abstractions.xml
[0.027s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.Core.dll
[0.028s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.Core.pdb
[0.029s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.Core.xml
[0.030s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.dll
[0.031s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.pdb
[0.032s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Authentication.xml
[0.032s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Connections.Abstractions.dll
[0.033s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Connections.Abstractions.pdb
[0.034s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Connections.Abstractions.xml
[0.035s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Cryptography.Internal.dll
[0.036s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Cryptography.Internal.pdb
[0.037s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Cryptography.Internal.xml
[0.038s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.DataProtection.Abstractions.dll
[0.039s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.DataProtection.Abstractions.pdb
[0.040s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.DataProtection.Abstractions.xml
[0.041s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.DataProtection.dll
[0.042s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.DataProtection.pdb
[0.043s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.DataProtection.xml
[0.043s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.Abstractions.dll
[0.044s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.Abstractions.pdb
[0.045s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.Abstractions.xml
[0.046s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.dll
[0.047s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.pdb
[0.048s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
[0.049s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.Server.Abstractions.pdb
[0.050s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.Server.Abstractions.xml
[0.051s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Hosting.xml
[0.055s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Abstractions.dll
[0.056s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Abstractions.pdb
[0.057s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Abstractions.xml
[0.058s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.dll
[0.059s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Extensions.dll
[0.060s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Extensions.pdb
[0.061s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Extensions.xml
[0.062s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Features.dll
[0.065s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Features.pdb
[0.066s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.Features.xml
[0.067s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.pdb
[0.068s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Http.xml
[0.069s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.HttpOverrides.dll
[0.070s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.HttpOverrides.pdb
[0.071s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.HttpOverrides.xml
[0.072s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.HttpsPolicy.dll
[0.073s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.HttpsPolicy.pdb
[0.073s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.HttpsPolicy.xml
[0.074s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.ResponseCompression.dll
[0.075s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.ResponseCompression.pdb
[0.076s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.ResponseCompression.xml
[0.077s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.HttpSys.dll
[0.078s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.HttpSys.pdb
[0.079s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.HttpSys.xml
[0.080s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.IIS.dll
[0.081s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.IIS.pdb
[0.082s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.IIS.xml
[0.083s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.IISIntegration.dll
[0.084s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.IISIntegration.pdb
[0.085s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.IISIntegration.xml
[0.086s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Core.dll
[0.087s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Core.pdb
[0.088s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Core.xml
[0.090s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.dll
[0.090s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.pdb
[0.091s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll
[0.092s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.pdb
[0.093s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.xml
[0.094s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll
[0.095s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.pdb
[0.096s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.xml
[0.097s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
[0.098s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.pdb
[0.099s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.xml
[0.131s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.Server.Kestrel.xml
[0.132s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.WebSockets.dll
[0.133s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.WebSockets.pdb
[0.134s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.WebSockets.xml
[0.134s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.WebUtilities.dll
[0.135s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.WebUtilities.pdb
[0.136s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.AspNetCore.WebUtilities.xml
[0.137s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.Binder.dll
[0.138s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.CommandLine.dll
[0.139s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.dll
[0.140s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.EnvironmentVariables.dll
[0.141s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.FileExtensions.dll
[0.142s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.Json.dll
[0.142s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Configuration.UserSecrets.dll
[0.143s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.DependencyInjection.dll
[0.144s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Diagnostics.dll
[0.145s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Features.dll
[0.146s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Features.pdb
[0.146s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Features.xml
[0.147s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.FileProviders.Composite.dll
[0.148s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.FileProviders.Physical.dll
[0.148s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.FileSystemGlobbing.dll
[0.149s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Hosting.dll
[0.150s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Http.dll
[0.151s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Logging.Configuration.dll
[0.151s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Logging.Console.dll
[0.152s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Logging.Debug.dll
[0.153s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Logging.dll
[0.154s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Logging.EventLog.dll
[0.155s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Logging.EventSource.dll
[0.155s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.ObjectPool.dll
[0.156s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.ObjectPool.pdb
[0.157s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.ObjectPool.xml
[0.157s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.Options.ConfigurationExtensions.dll
[0.158s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.WebEncoders.dll
[0.159s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.WebEncoders.pdb
[0.160s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Extensions.WebEncoders.xml
[0.160s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Net.Http.Headers.dll
[0.161s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Net.Http.Headers.pdb
[0.162s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying Microsoft.Net.Http.Headers.xml
[0.163s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying System.Diagnostics.EventLog.dll
[0.163s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying System.Security.Cryptography.Pkcs.dll
[0.164s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying System.Security.Cryptography.Xml.dll
[0.165s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying TestTasks.deps.json
[0.166s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying TestTasks.exe
[0.167s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying TestTasks.runtimeconfig.json
[0.167s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying web.config
[0.168s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Copying xunit.assert.dll
[0.170s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Attempting to start IIS Express on port: 55623
[0.172s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Saving Config to C:\h\w\A76208B8\t\tmpyirevn.tmp
[0.172s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Executing command : C:\Program Files\IIS Express\iisexpress.exe /site:2 /config:C:\h\w\A76208B8\t\tmpyirevn.tmp /trace:error /systray:false
[0.173s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Removing environment variable ASPNETCORE_ENVIRONMENT
[0.173s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] SET ASPNETCORE_DETAILEDERRORS=true
[0.173s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] SET ASPNETCORE_MODULE_DEBUG=console
[0.178s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress Process 9184 started
[0.260s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Starting IIS Express ...
[0.277s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Initializing the W3 Server Started CTC = 1155359
[0.284s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: W3 Server initializing WinSock. CTC = 1155375
[0.284s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: W3 Server WinSock initialized. CTC = 1155375
[0.285s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: W3 Server ThreadPool initialized (ipm has signalled). CTC = 1155375
[0.310s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.266Z, PID: 9184] [aspnetcorev2.dll] Initializing logs for 'C:\h\w\A76208B8\w\92EB087E\e\ANCM\x64\aspnetcorev2.dll'. Process Id: 9184. File Version: 22.0.26308.0. Description: IIS ASP.NET Core Module V2. Commit: .
[0.310s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Start listenerChannel http:0
[0.312s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Successfully registered URL "http://localhost:55623/" for site "2" application "/"
[0.312s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Registration completed for site "2"
[0.313s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: AppPool 'IISExpressAppPool' initialized
[0.313s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: InitComplete event signalled
[0.314s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: IIS Express is running.
[0.314s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Started iisexpress successfully. Process Id : 9184, Port: 55623
[0.314s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Application ready at URL: http://localhost:55623/
[0.315s] [2] [Debug] Method: GET, RequestUri: 'http://localhost:55623/ProcessId', Version: 1.1, Content: , Headers:
{
}
[0.317s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: IncrementMessages called
[0.321s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Request started: "GET" http://localhost:55623/ProcessId
[0.324s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.281Z, PID: 9184] [aspnetcorev2.dll] Loading request handler: 'C:\h\w\A76208B8\w\92EB087E\e\ANCM\x64\2.0.0\aspnetcorev2_outofprocess.dll'
[0.326s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.283Z, PID: 9184] [aspnetcorev2_outofprocess.dll] Initializing logs for 'C:\h\w\A76208B8\w\92EB087E\e\ANCM\x64\2.0.0\aspnetcorev2_outofprocess.dll'. Process Id: 9184. File Version: 22.0.26308.0. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: .
[0.326s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.283Z, PID: 9184] [aspnetcorev2.dll] Creating handler application
[0.327s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.284Z, PID: 9184] [aspnetcorev2_outofprocess.dll] Starting app_offline monitoring in application 'C:\h\w\A76208B8\t\4c8792fe12824f29861efbb66426eefc'
[0.328s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.284Z, PID: 9184] [aspnetcorev2_outofprocess.dll] Starting file watcher thread
[0.847s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:07.802Z, PID: 9184] [aspnetcorev2_outofprocess.dll] Event Log: 'Application '/LM/W3SVC/2/ROOT' started process '9992' successfully and process '9992' is listening on port '37127'.'
[0.847s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: End Event Log Message.
[1.006s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Response sent: http://localhost:55623/ProcessId with HTTP status 200.0
[1.006s] [2] [Debug] StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Transfer-Encoding: chunked
Server: Kestrel
X-SourceFiles: =?UTF-8?B?QzpcaFx3XEE3NjIwOEI4XHRcNGM4NzkyZmUxMjgyNGYyOTg2MWVmYmI2NjQyNmVlZmNcUHJvY2Vzc0lk?=
X-Powered-By: ASP.NET
Date: Wed, 04 Nov 2026 20:03:07 GMT
}
[1.181s] [2] [Debug] 9992
[1.181s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: Response sent: http://localhost:55623/ProcessId with HTTP status 200.0
[1.183s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:08.139Z, PID: 9184] [aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalApplicationStop
[1.183s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:08.140Z, PID: 9184] [aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange 'MACHINE/WEBROOT/APPHOST/2'
[1.183s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:08.140Z, PID: 9184] [aspnetcorev2.dll] Shutdown starting in 1000 ms.
[2.185s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress stdout: [2026-11-04T20:03:09.142Z, PID: 9184] [aspnetcorev2.dll] Shutdown starting.
[31.192s] [Microsoft.AspNetCore.Server.IIS.IISExpress.FunctionalTests.ShutdownTests] [Error] Test threw an exception.
System.TimeoutException: The operation has timed out.
at Microsoft.AspNetCore.InternalTesting.TaskExtensions.TimeoutAfter(Task task, TimeSpan timeout, String filePath, Int32 lineNumber) in //src/Shared/TaskExtensions.cs:line 123
at Microsoft.AspNetCore.Server.IIS.IISExpress.FunctionalTests.ShutdownTests.ConfigurationChangeForcesChildProcessRestart() in /
/src/Servers/IIS/IIS/test/Common.LongTests/ShutdownTests.cs:line 476
at Xunit.Sdk.TestInvoker1.<>c__DisplayClass47_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 259 --- End of stack trace from previous location --- at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func1 asyncAction) in //src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /
/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90
[31.193s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Attempting to cancel process 9184
[31.287s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] iisexpress Process 9184 shut down
[31.287s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Host process shutting down.
[31.287s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] Successfully terminated host process with process Id '9184'
[31.288s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Debug] Deleting applicationHost.config file from C:\h\w\A76208B8\t\tmpyirevn.tmp
[31.327s] [Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer] [Information] [Time]: Total time taken for this test variation '31.3233186' seconds

Copy link
Copy Markdown
Member Author

The diagnostic confirms the process-exit synchronization is the new failure: ANCM begins shutdown, but the original worker does not exit within the test timeout. I replaced that wait with the existing test retry helper around the /ProcessId request and PID assertion. This directly tolerates the documented connection-reset window while still requiring a different PID within the existing bounded timeout; the quarantine remains intact.

🤖 Posted by Flaky (AI Agent)

@BrennanConroy

Copy link
Copy Markdown
Member Author

/ba-g unrelated

@BrennanConroy
BrennanConroy enabled auto-merge (squash) November 6, 2026 19:50
@BrennanConroy

Copy link
Copy Markdown
Member Author

/ba-g unrelated

@BrennanConroy
BrennanConroy merged commit a56cc38 into main Nov 6, 2026
28 of 30 checks passed
@BrennanConroy
BrennanConroy deleted the flaky/68150-worker-exit-sync branch November 6, 2026 21:26
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR only stabilizes a flaky IIS test, and no documentation signals were found.

Documentation surfaces considered

  • Conceptual article: Not required — Only a test file changed (src/Servers/IIS/IIS/test/Common.LongTests/ShutdownTests.cs); no user-visible behavior.
  • Migration guidance: Not required — No behavior or defaults change for upgrading users.
  • Breaking change: Not required — No API or behavior compatibility impact; test-only.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 754cf292 Deployed Nov 6, 2026 by BrennanConroy via conclusion #226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarantine ShutdownTests.ConfigurationChangeForcesChildProcessRestart

4 participants