Merged
Conversation
…elNamedPipe, TimeoutDuringReadTcp, TimeoutDuringReadNamedPipe
…ntext, SqlConnectionChangePasswordSecureString
…MarsExecuteReader_StoredProcedure_WithGC # Conflicts: # src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MARSSessionPoolingTest.cs
…ed to investigate if it's a bug
…to match guidelines
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request refactors MARS (Multiple Active Result Sets) session pooling tests and fixes several test-related issues. The main focus is on rewriting the MARS session pooling tests to be more maintainable and clearer, while also fixing various test issues across multiple test files.
- Rewrites MARS session pooling tests with improved structure and clarity
- Removes
[ActiveIssue]attributes from tests that have been fixed - Improves naming conventions in test methods and helper utilities
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MarsSessionPoolingTest.cs | Complete rewrite of MARS session pooling tests with improved test organization and clarity |
| src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MARSSessionPoolingTest.cs | Deleted old MARS session pooling test file |
| src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj | Updated file reference to match new casing |
| src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlCredentialTest/SqlCredentialTest.cs | Improved code quality: made password strings const, renamed helper methods to PascalCase, changed String to string, removed fixed ActiveIssue attributes |
| src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlCommand/SqlCommandCancelTest.cs | Renamed test methods for clarity and removed fixed ActiveIssue attributes |
| src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs | Added helper method combining connection string and Synapse checks |
| src/Microsoft.Data.SqlClient/tests/Common/DisposableArray.cs | Added new utility class for managing disposable arrays |
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MarsSessionPoolingTest.cs
Outdated
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MarsSessionPoolingTest.cs
Outdated
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MarsSessionPoolingTest.cs
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MarsSessionPoolingTest.cs
Show resolved
Hide resolved
…ill make it easier to sort out why we have these failures
paulmedynski
requested changes
Nov 7, 2025
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlCommand/SqlCommandCancelTest.cs
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MARSSessionPoolingTest.cs
Outdated
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MarsSessionPoolingTest.cs
Outdated
Show resolved
Hide resolved
paulmedynski
previously approved these changes
Nov 7, 2025
paulmedynski
previously approved these changes
Nov 11, 2025
mdaigle
requested changes
Nov 11, 2025
src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs
Outdated
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MARSSessionPoolingTest.cs
Outdated
Show resolved
Hide resolved
...rosoft.Data.SqlClient/tests/ManualTests/SQL/MARSSessionPoolingTest/MARSSessionPoolingTest.cs
Show resolved
Hide resolved
Adding doc comments to DisposableArray
mdaigle
approved these changes
Nov 12, 2025
paulmedynski
approved these changes
Nov 12, 2025
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.
Description
This PR enables another set of tests that were previously marked as
[ActiveIssue]. The active issue numbers predate our Github repository, so I cannot really know why the tests were disabled in the first place. And may of them ... just work with no modifications. Here's a rundown of the changes:TimeoutCancel(renamedTimeoutCancelTcpto differentiate)TimeoutCancelNP(renamedTimeoutCancelNamedPipe)TimeOutDuringRead(renamedTimeoutDuringReadTcp)TimeOutDuringReadNP(renamedTimeoutDuringReadNamedPipe)SqlConnectionChangePasswordPlaintext- no changes, it just workedSqlConnectionChangePasswordSecureString- no changes, it just workedMARSSessionPoolingTest=>MarsSessionPoolingTestIssues
Separation of work from #3012, and investigation towards #3682
Testing