Skip to content

Disable Kusto emulator tests on Linux#15464

Open
sebastienros wants to merge 3 commits intomicrosoft:mainfrom
sebastienros:sebros/disable-kusto-linux-tests
Open

Disable Kusto emulator tests on Linux#15464
sebastienros wants to merge 3 commits intomicrosoft:mainfrom
sebastienros:sebros/disable-kusto-linux-tests

Conversation

@sebastienros
Copy link
Contributor

Description

This PR temporarily disables the Linux-targeted Kusto emulator functional tests in tests/Aspire.Hosting.Azure.Kusto.Tests/KustoFunctionalTests.cs while preserving the existing Azure DevOps skip.

The current Kusto emulator image fails to start on Linux CI because it exits with an unsupported CPU instruction set error (SSE4.2/AVX2), which causes the emulator-backed tests to fail before they can become healthy.

Addresses #15463

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
  • Does the change require an update in our Aspire docs?

Validation

  • Reproduced the emulator startup failure locally and confirmed the failing set is the five emulator-backed tests in KustoFunctionalTests
  • Built tests/Aspire.Hosting.Azure.Kusto.Tests/Aspire.Hosting.Azure.Kusto.Tests.csproj successfully after updating the ActiveIssue attributes
  • Preserved the existing Azure DevOps disable on #11820 and added a Linux-targeted disable on #15463

sebastienros and others added 3 commits March 20, 2026 18:55
- Disabled: KustoEmulator_Starts
- Disabled: KustoEmulator_WithDatabase_CanReadIngestedData
- Disabled: KustoEmulator_WithDatabaseThatAlreadyExists_ErrorIsIgnored
- Disabled: KustoEmulator_WithInvalidDatabase_LogsErrorAndContinues
- Disabled: KustoEmulator_WithBindMount_IsUsedForPersistence
- Issue: microsoft#11820

These tests are being disabled on Linux while the Kusto emulator image fails to start due to unsupported CPU instruction set requirements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Preserved: KustoEmulator_Starts on AzDO
- Preserved: KustoEmulator_WithDatabase_CanReadIngestedData on AzDO
- Preserved: KustoEmulator_WithDatabaseThatAlreadyExists_ErrorIsIgnored on AzDO
- Preserved: KustoEmulator_WithInvalidDatabase_LogsErrorAndContinues on AzDO
- Preserved: KustoEmulator_WithBindMount_IsUsedForPersistence on AzDO
- Issue: microsoft#11820

This keeps the existing Azure DevOps skip while also retaining the new Linux-targeted skip.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Linked: KustoEmulator_Starts Linux skip to microsoft#15463
- Linked: KustoEmulator_WithDatabase_CanReadIngestedData Linux skip to microsoft#15463
- Linked: KustoEmulator_WithDatabaseThatAlreadyExists_ErrorIsIgnored Linux skip to microsoft#15463
- Linked: KustoEmulator_WithInvalidDatabase_LogsErrorAndContinues Linux skip to microsoft#15463
- Linked: KustoEmulator_WithBindMount_IsUsedForPersistence Linux skip to microsoft#15463

This keeps the existing Azure DevOps disable on issue microsoft#11820 and moves the Linux-only disable to the dedicated Kusto emulator issue.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 21, 2026 02:08
@github-actions
Copy link
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 -- 15464

Or

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

Copy link
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

Temporarily disables Kusto emulator–backed functional tests when running on Linux to unblock CI, while keeping the existing Azure DevOps skip in place.

Changes:

  • Added a Linux-targeted [ActiveIssue] quarantine for the Kusto emulator functional tests tied to issue #15463.
  • Preserved the existing AzDO-targeted [ActiveIssue] quarantine tied to issue #11820.

Comment on lines 41 to 45
[Fact]
[RequiresFeature(TestFeature.Docker)]
[ActiveIssue("https://github.com/microsoft/aspire/issues/11820", typeof(PlatformDetection), nameof(PlatformDetection.IsRunningFromAzdo))]
[ActiveIssue("https://github.com/microsoft/aspire/issues/15463", typeof(PlatformDetection), nameof(PlatformDetection.IsLinux))]
public async Task KustoEmulator_Starts()
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

These two ActiveIssue attributes are repeated on every test in this class. Since ActiveIssue is already used at class scope elsewhere in the repo, consider moving both skips to the KustoFunctionalTests class declaration to avoid duplication and ensure any future emulator-backed tests in this class inherit the same quarantine.

Also, the root cause in #15463 is missing SSE4.2/AVX2 on some Linux hosts; skipping on IsLinux disables the tests even on Linux machines that do support those instructions. If the intent is primarily to unblock CI, consider narrowing the condition (e.g., Linux + CI, or a PlatformDetection helper that checks CPU feature support) so local Linux/dev coverage can still run where possible.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants