-
Notifications
You must be signed in to change notification settings - Fork 317
Tests | ActiveIssues (Part 4) #3750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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
There was a problem hiding this 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 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
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the element at index <see cref="i"/>. |
Copilot
AI
Nov 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The XML doc comment refers to parameter i using <see cref="i"/>, but this should use <paramref name="i"/> instead. The <see cref> tag is for referencing types, members, or properties, while <paramref> is specifically for referencing parameters within the same member's documentation.
| /// Gets or sets the element at index <see cref="i"/>. | |
| /// Gets or sets the element at index <paramref name="i"/>. |
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