Skip to content

[DRAFT] Add tests for HasRows + Mutliple INFO tokens#3744

Draft
paulmedynski wants to merge 4 commits into
mainfrom
dev/paul/has-rows
Draft

[DRAFT] Add tests for HasRows + Mutliple INFO tokens#3744
paulmedynski wants to merge 4 commits into
mainfrom
dev/paul/has-rows

User Story 40111: HasRows + Mutliple INFO tokens

5140157
Select commit
Loading
Failed to load commit list.
Azure Pipelines / CI-SqlClient failed Nov 5, 2025 in 59m 58s

Build #30923 had test failures

Details

Tests

  • Failed: 4 (0.00%)
  • Passed: 119,425 (96.93%)
  • Other: 3,782 (3.07%)
  • Total: 123,211

Annotations

Check failure on line 0 in EXEC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

EXEC#L0

EXEC(0,0): Error Message: 

Check failure on line 330 in build.proj

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

build.proj#L330

build.proj(330,5): Error MSB3073: The command "         dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj"         --no-build         -v n         -p:Configuration=Release         -p:TargetnetcoreVersion=net8.0         -p:ReferenceType=Project         -p:TestSet=3         -p:TestTargetOS=Windowsnetcoreapp         --collect "Code coverage"         --results-directory TestResults         --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests"         --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3"       " exited with code 1.

Check failure on line 736 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Build log #L736

Process 'msbuild.exe' exited with code '1'.

Check failure on line 0 in EXEC

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

EXEC#L0

EXEC(0,0): Error Message: 

Check failure on line 1 in Microsoft.Data.SqlClient.UnitTests.ConnectionPool.ChannelDbConnectionPoolTest.GetConnectionMaxPoolSize_ShouldRespectOrderOfRequest

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.UnitTests.ConnectionPool.ChannelDbConnectionPoolTest.GetConnectionMaxPoolSize_ShouldRespectOrderOfRequest

System.InvalidOperationException : Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.
Raw output
   at Microsoft.Data.SqlClient.ConnectionPool.ChannelDbConnectionPool.GetInternalConnection(DbConnection owningConnection, DbConnectionOptions userOptions, Boolean async, TimeSpan timeout) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ConnectionPool/ChannelDbConnectionPool.cs:line 485
   at Microsoft.Data.SqlClient.ConnectionPool.ChannelDbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 taskCompletionSource, DbConnectionOptions userOptions, DbConnectionInternal& connection) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ConnectionPool/ChannelDbConnectionPool.cs:line 248
   at Microsoft.Data.SqlClient.UnitTests.ConnectionPool.ChannelDbConnectionPoolTest.<>c__DisplayClass9_0.<GetConnectionMaxPoolSize_ShouldRespectOrderOfRequest>b__0() in /_/src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft/Data/SqlClient/ConnectionPool/ChannelDbConnectionPoolTest.cs:line 320
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.Data.SqlClient.UnitTests.ConnectionPool.ChannelDbConnectionPoolTest.GetConnectionMaxPoolSize_ShouldRespectOrderOfRequest() in /_/src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft/Data/SqlClient/ConnectionPool/ChannelDbConnectionPoolTest.cs:line 344
--- End of stack trace from previous location ---

Check failure on line 1 in Microsoft.Data.SqlClient.ManualTesting.Tests.WeakRefTestYukonSpecific.TestReaderMars

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.ManualTesting.Tests.WeakRefTestYukonSpecific.TestReaderMars

Microsoft.Data.SqlClient.SqlException : The connection is broken and recovery is not possible.  The connection is marked by the client driver as unrecoverable.  No attempt was made to restore the connection.
Raw output
   at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnection.cs:line 2484
   at Microsoft.Data.SqlClient.SqlConnection.ValidateAndReconnect(Action beforeDisconnect, Int32 timeout) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnection.cs:line 1761
   at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean isRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommand.Reader.cs:line 1263
   at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& executeTask, Boolean& usedCache, Boolean asyncWrite, Boolean isRetry, String method) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommand.Reader.cs:line 1230
   at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommand.Reader.cs:line 187
   at Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommand.Reader.cs:line 128
   at Microsoft.Data.SqlClient.SqlCommand.ExecuteReader() in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlCommand.Reader.cs:line 92
   at Microsoft.Data.SqlClient.ManualTesting.Tests.WeakRefTestYukonSpecific.OpenNullifyReader(SqlCommand command) in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/WeakRefTestYukonSpecific/WeakRefTestYukonSpecific.cs:line 197
   at Microsoft.Data.SqlClient.ManualTesting.Tests.WeakRefTestYukonSpecific.TestReaderMarsCase(String caseName, String connectionString, ReaderTestType testType, ReaderVerificationType verificationType, String methodName) in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/WeakRefTestYukonSpecific/WeakRefTestYukonSpecific.cs:line 137
   at Microsoft.Data.SqlClient.ManualTesting.Tests.WeakRefTestYukonSpecific.TestReaderMars() in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/WeakRefTestYukonSpecific/WeakRefTestYukonSpecific.cs:line 33
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.Data.SqlClient.ManualTesting.Tests.SqlConnectionReliabilityTest.ConcurrentExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.ManualTesting.Tests.SqlConnectionReliabilityTest.ConcurrentExecution

