Skip to content

[ci-scan] Test failure: X509Certificate2CollectionRemoveRangeArray under crossgen2 R2R #75

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1431066
Build error leg or test failing: windows-x64 Release TestReadyToRun_Libraries - System.Security.Cryptography.Tests

Error Details

CollectionTests.X509Certificate2CollectionRemoveRangeArray fails under R2R/crossgen2 on all three platforms (linux-x64, osx-x64, windows-x64). The test calls RemoveRange on an X509Certificate2Collection and expects 2 certificates to remain, but finds 0.

Prior KBEs dotnet#128444 (closed not_planned) and dotnet#128482 (closed duplicate) tracked this same failure but were closed while it continues to reproduce in every build.

Affected legs:

  • runtime-coreclr crossgen2 (def 124): linux-x64 Release TestReadyToRun_Libraries
  • runtime-coreclr crossgen2 (def 124): windows-x64 Release TestReadyToRun_Libraries
  • runtime-coreclr crossgen2 (def 124): osx-x64 Release TestReadyToRun_Libraries

First build it occurred: 1426059 (2026-05-19). 4+ consecutive builds failing.

[FAIL] System.Security.Cryptography.X509Certificates.Tests.CollectionTests.X509Certificate2CollectionRemoveRangeArray
Assert.Equal() Failure: Values differ
Expected: 2
Actual:   0
   at System.Security.Cryptography.X509Certificates.Tests.CollectionTests.X509Certificate2CollectionRemoveRangeArray() in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/CollectionTests.cs:line 1037
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)

Error Message

{
  "ErrorMessage": ["X509Certificate2CollectionRemoveRangeArray", "Assert.Equal() Failure: Values differ"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

🔒 Integrity filter blocked 2 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #114222 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #87444 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by CI Outer-Loop Failure Scanner · ● 32.2M ·

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions