Skip to content

[test-quarantine] Quarantine TestServerTests.LongPollingWorks#65843

Closed
github-actions[bot] wants to merge 1 commit intomainfrom
test-quarantine/quarantine-longpolling-a3673029f1b446e5
Closed

[test-quarantine] Quarantine TestServerTests.LongPollingWorks#65843
github-actions[bot] wants to merge 1 commit intomainfrom
test-quarantine/quarantine-longpolling-a3673029f1b446e5

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Quarantines Microsoft.AspNetCore.SignalR.Client.Tests.TestServerTests.LongPollingWorks which intermittently fails with:

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateScope()
   at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(...)

Race condition: the test server's IServiceProvider is disposed during test cleanup while SignalR's OnDisconnectedAsync is still trying to create a service scope in the HubConnectionHandler.

Failed in builds 1320863 and 1322771 on the main branch.

Tracking: #65838

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1320863

Generated by Daily Test Quarantine Management ·

Warning

⚠️ Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • d0svsblobprodcus381.vsblob.vsassets.io
  • example.com
  • kijvsblobprodcus387.vsblob.vsassets.io
  • learn.microsoft.com
  • spsprodcus4.vssps.visualstudio.com
  • ytvvsblobprodcus310.vsblob.vsassets.io

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "d0svsblobprodcus381.vsblob.vsassets.io"
    - "example.com"
    - "kijvsblobprodcus387.vsblob.vsassets.io"
    - "learn.microsoft.com"
    - "spsprodcus4.vssps.visualstudio.com"
    - "ytvvsblobprodcus310.vsblob.vsassets.io"

See Network Configuration for more information.

Test fails intermittently with ObjectDisposedException: Cannot access a
disposed IServiceProvider. Race condition between test server disposal and
SignalR's OnDisconnectedAsync trying to create a service scope.

Fixes #65839

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers test-failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant