Skip to content

[ci-scan] Test failure: System.Security.Cryptography.Pkcs.Tests entitlement failure on Apple NativeAOT #130485

Description

@github-actions

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1500658
Build error leg or test failing: iossimulator-x64 Release AllSubsets_NativeAOT - System.Security.Cryptography.Pkcs.Tests

Error Details

On the Apple NativeAOT library-test legs (iossimulator AllSubsets_NativeAOT), the entire System.Security.Cryptography.Pkcs.Tests work item fails: 195 of its tests throw the same exception. Interop.AppleCrypto.KeychainEnumerateIdentities() cannot access the keychain because the NativeAOT test app is missing a required entitlement, so every Pkcs decrypt/sign test that reaches identity enumeration fails:

[FAIL] System.Security.Cryptography.Pkcs.EnvelopedCmsTests.Tests.DecryptTestsRsaPaddingMode.DecryptEnvelopedEmptyOctetString
Interop+AppleCrypto+AppleCommonCryptoCryptographicException : A required entitlement isn't present.
   at Interop.AppleCrypto.KeychainEnumerateIdentities() in /_/src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.Keychain.iOS.cs:line 60

This is a leg-level failure: >80% of the work item's tests fail on the single shared signal above. NativeAOT library tests on Apple mobile were newly enabled by #125437 (merged 2026-07-02). Observed on source build 1500658 (2026-07-09) and again on follow-up build 1502636 (2026-07-10), reproducing on the iossimulator-x64/iossimulator-arm64 AllSubsets_NativeAOT legs.

First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1500658

Error Message

{
  "ErrorMessage": [
    "[FAIL] System.Security.Cryptography.Pkcs.EnvelopedCmsTests",
    "Interop+AppleCrypto+AppleCommonCryptoCryptographicException : A required entitlement isn't present."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

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

This issue was generated by an AI agent (Copilot CI Outer-Loop Failure Scanner).

Generated by CI Outer-Loop Failure Scanner · 375.4 AIC · ⊞ 19.5K ·

Report

Summary

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions