Kusto tests failing on CI
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 201
Description
Build: https://github.com/microsoft/aspire/actions/runs/23462952949
```
Aspire.Hosting.DistributedApplicationException : Stopped waiting for resource 'TestDb' to become healthy because it failed to start. at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitForResourceHealthyAsync(String resourceName, WaitBehavior waitBehavior, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 234
at Aspire.Hosting.ApplicationModel.ResourceNotificationService.WaitForResourceHealthyAsync(String resourceName, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs:line 191
at Aspire.Hosting.Azure.Kusto.Tests.KustoFunctionalTests.KustoEmulator_WithBindMount_IsUsedForPersistence() in /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Azure.Kusto.Tests/KustoFunctionalTests.cs:line 255
--- End of stack trace from previous location ---
### StdOut
| [2026-03-23T22:45:13] Aspire.Hosting.DistributedApplication Information: Aspire version: 13.3.0-pr.15422.g9e8e79ca
| [2026-03-23T22:45:13] Aspire.Hosting.DistributedApplication Information: Distributed application starting.
| [2026-03-23T22:45:13] Aspire.Hosting.DistributedApplication Information: Application host directory is: /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Tests
| [2026-03-23T22:45:13] Aspire.Hosting.Cli.BackchannelService Debug: Backchannel socket path was not specified.
| [2026-03-23T22:45:13] Aspire.Hosting.Cli.CliOrphanDetector Debug: No CLI process ID configured. Orphan detection disabled.
| [2026-03-23T22:45:13] Aspire.Hosting.Devcontainers.Codespaces.CodespacesResourceUrlRewriterService Trace: Not running in Codespaces, skipping URL rewriting.
| [2026-03-23T22:45:13] Aspire.Hosting.Backchannel.AuxiliaryBackchannelService Debug: Starting auxiliary backchannel service on socket path: /home/runner/.aspire/cli/backchannels/auxi.sock.9f5a1488474d832d.5089
| [2026-03-23T22:45:13] Aspire.Hosting.Backchannel.AuxiliaryBackchannelService Debug: Creating and binding server socket...
| [2026-03-23T22:45:13] Aspire.Hosting.Backchannel.AuxiliaryBackchannelService Debug: Auxiliary backchannel listening on /home/runner/.aspire/cli/backchannels/auxi.sock.9f5a1488474d832d.5089
| [2026-03-23T22:45:13] Aspire.Hosting.FileSystemService Debug: Allocated temporary directory: /tmp/aspire-dcpVqVEbi
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpHost Information: Starting DCP with arguments: start-apiserver --monitor 5089 --detach --kubeconfig "/tmp/aspire-dcpVqVEbi/kubeconfig"
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpExecutor Debug: Preparing services. Ports randomized: True
| [2026-03-23T22:45:13] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Version: 1 Resource kusto/kusto-ewcuhyzw update published: ResourceType = AzureKustoClusterResource, CreationTimeStamp = (null), State = { Text = (null), Style = (null) }, IsHidden = False, HeathStatus = (null), ResourceReady = False, ExitCode = (null), Urls = { }, EnvironmentVariables = { }, Properties = { }, HealthReports = { kusto_check = (null) }, Commands = { open-kusto-explorer-desktop (Open in Kusto Explorer (Desktop)) = Hidden open-kusto-explorer-web (Open in Kusto Explorer (Web)) = Hidden start (Start) = Disabled stop (Stop) = Hidden restart (Restart) = Disabled }
| [2026-03-23T22:45:13] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Version: 1 Resource TestDb/TestDb update published: ResourceType = AzureKustoReadWriteDatabaseResource, CreationTimeStamp = (null), State = { Text = (null), Style = (null) }, IsHidden = False, HeathStatus = (null), ResourceReady = False, ExitCode = (null), Urls = { }, EnvironmentVariables = { }, Properties = { resource.parentName = kusto-ewcuhyzw }, HealthReports = { TestDb_check = (null) kusto_check = (null) }, Commands = { }
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Endpoint resources.
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Executable resources.
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Container resources.
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP ContainerExec resources.
| [2026-03-23T22:45:13] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Service resources.
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp.start-apiserver Debug: Failed to evaluate symlinks for directory {"Directory": "/home/runner/work/aspire/aspire/.packages/microsoft.developercontrolplane.linux-amd64/0.22.9/tools/ext", "error": "lstat /home/runner/work/aspire/aspire/.packages/microsoft.developercontrolplane.linux-amd64/0.22.9/tools/ext: no such file or directory"}
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server Debug: Starting API server...
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.KubernetesService Debug: Successfully read Kubernetes configuration from '/tmp/aspire-dcpVqVEbi/kubeconfig' after 1403 milliseconds.
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server Debug: API server started {"Address": "::1", "Port": 36617}
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host Debug: Starting DCP controller host
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host Debug: Started all services {"count": 1}
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp.IdeExecutableRunner Debug: Executables cannot be started via IDE: missing required environment variable 'DEBUG_SESSION_PORT'
| [2026-03-23T22:45:15] Aspire.Hosting.Dcp.dcp Debug: Starting controller manager
| [2026-03-23T22:45:15] Aspire.Hosting.Orchestrator.ApplicationOrchestrator Trace: Added URL 'http://localhost:40093' for endpoint 'http' on resource 'kusto'.
| [2026-03-23T22:45:15] Aspire.Hosting.Orchestrator.ApplicationOrchestrator Trace: Converting relative endpoint URLs to absolute URLs for resource 'ku
... (snip) ...
... Style = (null) }, IsHidden = False, HeathStatus = (null), ResourceReady = False, ExitCode = (null), Urls = { }, EnvironmentVariables = { }, Properties = { resource.parentName = kusto-ewcuhyzw resource.connectionString = http://localhost:40093;Initial Catalog=TestDb }, HealthReports = { TestDb_check = Unhealthy kusto_check = Healthy }, Commands = { }
| [2026-03-23T22:45:21] Aspire.Hosting.Health.ResourceHealthCheckService Debug: Stopping health monitoring for resource 'kusto'.
| [2026-03-23T22:45:21] Aspire.Hosting.Health.ResourceHealthCheckService Debug: Stopping health monitoring for resource 'TestDb'.
| [2026-03-23T22:45:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Error: Stopped waiting for resource 'TestDb' to become healthy because it failed to start.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Service resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Service resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching ContainerExec resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching ContainerExec resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Endpoint resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Endpoint resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Container resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Container resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Executable resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Executable resources.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.DcpExecutor Debug: Log streaming for kusto-ewcuhyzw was cancelled.
| [2026-03-23T22:45:21] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server.adminHttpHandler Debug: API server changed status {"OldStatus": "Running", "NewStatus": "CleaningResources"}
| [2026-03-23T22:45:22] Aspire.Hosting.Dcp.dcp.ContainerReconciler Debug: No more Container resources are being watched, cancelling container watch {"Container": "/kusto-ewcuhyzw", "Reconciliation": 14, "resource_log_stream_id": "container-12a9d492-de88-4efb-a05b-48a80d5d8fba", "ContainerID": "fff57e211ab7", "ContainerName": "kusto-ewcuhyzw"}
| [2026-03-23T22:45:22] Aspire.Hosting.Dcp.dcp.os-executor Debug: Context expired, stopping process... {"PID": 8099, "Command": "/usr/bin/docker", "Args": ["events", "--filter", "type=container", "--format", "{{json .}}"]}
| [2026-03-23T22:45:22] Aspire.Hosting.Dcp.dcp.os-executor Debug: Root process has stopped {"Root": 8099}
| [2026-03-23T22:45:22] Aspire.Hosting.Dcp.dcp.NetworkReconciler Debug: All expected containers are connected to the network {"ContainerNetwork": "/aspire-container-network", "Reconciliation": 10, "NetworkName": "aspire-session-network-tawuprzm-Aspire.Hosting.Tests", "NetworkID": "548a5d052669", "Expected": 0, "Found": 0}
| [2026-03-23T22:45:23] Aspire.Hosting.Dcp.dcp.NetworkReconciler Debug: ContainerNetwork object is being deleted {"ContainerNetwork": "/aspire-container-network", "Reconciliation": 11, "NetworkName": "aspire-session-network-tawuprzm-Aspire.Hosting.Tests", "NetworkID": "548a5d052669"}
| [2026-03-23T22:45:23] Aspire.Hosting.Dcp.dcp.NetworkReconciler Debug: No more ContainerNetwork resources are being watched, cancelling network watch {"ContainerNetwork": "/aspire-container-network", "Reconciliation": 11, "NetworkName": "aspire-session-network-tawuprzm-Aspire.Hosting.Tests", "NetworkID": "548a5d052669"}
| [2026-03-23T22:45:23] Aspire.Hosting.Dcp.dcp.os-executor Debug: Context expired, stopping process... {"PID": 8057, "Command": "/usr/bin/docker", "Args": ["events", "--filter", "type=network", "--format", "{{json .}}"]}
| [2026-03-23T22:45:23] Aspire.Hosting.Dcp.dcp.os-executor Debug: Root process has stopped {"Root": 8057}
| [2026-03-23T22:45:23] Aspire.Hosting.Dcp.dcp.ProcessMonitor Debug: Monitor process exited, shutting down {"MonitorPID": 8003, "ChildPID": 8099, "PID": 8099}
| [2026-03-23T22:45:24] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server.adminHttpHandler Debug: API server changed status {"OldStatus": "CleanupComplete", "NewStatus": "Stopping"}
| [2026-03-23T22:45:24] Aspire.Hosting.Dcp.dcp.start-apiserver Debug: Shutting down...
| [2026-03-23T22:45:24] Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host Debug: Service DCP controller host terminated gracefully
| [2026-03-23T22:45:24] Aspire.Hosting.Dcp.dcp.start-apiserver Debug: Shutdown complete.
| [2026-03-23T22:45:24] Aspire.Hosting.FileSystemService Debug: Cleaning up 1 remaining temporary files/directories
| [2026-03-23T22:45:24] Aspire.Hosting.FileSystemService Debug: Cleaned up temporary directory: /tmp/aspire-dcpVqVEbi
```
Failing tests:
- Aspire.Hosting.Azure.Kusto.Tests.KustoFunctionalTests.KustoEmulator_WithInvalidDatabase_LogsErrorAndContinues
- Aspire.Hosting.Azure.Kusto.Tests.KustoFunctionalTests.KustoEmulator_WithDatabase_CanReadIngestedData
- Aspire.Hosting.Azure.Kusto.Tests.KustoFunctionalTests.KustoEmulator_WithBindMount_IsUsedForPersistence
Contributor guide
Assessment
This issue has not been assessed yet.