Skip to content

[CI Failure] Flaky: DevTunnelMonitorTests.CancellingAHealthCallerDoesNotCancelTheSharedObserver throws ObjectDisposedException on disposed IServiceProvider #20859

Done

Description

@github-actions

Build Information

Build: https://github.com/microsoft/aspire/actions/runs/37977079859
Build error leg or test failing: Tests / No-package tests (regular, Aspire.Hosting.DevTunnels.Tests, Hosting.DevTunnels, Hosting.DevTunnel... / Hosting.DevTunnels (ubuntu-latest) / Aspire.Hosting.DevTunnels.Tests.DevTunnelMonitorTests.CancellingAHealthCallerDoesNotCancelTheSharedObserver

Error Message

System.ObjectDisposedException : Cannot access a disposed object.
Object name: 'IServiceProvider'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Aspire.Hosting.ApplicationModel.ResourceNotificationService.get_Configuration()

Description

Flaky: DevTunnelMonitorTests.CancellingAHealthCallerDoesNotCancelTheSharedObserver throws ObjectDisposedException on disposed IServiceProvider

Type: flaky-test

Occurrences

Showing 5 most recent of 5 occurrences.

Date Build Job Context
2026-10-09 37977079859 Tests / No-package tests (regular, Aspire.Hosting.DevTunnels.Tests, Hosting.DevTunnels, Hosting.DevTunnel... / Hosting.DevTunnels (ubuntu-latest) main
2026-10-10 38012264262 Tests / No-package tests (regular, Aspire.Hosting.DevTunnels.Tests, Hosting.DevTunnels, Hosting.DevTunnel... / Hosting.DevTunnels (ubuntu-latest) main
2026-10-15 38653167186 Tests / No-package tests (regular, Aspire.Hosting.DevTunnels.Tests, Hosting.DevTunnels, Hosting.DevTunnel... / Hosting.DevTunnels (ubuntu-latest) main
2026-10-15 38758285447 Tests / No-package tests (regular, Aspire.Hosting.DevTunnels.Tests, Hosting.DevTunnels, Hosting.DevTunnel... / Hosting.DevTunnels (ubuntu-latest) main
2026-10-19 39259389306 Tests / No-package tests (regular, Aspire.Hosting.DevTunnels.Tests, Hosting.DevTunnels, Hosting.DevTunnel... / Hosting.DevTunnels (ubuntu-latest) main

Activity

  1. radical commented on Nov 5, 2026

    @radical
    Member

    [automated] Consolidating #20861 and #21699 here: all three failures reach TestDevTunnelMonitor.Dispose through DevTunnelMonitor.StopRunAsync after the service provider is disposed, including both configuration-lookup and command-state callback variants. Distinct verified jobs are October 9 / CancellingAHealthCaller, October 9 / HostOutputAllocatesPorts, and November 2 / ReconciliationRetries; the linked reports retain their full occurrence histories. #21424 merged November 3 and reverses the shared fixture's disposal order; the November 2 failure predates that merge, and duplicate consolidation alone does not close this canonical or claim recovery.

  2. added
    ci-test-failure
    on Nov 5, 2026
  3. removed their assignment
    on Nov 5, 2026
  4. added
    cif:p1
    cif:ready
    on Nov 28, 2026
  5. radical commented on Nov 28, 2026

    @radical
    Member

    [automated] Fixed by #21424 on main. The fixture now stops the shared observer before disposing its services. The reported occurrences predate the fix, and the affected tests passed on Ubuntu and Windows in run 46182022124.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-failure-causeci-test-failurecifcif:p1cif:readytest-failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions