Skip to content

[Failing test]: ResourceHealthCheckServiceTests.ResourcesWithHealthCheck_CreationErrorIsReported #8326

@radical

Description

@radical

Is there an existing issue for this?

  • I have searched the existing issues

Build information

Build: https://github.com/dotnet/aspire/actions/runs/14091622812/job/39469534556?pr=8324
Build error leg or test failing: Aspire.Hosting.Tests.Health.ResourceHealthCheckServiceTests.ResourcesWithHealthCheck_CreationErrorIsReported
Pull Request: #8324

Fill in the error message template

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "/ResourceHealthCheckServiceTests.cs.*timed out after reaching the limit of 5000ms",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Other info

  Failed Aspire.Hosting.Tests.Health.ResourceHealthCheckServiceTests.ResourcesWithHealthCheck_CreationErrorIsReported [5 s]
  Error Message:
   System.TimeoutException : The operation at /_/tests/Aspire.Hosting.Tests/Health/ResourceHealthCheckServiceTests.cs:135 timed out after reaching the limit of 5000ms.
  Stack Trace:
     at Microsoft.AspNetCore.InternalTesting.AsyncTestHelpers.TimeoutAfter(Task task, TimeSpan timeout, String filePath, Int32 lineNumber) in /_/tests/Shared/AsyncTestHelpers.cs:line 149
   at Aspire.Hosting.Tests.Health.ResourceHealthCheckServiceTests.ResourcesWithHealthCheck_CreationErrorIsReported() in /_/tests/Aspire.Hosting.Tests/Health/ResourceHealthCheckServiceTests.cs:line 135
   at Aspire.Hosting.Tests.Health.ResourceHealthCheckServiceTests.ResourcesWithHealthCheck_CreationErrorIsReported() in /_/tests/Aspire.Hosting.Tests/Health/ResourceHealthCheckServiceTests.cs:line 135
--- End of stack trace from previous location ---
Full log Standard Output Messages: | [2025-03-26T19:23:53] Aspire.Hosting.DistributedApplication Information: Aspire version: 9.2.0-ci | [2025-03-26T19:23:53] Aspire.Hosting.DistributedApplication Information: Distributed application starting. | [2025-03-26T19:23:53] Aspire.Hosting.DistributedApplication Information: Application host directory is: /home/runner/work/aspire/aspire/tests/Aspire.Hosting.Tests | [2025-03-26T19:23:53] Aspire.Hosting.Cli.BackchannelService Debug: Backchannel socket path was not specified. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpHost Information: Starting DCP with arguments: start-apiserver --monitor 3690 --detach --kubeconfig "/tmp/aspire.0romhH/kubeconfig" | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Version: 1 | Resource resource/resource update published: | ResourceType = ParentResource, | CreationTimeStamp = (null), | State = { Text = (null), Style = (null) }, | HeathStatus = (null), | ResourceReady = False, | ExitCode = (null), | Urls = { }, | EnvironmentVariables = { | }, | Properties = { | }, | HealthReports = { | healthcheck_a = (null) | }, | Commands = { | } | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Endpoint resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Executable resources. | [2025-03-26T19:23:53] Aspire.Hosting.Devcontainers.Codespaces.CodespacesResourceUrlRewriterService Trace: Not running in Codespaces, skipping URL rewriting. | [2025-03-26T19:23:53] Aspire.Hosting.DistributedApplication Information: Distributed application started. Press Ctrl+C to shut down. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Container resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Watching over DCP Service resources. | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource resource/resource changed state: Starting | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Version: 2 | Resource resource/resource update published: | ResourceType = ParentResource, | CreationTimeStamp = (null), | State = { Text = Starting, Style = (null) }, | HeathStatus = (null), | ResourceReady = False, | ExitCode = (null), | Urls = { }, | EnvironmentVariables = { | }, | Properties = { | }, | HealthReports = { | healthcheck_a = (null) | }, | Commands = { | } | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Waiting for resource 'resource' to match predicate. | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Finished waiting for resource 'resource'. | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource resource/resource changed state: Starting -> Running | [2025-03-26T19:23:53] Aspire.Hosting.Health.ResourceHealthCheckService Debug: Starting health monitoring for resource 'resource'. | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Version: 3 | Resource resource/resource update published: | ResourceType = ParentResource, | CreationTimeStamp = (null), | State = { Text = Running, Style = (null) }, | HeathStatus = Unhealthy, | ResourceReady = False, | ExitCode = (null), | Urls = { }, | EnvironmentVariables = { | }, | Properties = { | }, | HealthReports = { | healthcheck_a = (null) | }, | Commands = { | } | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Waiting for resource 'resource' to match predicate. | [2025-03-26T19:23:53] Aspire.Hosting.Health.ResourceHealthCheckService Debug: Resource 'resource' health checks to monitor: healthcheck_a | [2025-03-26T19:23:53] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Health report status for 'resource' is Unhealthy. | [2025-03-26T19:23:53] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Health reports for 'resource' have changed. Publishing updated reports. | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Version: 4 | Resource resource/resource update published: | ResourceType = ParentResource, | CreationTimeStamp = (null), | State = { Text = Running, Style = (null) }, | HeathStatus = Unhealthy, | ResourceReady = False, | ExitCode = (null), | Urls = { }, | EnvironmentVariables = { | }, | Properties = { | }, | HealthReports = { | healthcheck_a = Unhealthy | }, | Commands = { | } | [2025-03-26T19:23:53] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Resource 'resource' health check monitoring loop starting delay of 00:00:01. | [2025-03-26T19:23:53] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Finished waiting for resource 'resource'. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Endpoint resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Endpoint resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Service resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Service resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Container resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Container resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Cancellation received while watching Executable resources. | [2025-03-26T19:23:53] Aspire.Hosting.Dcp.DcpExecutor Debug: Stopped watching Executable resources. | [2025-03-26T19:23:54] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Health report status for 'resource' is Unhealthy. | [2025-03-26T19:23:54] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Resource 'resource' health check monitoring loop starting delay of 00:00:02. | [2025-03-26T19:23:56] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Health report status for 'resource' is Unhealthy. | [2025-03-26T19:23:56] Aspire.Hosting.Health.ResourceHealthCheckService Trace: Resource 'resource' health check monitoring loop starting delay of 00:00:03. | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server Information: Starting API server... | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server Information: API server started {"Address": "::1", "Port": 46371} | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host Information: Starting DCP controller host | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcp.start-apiserver.dcp-host Information: Started all services {"count": 1} | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.KubernetesService Debug: Successfully read Kubernetes configuration from '/tmp/aspire.0romhH/kubeconfig' after 4808 milliseconds. | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcp.start-apiserver.api-server.adminHttpHandler Information: API server changed status {"OldStatus": "Running", "NewStatus": "CleaningResources"} | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcpctrl.ContainerOrchestrator Information: runtime status {"ContainerRuntime": "", "runtime": "podman", "status": {"Installed":true,"Running":true,"Error":""}} | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcpctrl.ContainerOrchestrator Information: runtime status {"ContainerRuntime": "", "runtime": "docker", "status": {"Installed":true,"Running":true,"Error":""}} | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcpctrl.IdeExecutableRunner Information: Executables cannot be started via IDE: missing required environment variable 'DEBUG_SESSION_PORT' | [2025-03-26T19:23:58] Aspire.Hosting.Dcp.dcpctrl Information: starting controller manager

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 3/26/2025 7:35:22 PM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 3/26/2025 7:36:54 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationflaky-test

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions