Skip to content

Conversation

@benrr101
Copy link
Contributor

@benrr101 benrr101 commented Nov 6, 2025

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:

  • Enable tests in SqlCommandCancelTest
    • TimeoutCancel (renamed TimeoutCancelTcp to differentiate)
    • TimeoutCancelNP (renamed TimeoutCancelNamedPipe)
    • TimeOutDuringRead (renamed TimeoutDuringReadTcp)
    • TimeOutDuringReadNP (renamed TimeoutDuringReadNamedPipe)
    • Rewrote the Timeout test method to use less custom helpers to make it easier to diagnose CI failures
  • Enable tests in SqlCredentialTest
    • SqlConnectionChangePasswordPlaintext - no changes, it just worked
    • SqlConnectionChangePasswordSecureString - no changes, it just worked
    • Some light cleanup of SqlCredentialTest
      • Make some strings constants
      • Rename methods to match naming conventions
      • Use keyword type names for built-ins
  • Rewrite MARSSessionPoolingTest
    • Split big bulky "one stop shop" test method into many separate tests
    • Separated tests are based on matrix of scenarios and expected behavior
    • Introduce back-off of DMV query to verify expected session and request count
    • MARSSessionPoolingTest => MarsSessionPoolingTest

Issues

Separation of work from #3012, and investigation towards #3682

Testing

  • Reactivated tests were tested locally and pass
  • MARS tests were thoroughly ran and potential flakiness has been resolved

@benrr101 benrr101 added this to the 7.0.0-preview3 milestone Nov 6, 2025
@benrr101 benrr101 requested a review from a team as a code owner November 6, 2025 22:22
Copilot AI review requested due to automatic review settings November 6, 2025 22:22
@benrr101 benrr101 added the Area\Tests Issues that are targeted to tests or test projects label Nov 6, 2025
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 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

@paulmedynski paulmedynski self-assigned this Nov 7, 2025
Copilot AI review requested due to automatic review settings November 7, 2025 17:45
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

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

paulmedynski
paulmedynski previously approved these changes Nov 7, 2025
paulmedynski
paulmedynski previously approved these changes Nov 11, 2025
Adding doc comments to DisposableArray
Copilot AI review requested due to automatic review settings November 11, 2025 23:52
Copilot finished reviewing on behalf of benrr101 November 11, 2025 23:54
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

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"/>.
Copy link

Copilot AI Nov 11, 2025

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.

Suggested change
/// Gets or sets the element at index <see cref="i"/>.
/// Gets or sets the element at index <paramref name="i"/>.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Tests Issues that are targeted to tests or test projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants