Skip to content

Increase connection timeout in DW/MSSQL test pipelines#3132

Merged
Aniruddh25 merged 2 commits intomainfrom
dev/anmunde/increaseTimeout
Feb 15, 2026
Merged

Increase connection timeout in DW/MSSQL test pipelines#3132
Aniruddh25 merged 2 commits intomainfrom
dev/anmunde/increaseTimeout

Conversation

@Aniruddh25
Copy link
Collaborator

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, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) 2026-02-13T20:59:04.0251634Z at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
2026-02-13T20:59:04.0252629Z at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) 2026-02-13T20:59:04.0253737Z at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 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.

@Aniruddh25
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@Aniruddh25 Aniruddh25 changed the title Increase connection timeout Increase connection timeout in DW/MSSQL test pipelines Feb 15, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR increases SQL Server connection timeout values from 5 to 30 seconds in CI pipeline configurations to address connection timeout failures during pre-login handshake, particularly when LocalDB instances are warming up in CI environments.

Changes:

  • Updated connection timeout from 5 to 30 seconds in MSSQL pipeline configuration (both Linux and Windows jobs)
  • Updated connection timeout from 5 to 30 seconds in DWSQL pipeline configuration (both Linux and Windows jobs)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.pipelines/mssql-pipelines.yml Increased connection timeout to 30 seconds for both Linux (line 79) and Windows (line 164) job connection strings
.pipelines/dwsql-pipelines.yml Increased connection timeout to 30 seconds for both Linux (line 78) and Windows (line 160) job connection strings

Copy link
Contributor

Copilot AI commented Feb 15, 2026

@Aniruddh25 I've opened a new pull request, #3133, to work on those changes. Once the pull request is ready, I'll request review from you.

…3133)

## Why make this change?

Addresses review feedback from #3132 requesting consistency between
pipeline and test configuration connection timeout values. Pipeline
configs were updated to use 30-second timeouts, but test configs still
used 5 seconds.

## What is this change?

Updated `Connection Timeout` parameter from 5 to 30 seconds in three
test configuration files:
- `src/Service.Tests/dab-config.MsSql.json`
- `src/Service.Tests/dab-config.DwSql.json`
- `src/Service.Tests/Multidab-config.MsSql.json`

This aligns test configurations with pipeline configurations
(`.pipelines/mssql-pipelines.yml`, `.pipelines/dwsql-pipelines.yml`) to
ensure consistent timeout behavior across test and CI environments.

## How was this tested?

- [ ] Integration Tests
- [ ] Unit Tests

Configuration changes only - no functional code changes requiring new
tests.

## Sample Request(s)

N/A - Configuration changes only.

<!-- START COPILOT CODING AGENT TIPS -->
---

✨ Let Copilot coding agent [set things up for
you](https://github.com/Azure/data-api-builder/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Aniruddh25 <3513779+Aniruddh25@users.noreply.github.com>
@Aniruddh25
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@Aniruddh25 Aniruddh25 enabled auto-merge (squash) February 15, 2026 03:24
@Aniruddh25 Aniruddh25 merged commit 6df62c0 into main Feb 15, 2026
11 checks passed
@Aniruddh25 Aniruddh25 deleted the dev/anmunde/increaseTimeout branch February 15, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants