You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mdaigle
added
Hotfix 7.0.3
PRs targeting main that should be backported to release/7.0 branch for next release.
Hotfix 6.1.7
PRs targeting main that should be backported to release/6.1 branch for future hotfix
and removed
Hotfix 7.0.3
PRs targeting main that should be backported to release/7.0 branch for next release.
Hotfix 6.1.7
PRs targeting main that should be backported to release/6.1 branch for future hotfix
labels
Jun 5, 2026
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the SqlClient test suite by quarantining a small set of intermittently failing unit tests, replacing a manual transaction-pool cleanup scenario with a deterministic unit test, and reducing CPU/scan overhead in high-volume MARS manual tests (notably for Azure SQL environments).
Changes:
Quarantines a few simulated-server transient fault/failover tests as Category=flaky with inline failure notes where helpful.
Adds a deterministic unit test validating that pool pruning does not impact transacted connections, and exposes the pruning callback internally to support that test.
Optimizes MARS manual test queries to avoid expensive system scanning (sys.databases, sp_who) while still producing sufficient observable request activity.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
@mdaigle This pull request has been marked as Author attention needed.
When you have addressed the reviewer feedback and are ready for another review, please post a comment with /ready to remove the label and re-engage reviewers.
The VALUES-based query and sp_server_info produced result sets too
small for MARS flow control — the server completed requests
immediately, so dm_exec_requests showed no active requests. This
broke ExecuteReader_DisposeCommand which asserts open request counts.
Revert to sys.databases and sp_who which produce enough data to keep
server-side requests active while readers remain open.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve the removed manual cleanup test, make callback state nullable, and exercise enabled pruning with an idle control connection.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The current five-file head contains no high-volume query rewrites, although the title and description still advertise lighter test queries; the earlier MARS query file is no longer part of this diff. Update the PR metadata to reflect the remaining quarantine/unit-test scope, or restore the intended query changes.
Use the repository's canonical quarantine trait spelling, [Trait("category", "flaky")], documented in .github/instructions/testing.instructions.md:84-102. Keeping the lowercase key consistent avoids divergent test metadata.
Remove inaccurate claim about missing exception details
This sentence contradicts the existing quarantine note immediately above, which already records a SqlException, stack frames, and the observed retry-login symptom (lines 86-95). Keep the tracking link, but remove the inaccurate claim that no exception details were retained.
Use the repository's canonical quarantine trait spelling, [Trait("category", "flaky")], documented in .github/instructions/testing.instructions.md:84-102. Keeping the lowercase key consistent avoids divergent test metadata.
🧠 Review effort: Balanced
This branch has not been deployed
No deployments
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
Area\TestsIssues that are targeted to tests or test projectsAuthor attention neededPRs that require author to respond or make updates to PR.
8 participants
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.
Marks a few flaky tests. Rewrites a manual test as a unit test. Reduces CPU/scan impact on a few high volume tests queries.