Commit 6df62c0
Increase connection timeout in DW/MSSQL test pipelines (#3132)
## Why make this change?
Recent test failures show connection timeouts. The logs showed ~6-second
pre-login initialization timeout, a 5-second timeout is quite aggressive
— especially for a CI pipeline where the LocalDB instance may still be
warming up. Hence, increasing it (e.g., Connection Timeout=30) to give
the server more time to respond.
Sample error:
> 2026-02-13T20:59:04.0245012Z Failed TestParallelUpdateMutations
> 2026-02-13T20:59:04.0245495Z Error Message:
> 2026-02-13T20:59:04.0246509Z Class Initialization method
Azure.DataApiBuilder.Service.Tests.SqlTests.GraphQLMutationTests.DwSqlGraphQLMutationTests.SetupAsync
threw exception. Microsoft.Data.SqlClient.SqlException: Connection
Timeout Expired. The timeout period elapsed while attempting to consume
the pre-login handshake acknowledgement. This could be because the
pre-login handshake failed or the server was unable to respond back in
time. The duration spent while attempting to connect to this server was
- [**Pre-Login] initialization=6070; handshake=12; .**
> 2026-02-13T20:59:04.0247932Z Stack Trace:
> 2026-02-13T20:59:04.0248828Z at
Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection
owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate,
Boolean onlyOneCheckConnection, DbConnectionOptions userOptions,
DbConnectionInternal& connection)
> 2026-02-13T20:59:04.0250628Z at
Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection
owningObject, TaskCompletionSource`1 retry, DbConnectionOptions
userOptions, DbConnectionInternal& connection)
> 2026-02-13T20:59:04.0251634Z at
Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection
owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions
userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&
connection)
> 2026-02-13T20:59:04.0252629Z at
Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection
outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
> 2026-02-13T20:59:04.0253737Z at
Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
> 2026-02-13T20:59:04.0254549Z at
Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1
retry, SqlConnectionOverrides overrides)
> 2026-02-13T20:59:04.0255307Z at
Microsoft.Data.SqlClient.SqlConnection.InternalOpenAsync(CancellationToken
cancellationToken)
> 2026-02-13T20:59:04.0255996Z --- End of stack trace from previous
location ---
>
## What is the change?
Increase connection timeout value from 5 to 30 seconds for both DWSQL
and MSSQL pipelines.
---------
Co-authored-by: Copilot <[email protected]>1 parent a971f79 commit 6df62c0
5 files changed
Lines changed: 7 additions & 7 deletions
File tree
- .pipelines
- src/Service.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments