Repository navigation
Open
Labels
Description
Failing Test(s)
Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedCertificateNotFromStore
Error Message
Interop+AppleCrypto+AppleCommonCryptoCryptographicException : The specified keychain could not be found.
Stacktrace
Details
at Interop.AppleCrypto.X509StoreAddCertificate(SafeKeychainItemHandle certOrIdentity, SafeKeychainHandle keychain)
at Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedCertificateNotFromStore() in /_/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs:line 178
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Logs
Details
[xUnit.net 00:00:00.75] Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedCertificateNotFromStore [FAIL]
[xUnit.net 00:00:00.75] Interop+AppleCrypto+AppleCommonCryptoCryptographicException : The specified keychain could not be found.
[xUnit.net 00:00:00.75] Stack Trace:
[xUnit.net 00:00:00.75] at Interop.AppleCrypto.X509StoreAddCertificate(SafeKeychainItemHandle certOrIdentity, SafeKeychainHandle keychain)
[xUnit.net 00:00:00.75] /_/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs(178,0): at Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedCertificateNotFromStore()
[xUnit.net 00:00:00.75] at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[xUnit.net 00:00:00.75] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Failed Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedCertificateNotFromStore [36 ms]
Error Message:
Interop+AppleCrypto+AppleCommonCryptoCryptographicException : The specified keychain could not be found.
Stack Trace:
at Interop.AppleCrypto.X509StoreAddCertificate(SafeKeychainItemHandle certOrIdentity, SafeKeychainHandle keychain)
at Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedCertificateNotFromStore() in /_/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs:line 178
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Build
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414721
Note
🔒 Integrity filter blocked 12 items
The following items were blocked because they don't meet the GitHub integrity level.
- #66624
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66625
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66613
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66583
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66584
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66586
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66577
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66578
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66532
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #66531
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #65815
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #65817
search_pull_requests: 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 | noneGenerated by Daily Test Quarantine Management · ● 5.8M · ◷
Activity
github-actions commentedon May 10, 2026
Investigation
The test
System_UsesProvidedCertificateNotFromStorehas failed 2 times in theaspnetcore-cipipeline (definition 83) on themainbranch within the last 30 days:Error
Both failures show the same error:
at
Interop.AppleCrypto.X509StoreAddCertificate.Root Cause
This test opens the macOS user keychain (
X509Store(StoreName.My, StoreLocation.CurrentUser)) and attempts to add a test certificate to it. On Helix macOS agents, the default keychain is not always available in the test execution context, causing theX509StoreAddCertificatecall to fail with "The specified keychain could not be found."This is a known macOS Helix environment limitation — the user keychain may not be initialized or accessible in the ephemeral build environment. This is an infrastructure/environment flakiness issue, not a code bug.
The test is protected by
[X509StoreIsAvailable]which should skip it on machines where the store isn't available, but this conditional check apparently passes even when the keychain operations later fail.Recommended Fix
Investigate whether
X509StoreIsAvailablecan be improved to also check that keychain operations succeed, or whether the test should be skipped entirely on macOS CI environments. For now, quarantining is appropriate.Note
🔒 Integrity filter blocked 12 items
The following items were blocked because they don't meet the GitHub integrity level.
pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".pull_request_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter:Quarantine DataProtectionProviderTests.System_UsesProvidedCertificate…
Quarantine DataProtectionProviderTests.System_UsesProvidedCertificate…
EduardF1 commentedon May 12, 2026
@Youssef1313 — heads up on this one. PR #66532 is approved and ready to merge, but it has been blocked for 2 days by consecutive failures of
System_UsesProvidedCertificateNotFromStoreon every/azp runattempt (3 failures so far). This issue (#66637) was filed by the quarantine bot on 2026-05-10 with the Helix macOS keychain environment identified as the root cause, but no action has been taken yet.Two asks:
/azp runon feat: add missing [StringSyntax(DateTimeFormat)] to DateTimeOffset methods in BindConverter #66532 so it can get a clean signal and be merged.Thanks for looking into it.
Youssef1313 commentedon May 13, 2026
#66638 is merged already and the test is already quarantined.
Unquarantine DataProtectionProviderTests.System_UsesProvidedCertifica…
[test-quarantine] Unquarantine DataProtectionProviderTests.System_Use…
wtgodbe commentedon Aug 5, 2026
Reopening because the same macOS keychain failure has recurred on the servicing branches after the test was unquarantined on main.
Recent failures:
All failures occurred on
OSX.15.Amd64.OpenwithThe specified keychain could not be found. Main moved toOSX.26.Arm64.Openbefore the clean run streak used to unquarantine the test.github-actions commentedon Aug 15, 2026
Investigation
System_UsesProvidedCertificateNotFromStorefailed 2 times in theaspnetcore-cipipeline on themainbranch within the last 30 days, after previously being unquarantined via #67754:Both failures occurred after the unquarantine landed on 2026-07-13, indicating the underlying macOS keychain flakiness has recurred. Re-quarantining via a new PR referencing this issue.
Quarantine macOS keychain test
[release/10.0] Fix installer background for bundles (#68932)