Skip to content

Unable to run IIS Express tests locally #25107

@Tratcher

Description

@Tratcher

This is blocking IIS feature work.

Repro steps:
Non-admin cmd
git clean -xdf
build.cmd at the root
build.cmd -Test in src\Servers\IIS\

The tests take almost two hours to fail, and produce a variety of errors. They don't work in VS either.

Time Elapsed 01:59:02.27
XUnit : error : Tests failed: D:\github\AspNetCore\artifacts\TestResults\Debug\IISExpress.FunctionalTests_net5.0_x64.html [net5.0|x64] [d:\github\AspNetCore\src\Servers\IIS\IIS\test\IISExpress.FunctionalTests\IISExpress.FunctionalTests.csproj]

Tests run: 324 — Failures: 97, Skipped: 29, Run time: 7111.325s, Finished: 08/20/2020 14:44:27

Most failures are shutdown failures, each taking 60 seconds to time out.

Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectStressTests.ClientDisconnectStress(hostingModel: InProcess)
System.InvalidOperationException : iisexpress Process 14416 failed to gracefully shutdown.
   at Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer.GracefullyShutdownProcess(Process hostProcess) in D:\github\AspNetCore\src\Servers\IIS\IntegrationTesting.IIS\src\IISExpressDeployer.cs:line 537
   at Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISExpressDeployer.Dispose(Boolean gracefulShutdown) in D:\github\AspNetCore\src\Servers\IIS\IntegrationTesting.IIS\src\IISExpressDeployer.cs:line 407
   at Microsoft.AspNetCore.Server.IntegrationTesting.FunctionalTestsBase.StopServer(Boolean gracefulShutdown) in d:\github\AspNetCore\src\Servers\IIS\IIS\test\Common.FunctionalTests\Utilities\FunctionalTestsBase.cs:line 62
   at Microsoft.AspNetCore.Server.IIS.FunctionalTests.ClientDisconnectStressTests.ClientDisconnectStress(HostingModel hostingModel) in d:\github\AspNetCore\src\Servers\IIS\IIS\test\Common.FunctionalTests\ClientDisconnectStress.cs:line 62
--- End of stack trace from previous location ---

This test seems to be broken, notice the casing difference.

 Microsoft.AspNetCore.Server.IIS.FunctionalTests.HttpsTests.ServerAddressesIncludesBaseAddress
Assert.Equal() Failure
                                 ↓ (pos 25)
Expected: ···://localhost:44300/МоёПриложение
Actual:   ···://localhost:44300/МОЁПРИЛОЖЕНИЕ
                                 ↑ (pos 25)
   at Microsoft.AspNetCore.Server.IIS.FunctionalTests.HttpsTests.ServerAddressesIncludesBaseAddress() in d:\github\AspNetCore\src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs:line 93
--- End of stack trace from previous location ---

Permissions or file in use?

 Microsoft.AspNetCore.Server.IIS.FunctionalTests.OutOfProcess.GlobalVersionTests.GlobalVersion_EnvironmentVariableWorks
System.UnauthorizedAccessException : Access to the path 'C:\\Users\\chrross\\AppData\\Local\\Temp\\tmpB17F.tmp' is denied.
   at System.IO.FileSystem.DeleteFile(String fullPath)
   at Microsoft.AspNetCore.Server.IIS.FunctionalTests.OutOfProcess.GlobalVersionTests.GlobalVersion_EnvironmentVariableWorks() in d:\github\AspNetCore\src\Servers\IIS\IIS\test\Common.FunctionalTests\OutOfProcess\GlobalVersionTests.cs:line 69
--- End of stack trace from previous location ---

I've tried this on stable Win10 19041.450 as well as Windows Insiders Dev.

cc @jkotalik

Metadata

Metadata

Assignees

Labels

affected-fewThis issue impacts only small number of customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsbugThis issue describes a behavior which is not expected - a bug.feature-iisIncludes: IIS, ANCMseverity-minorThis label is used by an internal tooltest-failure

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions