Skip to content

Test | SqlConnectionReliabilityTests are flaky #3821

Open

Description

@mdaigle

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.

Activity

  1. self-assigned this
    on Dec 2, 2025
  2. added theissue type on Dec 2, 2025
  3. added
    Area\Tests
    on Dec 2, 2025
  4. moved this from To triage to In progress in SqlClient Boardon Dec 2, 2025
  5. changed the title [-]Disable flaky SqlConnectionReliabilityTest[/-] [+]SqlConnectionReliabilityTests are flaky[/+] on Dec 2, 2025
  6. added
    ActiveIssue
    on Dec 3, 2025
  7. moved this from In progress to Backlog in SqlClient Boardon Feb 17, 2026
  8. changed the title [-]SqlConnectionReliabilityTests are flaky[/-] [+]Test | SqlConnectionReliabilityTests are flaky[/+] on Mar 31, 2026
  9. priyankatiwari08 commented on Sep 17, 2026

    @priyankatiwari08
    Contributor

    /triage

  10. github-actions commented on Sep 17, 2026

    @github-actions

    🔍 Triage Summary (on-demand re-triage)

    Check Result
    Issue type Task
    Environment 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.

    Generated by SqlClient Issue Auto-Triage for #3821 · copilot · auto · 44.5 AIC · ⌖ 13.1 AIC · ⊞ 11.9K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ActiveIssueArea\Tests

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions