Skip to content

Quarantine HubConnectionTests.RefreshingAuth* (authentication refresh functional tests) #68019

Open

Description

@github-actions

Failing Test(s)

  • Microsoft.AspNetCore.SignalR.Client.FunctionalTests.HubConnectionTests.RefreshingAuthAddingClaimAllowsAuthorizedMethod
  • Microsoft.AspNetCore.SignalR.Client.FunctionalTests.HubConnectionTests.RefreshingAuthRemovingClaimBlocksAuthorizedMethod

Failure Frequency

Each test failed 2 times over the past 30 days.

Error Message

Helix logs have expired for the failing builds. The tests are SignalR functional integration tests that authenticate via HTTP tokens and test authorization behavior when the token's claims are modified mid-connection.

Build

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

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

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Daily Test Quarantine Management · 558.6 AIC · ⌖ 6.78 AIC · ⊞ 1.8K · ◷

Activity

  1. github-actions commented on Jul 25, 2026

    @github-actions
    ContributorAuthor

    Investigation: HubConnectionTests.RefreshingAuth* Flakiness

    Both tests (RefreshingAuthAddingClaimAllowsAuthorizedMethod and RefreshingAuthRemovingClaimBlocksAuthorizedMethod) are SignalR functional integration tests that verify HTTP authentication token refresh behavior. They establish a SignalR connection, modify JWT token claims mid-connection (adding or removing claims), and assert that the authorization policy is re-evaluated correctly.

    Root cause hypothesis: The flakiness likely stems from timing sensitivity in the token refresh handshake. When the test modifies the claim, a token refresh request is triggered; if the server-side authorization middleware re-evaluates the claim before the refreshed token is fully applied (or vice versa), the assertion on the hub method's success/failure outcome can be non-deterministic. These are end-to-end functional tests relying on HTTP stack timing, making them inherently susceptible to race conditions in CI environments.

    Helix logs are not available (expired). Quarantining to unblock CI while the token refresh sequencing is investigated.

    Warning

    Firewall blocked 1 domain

    The following domain was blocked by the firewall during workflow execution:

    • awmgmcpg

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

    network:
      allowed:
        - defaults
        - "awmgmcpg"

    See Network Configuration for more information.

    Generated by Daily Test Quarantine Management · 558.6 AIC · ⌖ 6.78 AIC · ⊞ 1.8K · ◷

  2. added
    area-signalr
    on Aug 3, 2026
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

    area-signalrtest-failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions