Skip to content

[ci-scan] Test failure: NegotiateStream_SecurityRequirmentNotMeet_Throws does not throw on NativeAOT Windows #138074

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1691730
Build error leg or test failing: windows-x64 Release NativeAOT_Libs-System.Net.Security.Tests / NegotiateStreamInvalidOperationTest.NegotiateStream_SecurityRequirmentNotMeet_Throws
Pipeline: runtime-nativeaot-outerloop, definition 265, main.
Platform: Windows x64; queue: windows.10.amd64.serverrs5.open.rt. No JIT stress mode.
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1686337 (finished 2026-11-18T00:54:21Z; earliest verified occurrence in the sampled window).
Follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1692920 (finished 2026-11-21T03:01:51Z), same missing-exception assertion.

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

Both authentication operations finish without the AuthenticationException that the test expects when security requirements are not met. The test reports an AggregateException containing the two failed Assert.Throws assertions. The underlying cause is not established.

The failing-test marker and expected AuthenticationException were verified in five preceding builds (1686337, 1687417, 1688707, 1689636, 1690856), source 1691730, and follow-up 1692920: seven distinct builds. Ten preceding completed build inventories were inspected; the five older monitor reports do not identify a failed System.Net.Security.Tests work item. Repeated inner exceptions within one console count as one build occurrence.

Related: #138073 tracks the NotEncrypted authentication cases in the same work item, which fail with an expected-False/actual-True assertion rather than a missing AuthenticationException.

Source console: https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-heads-main-8f114dd8cef04b5194/System.Net.Security.Tests/1/console.23beba0c.log?helixlogtype=result

[FAIL] System.Net.Security.Tests.NegotiateStreamInvalidOperationTest.NegotiateStream_SecurityRequirmentNotMeet_Throws
System.AggregateException : One or more errors occurred. (Assert.Throws() Failure: No exception was thrown
Expected: typeof(System.Security.Authentication.AuthenticationException)) (Assert.Throws() Failure: No exception was thrown
Expected: typeof(System.Security.Authentication.AuthenticationException))
---- Assert.Throws() Failure: No exception was thrown
Expected: typeof(System.Security.Authentication.AuthenticationException)
---- Assert.Throws() Failure: No exception was thrown
Expected: typeof(System.Security.Authentication.AuthenticationException)
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[]) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 87
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[], Int32) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 54
   at System.Net.Security.Tests.NegotiateStreamInvalidOperationTest.NegotiateStream_SecurityRequirmentNotMeet_Throws() in /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateStreamInvalidOperationTest.cs:line 222
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (Xunit.Sdk.ThrowsException) -----
--- End of stack trace from previous location ---

Error Message

{
  "ErrorMessage": [
    "[FAIL] System.Net.Security.Tests.NegotiateStreamInvalidOperationTest.NegotiateStream_SecurityRequirmentNotMeet_Throws",
    "Assert.Throws() Failure: No exception was thrown",
    "Expected: typeof(System.Security.Authentication.AuthenticationException)"
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log

The failing-test marker matches once; the missing-exception diagnostic and expected-type element each match four lines in the saved canonical source console. They match in order in this test's AggregateException output, with no PASS/SKIP matches. Repeated inner-exception text is not counted as multiple build occurrences.


Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

Note

Generated by GitHub Copilot.

Generated by CI Outer-Loop Failure Scanner · copilot · gpt61 · ~181 AIC · ⌖ ~13 AIC · ⊞ 33.5K · ◷

Report

Build Repository Test Pull Request
1696388 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1695748 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1695593 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1695557 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1694635 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1694547 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1694171 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1694096 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1693913 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1693702 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Sync_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success
1693497 dotnet/runtime System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_Success

Summary

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

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Nov 21, 2026
  2. added
    untriaged
    on Nov 21, 2026
  3. dotnet-policy-service commented on Nov 23, 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.

  4. removed
    untriaged
    on Nov 24, 2026
  5. added a commit that references this issue on Nov 24, 2026
    26e94f3
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

    Known Build Erroragentic-workflowsarea-System.Net.Securityblocking-clean-ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions