Skip to content

[ci-scan] Test failure: System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131528

Closed

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1526583
Build error leg or test failing: libraries-pgo / System.Net.Security.Tests - System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert

Also observed in runtime-coreclr libraries-jitstress (definition 138).

Error Details

System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert(protocol: Tls12) [FAIL]
  Assert.Throws() Failure: No exception was thrown
  Expected: typeof(System.Security.Authentication.AuthenticationException)
  Stack Trace:
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/TlsSessionTests.cs(452,0): at System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert(SslProtocols protocol)

Error Message

{
  "ErrorMessage": "SslStreamServer_RejectsClientCert_ClientObservesAlert(protocol: Tls12) [FAIL]",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

This issue was generated by the ci-failure-scan Copilot workflow (AI-generated). Verify details before acting.

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 CI Outer-Loop Failure Scanner · 638.1 AIC · ⌖ 17.1 AIC · ⊞ 18.7K · ◷

Report

Build Repository Test Pull Request
1538732 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert
1538317 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131778
1538136 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131624
1538101 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131666
1538030 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131671
1537547 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #129690
1537020 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #129690
1536920 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert
1536351 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert
1536248 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131233
1536239 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131431
1535800 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert
1535540 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131660
1535350 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131660
1535223 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #129690
1535116 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131544
1534757 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131642
3035781 dotnet-runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert
1534351 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert
1533912 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131617
1533370 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131597
1532901 dotnet/runtime System.Net.Security.Tests.NegotiateAuthenticationKerberosTest.ChannelBindings_Matching_Endpoint_Succeeds #131569
1532438 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131554
1532151 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131500
1531997 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert #131445

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
6 25 25

Activity

  1. dotnet-policy-service commented on Jul 29, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
    See info in area-owners.md if you want to be subscribed.

  2. github-actions commented on Jul 30, 2026

    @github-actions
    ContributorAuthor

    Workflow artifact: ci-fix
    Artifact kind: handoff
    Linked KBE: #131528

    Note

    AI/Copilot-generated triage note.

    This Known Build Error has no producible automated code change (reason: codegen-stress pipeline — the failure reproduces only under libraries-pgo (def 146) and libraries-jitstress (def 138), both codegen-stress legs I must not auto-patch), so I could not open even a best-effort PR. Looping in owners so it can be fixed forward rather than muted.

    Root cause (best analysis)

    System.Net.Security.Tests.TlsSessionTests.SslStreamServer_RejectsClientCert_ClientObservesAlert(protocol: Tls12) asserts that a client-cert rejection surfaces as an AuthenticationException, but under the PGO/JITStress legs no exception is thrown (Assert.Throws() Failure: No exception was thrown). The test at src/libraries/System.Net.Security/tests/FunctionalTests/TlsSessionTests.cs(452) distinguishes the OpenSSL Tls12 "reject mid-handshake" path (inHandshake) from the SChannel/TLS1.3 "alert on first encrypted I/O" path. On the PGO/JITStress legs the handshake timing appears to shift so the expected mid-handshake rejection does not materialize within the assertion window. Because it only reproduces under codegen stress, the correct fix (test-timing hardening vs. a genuine stress-only handshake regression) is a networking + codegen judgment call, not a mechanical edit.

    Evidence

    Suggested reviewers / area contacts

    • Area owners (area-System.Net.Security): @karelz, @bartonjs, @vcsjones, @dotnet/ncl

    A fix would likely involve confirming whether this is a stress-only handshake-timing artifact (harden the test's wait/assert for the mid-handshake reject path) or a real regression in client-cert alert surfacing under optimized codegen.

    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 CI Outer-Loop Failure Fixer · 287.5 AIC · ⌖ 18.4 AIC · ⊞ 17.4K · ◷

  3. wfurt commented on Aug 4, 2026

    @wfurt
    Member

    duplicate of #131330

  4. locked and limited conversation to collaborators on Sep 4, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions