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
{{ message }}
Repository navigation
Test | SqlConnectionReliabilityTests are flaky #3821
The tests in SqlConnectionReliabilityTest try to assert that an AggregateException is thrown when opening a connection with retry configured. Certain classes of errors are not eligible for retry and so slip through to the test cases without getting wrapped in an AggregateException. These tests need to be reworked to be more reliable. For now, disable them so that the pipeline passes consistently.
Not applicable (test-reliability task, not a bug report)
Area
Area\Tests
Duplicates
None open — #3822 covers the same problem but is already closed as a duplicate of this issue
Regression
Not indicated
Analysis
This is a test-reliability task: SqlConnectionReliabilityTest asserts that AggregateException is thrown when opening a connection with retry configured, but some non-retryable error classes bypass the wrapping and reach the test unwrapped, causing flakiness. The task requests disabling the affected tests now and reworking them later for determinism. Impact is limited to CI/test signal quality (no product runtime risk), assessed as P2.
Next Steps
Recommend assigning this issue to Copilot coding agent to: (1) identify which SqlConnectionReliabilityTest cases assert on AggregateException around retry-enabled Open(), (2) mark the flaky cases with the existing ActiveIssue/skip conventions used elsewhere in ManualTests, and (3) as a follow-up, rework the assertions to explicitly branch on retryable vs. non-retryable error paths (per TDS/connection retry logic in SqlConnection/TdsParser) instead of relying on a single AggregateException expectation.
Since Make SqlConnectionReliabilityTest more reliable and re-enable #3822 already tracked the "make reliable and re-enable" follow-up and was closed as a duplicate of this issue, no further duplicate-issue action is needed — just confirm the re-enable work is captured before closing this one.
Note: This triage summary is auto-generated by an AI agent. The analysis and suggestions above have not been verified by a human maintainer. Please treat as preliminary guidance only.
Activity
[-]Disable flaky SqlConnectionReliabilityTest[/-][+]SqlConnectionReliabilityTests are flaky[/+][-]SqlConnectionReliabilityTests are flaky[/-][+]Test | SqlConnectionReliabilityTests are flaky[/+]priyankatiwari08 commentedon Sep 17, 2026
/triage
github-actions commentedon Sep 17, 2026
🔍 Triage Summary (on-demand re-triage)
Area\TestsAnalysis
This is a test-reliability task:
SqlConnectionReliabilityTestasserts thatAggregateExceptionis thrown when opening a connection with retry configured, but some non-retryable error classes bypass the wrapping and reach the test unwrapped, causing flakiness. The task requests disabling the affected tests now and reworking them later for determinism. Impact is limited to CI/test signal quality (no product runtime risk), assessed as P2.Next Steps
SqlConnectionReliabilityTestcases assert onAggregateExceptionaround retry-enabledOpen(), (2) mark the flaky cases with the existingActiveIssue/skip conventions used elsewhere inManualTests, and (3) as a follow-up, rework the assertions to explicitly branch on retryable vs. non-retryable error paths (per TDS/connection retry logic inSqlConnection/TdsParser) instead of relying on a singleAggregateExceptionexpectation.