Skip to content

Refactor Test TDS Servers. Expand functional testing of connection pooling and transient failures.#3488

Merged
mdaigle merged 51 commits into
dotnet:mainfrom
mdaigle:dev/mdaigle/failover-tds-server
Sep 25, 2025
Merged

Refactor Test TDS Servers. Expand functional testing of connection pooling and transient failures.#3488
mdaigle merged 51 commits into
dotnet:mainfrom
mdaigle:dev/mdaigle/failover-tds-server

Add common test project to unit test restore targets.

5eee939
Select commit
Loading
Failed to load commit list.
Azure Pipelines / CI-SqlClient failed Sep 4, 2025 in 1h 42m 20s

Build #24617 had test failures

Details

Tests

  • Failed: 3 (0.00%)
  • Passed: 93,526 (96.76%)
  • Other: 3,132 (3.24%)
  • Total: 96,661

Annotations

Check failure on line 660 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Build log #L660

Error: The process '/Users/runner/hostedtoolcache/dotnet' failed with exit code 1

Check failure on line 662 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Build log #L662

Dotnet command failed with non-zero exit code on the following projects : [ '/Users/runner/work/1/s/build.proj' ]

Check failure on line 1315 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Build log #L1315

Error: The process '/Users/runner/hostedtoolcache/dotnet' failed with exit code 1

Check failure on line 1 in Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner

Assert.Equal() Failure: Values differ
Expected: 1
Actual:   2
Raw output
   at Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner() in /_/src/Microsoft.Data.SqlClient/tests/UnitTests/SimulatedServerTests/ConnectionFailoverTests.cs:line 290

Check failure on line 1 in Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner

Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections.  This failure occurred while attempting to connect to the Principle server.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=2; handshake=72; [Login] initialization=0; authentication=0; [Post-Login] complete=5419; 
Raw output
   at Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner() in /_/src/Microsoft.Data.SqlClient/tests/UnitTests/SimulatedServerTests/ConnectionFailoverTests.cs:line 282

Check failure on line 1 in Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.TransientFault_NoFailover_DoesNotClearPool(errorCode: 42108)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.TransientFault_NoFailover_DoesNotClearPool(errorCode: 42108)

Assert.Equal() Failure: Strings differ
                         ↓ (pos 14)
Expected: "localhost,54208"
Actual:   "localhost,54204"
                         ↑ (pos 14)
Raw output
   at Microsoft.Data.SqlClient.ScenarioTests.ConnectionFailoverTests.TransientFault_NoFailover_DoesNotClearPool(UInt32 errorCode) in /_/src/Microsoft.Data.SqlClient/tests/UnitTests/SimulatedServerTests/ConnectionFailoverTests.cs:line 66
   at InvokeStub_ConnectionFailoverTests.TransientFault_NoFailover_DoesNotClearPool(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)