Skip to content

Test failure: System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.AllFilesDeleted_MultiplePrivateKey_Ctor(storageFlags: MachineKeySet, capi: False) #123280

Closed

Description

@adamperlin

Failed in: runtime-coreclr libraries-pgo 01-11-2026

Failed test:

net11.0-windows-Release-x64-fullpgo_random_gdv_edge-Windows.10.Amd64.Open
    - System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.AllFilesDeleted_MultiplePrivateKey_Ctor
        - System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.AllFilesDeleted_MultiplePrivateKey_Ctor(storageFlags: MachineKeySet, capi: False)

Error message:

Assert.Empty() Failure: Collection was not empty
Collection: ["CNG-USER\3d83fbd4d8982571ec9ad1620ec85b2d_04c5db6"···]

Stack trace:

at System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.EnsureNoKeysGained[TState](TState state, Func`2 importer) in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/X509FilesystemTests.Windows.cs:line 405
   at System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.AllFilesDeletedTest(X509KeyStorageFlags storageFlags, Boolean capi, Boolean multiPrivate, Func`4 importer, String name) in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/X509FilesystemTests.Windows.cs:line 259
   at System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.AllFilesDeleted_MultiplePrivateKey_Ctor(X509KeyStorageFlags storageFlags, Boolean capi) in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/X509FilesystemTests.Windows.cs:line 54
   at InvokeStub_X509FilesystemTests.AllFilesDeleted_MultiplePrivateKey_Ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 136

Activity

  1. added
    untriaged
    on Jan 16, 2026
  2. dotnet-policy-service commented on Jan 16, 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.

  3. added
    blocking-clean-ci-optional
    on Jan 16, 2026
  4. vcsjones commented on Jun 19, 2026

    @vcsjones
    Member

    This is likely just a race. The test depends on machine-wide state and can't guarantee it is running in isolation. I'm going to close this for now but if it gets problematic we can move it to outer loop.

  5. removed
    untriaged
    on Jun 19, 2026
  6. locked and limited conversation to collaborators on Jul 20, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions