Skip to content

[ci-scan] Test failure: Android X509 DynamicChainTests name-constraint status mismatch #128890

@simonrozsival

Description

@simonrozsival

Note

This issue draft was prepared with GitHub Copilot assistance and should be reviewed before posting.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1444966

Additional observed builds:

Build error leg or test failing: android-arm Release AllSubsets_CoreCLR - System.Security.Cryptography.Tests - System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.NameConstraintViolation_PermittedTree_Dns

Error Details

Several X509 name-constraint tests fail consistently on Android Helix hardware. The failures look like provider/status behavior mismatches: UPN cases fail chain.Build, while DNS cases report InvalidNameConstraints where the test expects PartialChain.

Observed repro details from a representative official runtime-extra-platforms job:

Observed failure summaries:

System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.NameConstraintViolation_PermittedTree_Upn
chain.Build

System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.NameConstraintViolation_PermittedTree_Dns
Assert.Equal() Failure: Values differ
Expected: PartialChain
Actual:   InvalidNameConstraints

System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.NameConstraintViolation_ExcludedTree_Upn
chain.Build

System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.NameConstraintViolation_ExcludedTree_Dns
Assert.Equal() Failure: Values differ
Expected: PartialChain
Actual:   InvalidNameConstraints

Other official runtime-extra-platforms hits found in Helix testResults.xml:

Error Message

{
  "ErrorMessage": "",
  "ErrorPattern": [
    "\\[FAIL\\][^\\n]*System\\.Security\\.Cryptography\\.X509Certificates\\.Tests\\.DynamicChainTests\\.NameConstraintViolation_(PermittedTree|ExcludedTree)_(Dns|Upn)",
    "Exception messages: (chain\\.Build|Assert\\.Equal\\(\\) Failure: Values differ)"
  ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

The ordered ErrorPattern array intentionally matches the DOTNET/logcat summary for all four related failures:

  • NameConstraintViolation_PermittedTree_Upn with chain.Build
  • NameConstraintViolation_PermittedTree_Dns with InvalidNameConstraints
  • NameConstraintViolation_ExcludedTree_Upn with chain.Build
  • NameConstraintViolation_ExcludedTree_Dns with InvalidNameConstraints

Duplicate search

No open issue was found that directly tracks this Android-specific X509 name-constraint mismatch.

Related but not duplicates:

AzDO / Helix history search

Recent public runtime-extra-platforms builds (definition 154) on main were searched for this signature. The important detail is that the xUnit failure text is not present in the AzDO job console logs; it is present in the Helix testResults.xml artifacts linked from those jobs.

  • Query window: recent builds from 1444966 (20260601.4) back through 1406427 (20260502.2).
  • Scope: failed Android job console logs scanned, then System.Security.Cryptography.Tests Helix work items inspected via testResults.xml where available.
  • Search strings: NameConstraintViolation_PermittedTree_Upn, NameConstraintViolation_PermittedTree_Dns, NameConstraintViolation_ExcludedTree_Upn, NameConstraintViolation_ExcludedTree_Dns, InvalidNameConstraints, and PartialChain.
  • Result: 6 official runtime-extra-platforms Helix work items contained all four failures.

Architecture coverage:

  • android-arm: 4 hits (AllSubsets_CoreCLR and one AllSubsets_Mono)
  • android-arm64: 2 hits (AllSubsets_CoreCLR)
  • android-x86: 0 hits in the inspected window
  • android-x64: 0 hits in the inspected window

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1444966
Error message validated: [\[FAIL\][^\n]*System\.Security\.Cryptography\.X509Certificates\.Tests\.DynamicChainTests\.NameConstraintViolation_(PermittedTree|ExcludedTree)_(Dns|Upn) Exception messages: (chain\.Build|Assert\.Equal\(\) Failure: Values differ)]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/2/2026 10:42:33 AM UTC

Report

Build Repository Test Pull Request
1444966 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution

Summary

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

Metadata

Metadata

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions