Skip to content

[6.1] SDK install retry. Disable flaky tests.#4332

Open
mdaigle wants to merge 2 commits into
release/6.1from
dev/automation/pr-4314-to-6.1.6
Open

[6.1] SDK install retry. Disable flaky tests.#4332
mdaigle wants to merge 2 commits into
release/6.1from
dev/automation/pr-4314-to-6.1.6

Conversation

@mdaigle
Copy link
Copy Markdown
Contributor

@mdaigle mdaigle commented Jun 2, 2026

Ports #4314

This pull request improves reliability in CI pipelines by adding retry logic to .NET installation steps and marks certain flaky tests to help with test management. The most important changes are grouped below:

github-actions Bot and others added 2 commits May 29, 2026 06:27
To resolve, run:  git cherry-pick 3499785
* Retry installing dotnet in CI + address flaky tests

* One more flaky test
Copilot AI review requested due to automatic review settings June 2, 2026 20:36
@mdaigle mdaigle requested a review from a team as a code owner June 2, 2026 20:36
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Jun 2, 2026
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

Marks a subset of simulated-server unit tests as flaky and adds retry behavior to CI .NET installation steps to reduce intermittent pipeline failures.

Changes:

  • Added Trait("Category", "flaky") to specific simulated-server tests that intermittently fail.
  • Added retryCountOnTaskFailure: 3 to .NET SDK/runtime installation tasks (including ARM64 PowerShell step).
  • Documented the rationale for retries in the pipeline step YAML.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/Microsoft.Data.SqlClient/tests/UnitTests/SimulatedServerTests/ConnectionRoutingTestsAzure.cs Tags a specific Azure routing timeout test as flaky.
src/Microsoft.Data.SqlClient/tests/UnitTests/SimulatedServerTests/ConnectionFailoverTests.cs Tags transient-fault retry-disabled failover tests as flaky.
eng/pipelines/steps/install-dotnet.yml Adds task-level retries and explanatory comments for intermittent SDK/runtime install failures.

Comment on lines +162 to 163
[Trait("Category", "flaky")]
public void NetworkTimeoutAtRoutedLocation_RetryDisabled_ShouldFail()
Comment on lines +392 to 393
[Trait("Category", "flaky")]
public void TransientFault_RetryDisabled_ShouldFail(uint errorCode)
Comment on lines +488 to 489
[Trait("Category", "flaky")]
public void TransientFault_WithUserProvidedPartner_RetryDisabled_ShouldFail(uint errorCode)
Comment on lines 63 to 66
- task: UseDotNet@2
displayName: Install .NET SDK (global.json)
retryCountOnTaskFailure: 3
inputs:
@mdaigle mdaigle changed the title Dev/automation/pr 4314 to 6.1.6 [6.1] SDK install retry. Disable flaky tests. Jun 2, 2026
@mdaigle mdaigle added this to the 6.1.6 milestone Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

4 participants