[CI Failure] Flaky: SqlServerReplCommandTests fail because sqlserver container never becomes healthy

Open
#21,775 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, docker

Research direction

Start with SqlServerReplCommandTests in the Aspire.Hosting.SqlServer.Tests project and inspect the container health and startup configuration used by ReplExecutesAuthenticatedBatch. Reproduce the failure by running the two observed test cases, then trace why the SQL Server container remains in the Starting state. Done when both cases reliably pass without the container health timeout.

Written by the indexing model from the issue text.

Description

ci-failure-cause ci-test-failure test-failure

Build Information

Build: https://github.com/microsoft/aspire/actions/runs/41932442823
Build error leg: Tests / No-package tests (regular, Aspire.Hosting.SqlServer.Tests, Hosting.SqlServer, Hosting.SqlServer, ... / Hosting.SqlServer (ubuntu-latest)

Error Message

System.OperationCanceledException : Resource 'sqlserver' failed to become healthy before the operation was cancelled.
- Current State: Starting
- Current Health: (null)

Description

Flaky: SqlServerReplCommandTests fail because sqlserver container never becomes healthy

Type: flaky-test

Observed tests

  • Aspire.Hosting.SqlServer.Tests.SqlServerReplCommandTests.ReplExecutesAuthenticatedBatch(configure: False) — job 126935434853 (Tests / No-package tests (regular, Aspire.Hosting.SqlServer.Tests, Hosting.SqlServer, Hosting.SqlServer, ... / Hosting.SqlServer (ubuntu-latest))
  • Aspire.Hosting.SqlServer.Tests.SqlServerReplCommandTests.ReplExecutesAuthenticatedBatch(configure: True) — job 126935434853 (Tests / No-package tests (regular, Aspire.Hosting.SqlServer.Tests, Hosting.SqlServer, Hosting.SqlServer, ... / Hosting.SqlServer (ubuntu-latest))

Occurrences

Showing 1 most recent of 1 occurrences.

Date Build Job Context
2026-11-05 41932442823 Tests / No-package tests (regular, Aspire.Hosting.SqlServer.Tests, Hosting.SqlServer, Hosting.SqlServer, ... / Hosting.SqlServer (ubuntu-latest) main
Dominant language
C#
Stars
6.4k
Forks
1k
Avg merge
3d 3h
Merged PRs (30d)
349

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/aspire

All issues in microsoft/aspire

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.