镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[ci-scan] Test failure: ECKeyFileTests explicit NIST P-256 imports unexpectedly succeed on Azure Linux 4 #137151

Open

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1668850
Build error leg or test failing: linux-x64 Release Libraries_Release_CoreCLR-System.Security.Cryptography.Tests / ECKeyFileTests explicit NIST P-256 key imports
Queue: azurelinux.4.amd64.open.
Pipeline: runtime-extra-platforms, definition 154, main.
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1655451 (finished 2026-10-30; earliest verified occurrence in the sampled consoles, not a proven introducing build).
Follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1669782 (finished 2026-11-08), same assertions.

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

Twenty-eight ReadWriteNistP256Explicit* cases in the ECDSA/ECDH Default/OpenSsl key-file test families expect an exception, but importing the explicit curve succeeds. Each fails Assert.ThrowsAny with expected type System.Exception. This is distinct from the two TestExplicitCurveImportOnUnsupportedPlatform cases expecting PlatformNotSupportedException; those are already covered by #137121.

The key-file assertion was verified in nine distinct source-and-prior builds: 1655451, 1657310, 1658360, 1659071, 1661087, 1663137, 1665174, 1667020, and 1668850, and again in follow-up 1669782. Ten prior monitors were inspected. Older builds without a readable affected crypto console do not establish a passing test or the introducing commit.

Representative complete failure block:

System.Security.Cryptography.EcDsa.Tests.ECDsaKeyFileTests_Default.ReadWriteNistP256ExplicitPkcs8_LimitedPrivate [FAIL]
  Assert.ThrowsAny() Failure: No exception was thrown
  Expected: typeof(System.Exception)
  Stack Trace:
    /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/EC/ECKeyFileTests.cs(1138,0): at System.Security.Cryptography.Tests.ECKeyFileTests`1.ReadWriteBase64Pkcs8(String base64Pkcs8, ECParameters& expected, Boolean isSupported)
    /_/src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/EC/ECKeyFileTests.LimitedPrivate.cs(127,0): at System.Security.Cryptography.Tests.ECKeyFileTests`1.ReadWriteNistP256ExplicitPkcs8_LimitedPrivate()
    /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/IntrinsicInvokeHelper.cs(837,0): at System.Reflection.IntrinsicInvokeHelper.Instance_Void_0(IntPtr fn, Object obj, IntPtr* _, RuntimeType __)
    /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs(33,0): at System.Reflection.MethodBaseInvoker.InvokeWithSharedThunk(Object obj, IntPtr* args)
    /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(134,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Error Message

{
  "ErrorMessage": "",
  "ErrorPattern": [
    "^[ ]*System\\.Security\\.Cryptography\\.(EcDsa|EcDiffieHellman)\\.Tests\\.(ECDsa|ECDh)KeyFileTests_(Default|OpenSsl)\\.ReadWriteNistP256Explicit[A-Za-z0-9_]+ \\[FAIL\\]\\r?$",
    "^[ ]*Assert\\.ThrowsAny\\(\\) Failure: No exception was thrown\\r?$",
    "^[ ]*Expected: typeof\\(System\\.Exception\\)\\r?$"
  ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

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

Each anchored regex element matches 28 lines in the saved source console, in order inside each failing test's own block; no element matches passing or skipped lines. The test-family pattern covers all 28 explicit-key variants without matching the different unsupported-platform assertion.


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 · ~347 AIC · ⌖ ~14 AIC · ⊞ 33.3K · ◷

Report

Build Repository Test Pull Request
1679175 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_Default.TestExplicitCurveImportOnUnsupportedPlatform
1679005 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_OpenSsl.TestExplicitCurveImportOnUnsupportedPlatform
1678108 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDhKeyFileTests_OpenSsl.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate
1676867 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_Default.TestExplicitCurveImportOnUnsupportedPlatform
1676850 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_OpenSsl.TestExplicitCurveImportOnUnsupportedPlatform
1676597 dotnet/runtime System.Security.Cryptography.EcDsa.Tests.ECDsaKeyFileTests_Default.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate #137395
1676232 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_Default.TestExplicitCurveImportOnUnsupportedPlatform
1676142 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDhKeyFileTests_Default.ReadWriteNistP256ExplicitEncryptedPkcs8 #137379
1675538 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_OpenSsl.TestExplicitCurveImportOnUnsupportedPlatform
1672681 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDhKeyFileTests_OpenSsl.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate #136566
1674712 dotnet/runtime System.Security.Cryptography.EcDsa.Tests.ECDsaKeyFileTests_Default.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate
1674593 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDhKeyFileTests_Default.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate
1674281 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_OpenSsl.TestExplicitCurveImportOnUnsupportedPlatform
1673364 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_Default.TestExplicitCurveImportOnUnsupportedPlatform
1672225 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDiffieHellmanTests_Default.TestExplicitCurveImportOnUnsupportedPlatform
1670746 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDhKeyFileTests_Default.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate
1670305 dotnet/runtime System.Security.Cryptography.EcDiffieHellman.Tests.ECDhKeyFileTests_Default.ReadWriteNistP256ExplicitEncryptedPkcs8_LimitedPrivate

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 17 17

Activity

  1. self-assigned this
    on Nov 8, 2026
  2. dotnet-policy-service commented on Nov 8, 2026

    @dotnet-policy-service
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsarea-System.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'untriagedNew issue has not been triaged by the area owner

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions