Skip to content

Disable Azure SQL principal reconciliation tests - #20211

Merged
James Newton-King (JamesNK) merged 1 commit into
mainfrom
sebros/disable-azure-sql-reconciliation-tests
Sep 18, 2026
Merged

James Newton-King (JamesNK) merged 1 commit into
mainfrom
sebros/disable-azure-sql-reconciliation-tests

Conversation

@sebastienros

Copy link
Copy Markdown
Contributor

Description

Temporarily disable all seven AzureSqlPrincipalReconciliationTests methods so unrelated PRs are not blocked by the shared SQL Server container fixture failing before any test body executes.

Adds [ActiveIssue("https://github.com/microsoft/aspire/issues/19014")] to each method using seven fully qualified tools/QuarantineTools -q -m activeissue invocations. These tests are disabled, not quarantined. The committed diff contains only seven attribute additions; test logic, the fixture, and production code are unchanged.

The observed failure is in SqlServerContainerFixture.InitializeAsync() at Container.StartAsync():

DockerApiException: failed to bind host port for 0.0.0.0::172.17.0.3:1433/tcp: address already in use

MsSqlBuilder already uses random host ports by default. This PR does not diagnose or fix the underlying Docker binding failure. The tests should be re-enabled after that issue is resolved.

Addresses #19014

Related #19743

Recent affected PRs

These September 17 Ubuntu job logs show the same fixture-start failure and zero-duration reconciliation tests. They are evidence of failed attempts, not a claim that every PR remains blocked; #19729 was rerunning when checked.

PR Failed job
#20131 - Complete Azure provisioning SDK integration coverage Log
#19729 - Normalize connection string environment variable aliases Log
#19880 - Add typed resource projections for run and publish Log
#20074 - Update quarantined third-party dependencies Log
#19565 - Enable Native AOT dashboard with Fluent UI v5 Log

Validation

  • Built tests/Aspire.Hosting.Azure.Tests/Aspire.Hosting.Azure.Tests.csproj successfully. The existing SSH.NET NU1903 warning remains.
  • MTP JSON discovery verified exactly the seven requested methods, each with category=failing.
  • The normal class-filtered dotnet test invocation selected zero tests (SDK exit code 8), rather than reporting seven skipped tests. ActiveIssue uses the repository's failing-category exclusion.
  • The direct MTP executable, using CI's --filter-not-trait category=failing and --ignore-exit-code 8, exited 0 with zero selected tests and no failures. The check used a nonexistent Docker socket to ensure the disabled class does not require a working container endpoint.
DOCKER_HOST=unix:///nonexistent-aspire-disable-verification.sock \
  artifacts/bin/Aspire.Hosting.Azure.Tests/Debug/net8.0/Aspire.Hosting.Azure.Tests \
  --filter-class '*.AzureSqlPrincipalReconciliationTests' \
  --filter-not-trait 'quarantined=true' \
  --filter-not-trait 'outerloop=true' \
  --filter-not-trait 'category=failing' \
  --ignore-exit-code 8

All cases in this class are excluded before execution, so its class fixture cannot start in CI. No conditional test routing change is needed: these are project-compiled tests with project references, not runtime-only E2E package/template/fixture consumers. Other Azure hosting tests continue to justify the existing aggregate routing.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Temporarily disable all seven reconciliation tests with ActiveIssue while the shared SQL Server container startup failure is investigated. Addresses #19014; related #19743.

Co-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20211

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20211"

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

2 / 99 PR test projects · 0 PR jobs, from 1 changed file.

Selected PR test projects (2 / 99)

Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests

Selected PR jobs (0)

none


How these were chosen — grouped by what changed

🧪 tests/Aspire.Hosting.Azure.Tests/AzureSqlPrincipalReconciliationTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 1 via the project graph: Aspire.Hosting.Azure.Kubernetes.Tests

Job reasons

none


Selection computed for commit 86cdc14.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused attribute-only changes consistently disable every affected test and match the linked issue and stated intent.

Pull request overview

Temporarily disables the seven Azure SQL principal reconciliation tests while the shared SQL Server fixture’s Docker port conflict is investigated.

Changes:

  • Adds ActiveIssue referencing issue #19014 to all seven tests.
  • Leaves test and production logic unchanged.
File summaries
File Description
tests/Aspire.Hosting.Azure.Tests/AzureSqlPrincipalReconciliationTests.cs Disables all fixture-dependent reconciliation tests.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@JamesNK
James Newton-King (JamesNK) merged commit f05f8e1 into main Sep 18, 2026
52 checks passed
@JamesNK
James Newton-King (JamesNK) deleted the sebros/disable-azure-sql-reconciliation-tests branch September 18, 2026 03:51
@github-actions github-actions Bot added this to the 13.6 milestone Sep 18, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken

docs_required → false-positive signal, no actual user-facing feature (per Step 10 exception: on inspection, the triggering signal fired on a string that is not an Aspire user-facing feature).

Triggered signals

  • pr_body_has_cli_flag_mention (only signal triggered; signal_count: 1)

Why this is a false positive

The evidence for pr_body_has_cli_flag_mention is the PR body snippet: --filter-not-trait category=failing and --ignore-exit-code 8. These are dotnet test / Microsoft.Testing.Platform (MTP) command-line flags the author used to validate that disabling the tests works correctly in CI — they are not a new or changed Aspire product CLI flag, command, or option. No Aspire CLI surface was added or modified.

What the PR actually does

The single changed file is tests/Aspire.Hosting.Azure.Tests/AzureSqlPrincipalReconciliationTests.cs (+7/-0), adding [ActiveIssue("https://github.com/microsoft/aspire/issues/19014")] to seven test methods in AzureSqlPrincipalReconciliationTests. This disables the tests because the shared SqlServerContainerFixture fails to start in CI due to a Docker port-binding conflict, unrelated to product behavior. No test logic, fixture, production code, or public API changed. This matches the test_only allowlist category (only files under tests/ changed) that would independently justify skipping even absent the false-positive signal.

No documentation update is needed on microsoft/aspire.dev for this change.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 CI Failure Analysis: Transient Infrastructure Failure

The CI build failed due to transient infrastructure issues.

Failed jobs:

  • Tests / Package tests - Linux (class, Aspire.Templates.Tests, Templates-BuildAndRunTemplateTests, Templat... / Templates-BuildAndRunTemplateTests (ubuntu-latest) — The job failed at the 'Set up .NET Core' step with a 'read ECONNRESET' network error, which occurs while downloading the .NET SDK/runtime. This is unrelated to the PR, which only modifies tests/Aspire.Hosting.Azure.Tests/AzureSqlPrincipalReconciliationTests.cs (disabling reconciliation tests) and has no relation to .NET SDK setup or downloads. (transient-infra)

If a rerun was not already requested automatically, visit the workflow run page to rerun the failed jobs manually.

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

Labels

area-integrations Issues pertaining to Aspire Integrations packages area-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants