Skip to content

[ci-scan] Test failure: NegotiateStream NotEncrypted authentication reports encryption on NativeAOT Windows #138073

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 / NegotiateStreamStreamToStreamTest NotEncrypted authentication
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 six assertion failures.

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.
  • ErrorPattern uses .NET Singleline | IgnoreCase | NonBacktracking matching with a 50ms-per-line timeout.
  • Keep the regex anchored, prefer [^\n]* over .*, and avoid catastrophic backtracking.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

Six NotEncrypted cases fail with expected False, actual True: synchronous and asynchronous-memory variants of NegotiateStream_StreamToStream_Authentication_Success (delay 0 and 1) and NegotiateStream_StreamToStream_Authentication_TargetName_Success. These form one authentication/encryption assertion shape, not six independently filed failures. The underlying cause is not established.

The same six failing cases 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. Multiple cases within one build count as one occurrence, not six.

The separate NegotiateStream_SecurityRequirmentNotMeet_Throws failure in this work item has a different exception assertion and is not matched by this KBE.

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

Representative complete assertion and stack:

[FAIL] System.Net.Security.Tests.NegotiateStreamStreamToStreamTest_Async_Memory_NotEncrypted.NegotiateStream_StreamToStream_Authentication_TargetName_Success
Assert.Equal() Failure: Values differ
Expected: False
Actual:   True
   at System.Net.Security.Tests.NegotiateStreamStreamToStreamTest.NegotiateStream_StreamToStream_Authentication_TargetName_Success() in /_/src/libraries/System.Net.Security/tests/FunctionalTests/NegotiateStreamStreamToStreamTest.cs:line 160
--- End of stack trace from previous location ---

Error Message

{
  "ErrorMessage": "",
  "ErrorPattern": [
    "^\\[FAIL\\] System\\.Net\\.Security\\.Tests\\.NegotiateStreamStreamToStreamTest_(Async_Memory|Sync)_NotEncrypted\\.NegotiateStream_StreamToStream_Authentication_(TargetName_)?Success\\b[^\\n]*",
    "^Assert\\.Equal\\(\\) Failure: Values differ",
    "^Expected: False",
    "^Actual:   True"
  ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

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

Each regex element matches six lines in the saved canonical source console. All four elements match in order for each of the six failing cases; PASS/SKIP negative output is empty. The first pattern enumerates the actual complete method names and runtime-test variants rather than a truncated test-name wildcard. A regex array is used because one literal test identifier cannot cover both complete authentication method names without dropping the failing-test anchor.


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 this to the 12.0.0 milestone on Nov 24, 2026
  6. 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions