FEAT: Add stress test pipeline and migrate it to new 1ES Pool/Images#432
Open
gargsaumya wants to merge 6 commits intomainfrom
Open
FEAT: Add stress test pipeline and migrate it to new 1ES Pool/Images#432gargsaumya wants to merge 6 commits intomainfrom
gargsaumya wants to merge 6 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new scheduled/manual OneBranch pipeline to run stress testing and introduces a new multi-threaded stress test suite for mssql-python aimed at validating pooling and concurrency behavior under sustained and high-concurrency load.
Changes:
- Added a new
tests/test_020_multithreaded_stress.pymodule with multi-threaded stress tests and a helper runner/metrics models. - Added
OneBranchPipelines/stress-test-pipeline.ymlto run the stress suite on Windows (LocalDB) and Linux (Docker SQL Server) on a daily schedule or manually.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
| tests/test_020_multithreaded_stress.py | New concurrency-focused stress tests with a multi-threaded runner and workload scenarios (matrix, sustained load, lifecycle, heavy queries). |
| OneBranchPipelines/stress-test-pipeline.yml | New scheduled pipeline to provision DBs (LocalDB/Docker) and execute/publish stress + performance stress tests on Windows and Linux agents. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a62b99a to
a7ac237
Compare
a7ac237 to
96841c3
Compare
saurabh500
reviewed
Feb 13, 2026
…ss.py and fix Black formatting
1673b0b to
51d6f81
Compare
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ceb072c to
451ed2f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work Item / Issue Reference
Summary
This pull request adds a comprehensive suite of multi-threaded stress tests for the
mssql-pythonpackage. The new tests cover a wide range of concurrency scenarios, sustained load, pool lifecycle, and heavy query scaling to ensure robust performance and stability under high-load conditions. The tests are cross-platform, feature deterministic shutdowns, and include adaptive validation of error rates.Concurrency and load testing:
test_concurrency_matrix) that runs queries with varying thread counts and connection pooling settings, validating error rates at different concurrency levels.test_sustained_load) that run multiple threads for extended durations to simulate real-world high-load situations.test_heavy_query_scaling) with large result sets and high thread counts to stress test the connection pool.Connection pool management:
test_pool_lifecycle_cycles) to repeatedly enable and disable connection pooling, verifying deterministic shutdown and resource cleanup.Test infrastructure and utilities:
ThreadResult,StressResult) and a runner class (MultiThreadedQueryRunner) for collecting detailed metrics and managing