System.AggregateException : One or more errors occurred. (One or more errors occurred. (Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.AggregateException)
Actual:   typeof(System.TimeoutException))) (One or more errors occurred. (Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.AggregateException)
Actual:   typeof(System.TimeoutException)))
---- System.AggregateException : One or more errors occurred. (Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.AggregateException)
Actual:   typeof(System.TimeoutException))
-------- Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.AggregateException)
Actual:   typeof(System.TimeoutException)
------------ System.TimeoutException : Timeout attempting to open the connection.  The time period elapsed prior to attempting to open the connection has been exceeded.  This may have occurred because of too many simultaneous non-pooled connection attempts.
---- System.AggregateException : One or more errors occurred. (Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.AggregateException)
Actual:   typeof(System.TimeoutException))
-------- Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.AggregateException)
Actual:   typeof(System.TimeoutException)
------------ System.TimeoutException : Timeout attempting to open the connection.  The time period elapsed prior to attempting to open the connection has been exceeded.  This may have occurred because of too many simultaneous non-pooled connection attempts.
Raw output
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body)
   at Microsoft.Data.SqlClient.ManualTesting.Tests.SqlConnectionReliabilityTest.ConcurrentExecution(String cnnString, SqlRetryLogicBaseProvider provider) in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlConnectionReliabilityTest.cs:line 148
   at InvokeStub_SqlConnectionReliabilityTest.ConcurrentExecution(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace #1 (System.AggregateException) -----
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Microsoft.Data.SqlClient.ManualTesting.Tests.SqlConnectionReliabilityTest.<>c__DisplayClass14_0.<ConcurrentExecution>b__1(Int32 i) in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlConnectionReliabilityTest.cs:line 153
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()
----- Inner Stack Trace -----

----- Inner Stack Trace -----
   at Microsoft.Data.Common.ADP.ExceptionWithStackTrace(Exception e) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/Common/AdapterUtil.cs:line 126
--- End of stack trace from previous location ---
   at Microsoft.Data.SqlClient.SqlRetryLogicProvider.ExecuteAsync(Object sender, Func`1 function, CancellationToken cancellationToken) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Reliability/Common/SqlRetryLogicProvider.cs:line 154
   at Microsoft.Data.SqlClient.SqlRetryLogicProvider.ExecuteAsync(Object sender, Func`1 function, CancellationToken cancellationToken) in /_/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Reliability/Common/SqlRetryLogicProvider.cs:line 181
----- Inner Stack Trace #2 (System.AggregateException) -----
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Microsoft.Data.SqlClient.ManualTesting.Tests.SqlConnectionReliabilityTest.<>c__DisplayClass14_0.<ConcurrentExecution>b__1(Int32 i) in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/RetryLogic/SqlConnectionReliabilityTest.cs:line 153
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)

Check failure on line 1 in Microsoft.Data.SqlClient.ManualTesting.Tests.DistributedTransactionTestWindows.Test_EnlistedTransactionPreservedWhilePooled

See this annotation in the file changed.

@azure-pipelines azure-pipelines / CI-SqlClient

Microsoft.Data.SqlClient.ManualTesting.Tests.DistributedTransactionTestWindows.Test_EnlistedTransactionPreservedWhilePooled

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at Microsoft.Data.SqlClient.ManualTesting.Tests.DistributedTransactionTestWindows.EnlistedTransactionPreservedWhilePooled() in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/TransactionTest/DistributedTransactionTest.Windows.cs:line 121
   at Microsoft.Data.SqlClient.ManualTesting.Tests.DistributedTransactionTestWindows.RunTestSet(Func`1 TestCase) in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/TransactionTest/DistributedTransactionTest.Windows.cs:line 173
   at Microsoft.Data.SqlClient.ManualTesting.Tests.DistributedTransactionTestWindows.Test_EnlistedTransactionPreservedWhilePooled() in /_/src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/TransactionTest/DistributedTransactionTest.Windows.cs:line 61
--- End of stack trace from previous location ---