You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft.Extensions.Logging.EventSource.Tests failing on iOS and likely all mobile platforms with NullReferenceExceptions in EventSource.OnEventWritten.
Failure Pattern
All 8 failing tests report:
ERROR: Exception during EventSource.OnEventWritten: Object reference not set to an instance of an object.
Assert.Collection() Failure: Item comparison failure
Error: Event name does not match. Expected Message, event data is '{"__EVENT_NAME":"EventSourceMessage","message":"ERROR: Exception during EventSource.OnEventWritten: Object reference not set to an instance of an object."}'
Failing Tests
Logs_OnlyMessage_IfKeywordSet
Logs_TracingDetailsAsExpected_WithDefaults (4 theory variants)
Logs_OnlyFormattedMessage_IfKeywordSet
Logs_AsExpected_WithDefaults
Logs_AsExpected_WithDefaults_EnabledEarly
Platform Coverage
Confirmed on:
iossimulator-arm64 CoreCLR
Likely affects all mobile platforms (tvOS, MacCatalyst, Android) based on failure pattern.
Helix Job:7da59944-242f-4296-8a21-1a36fe1d0562 Work Item:Microsoft.Extensions.Logging.EventSource.Tests
Console log shows the EventSource implementation itself is throwing a NullReferenceException during event writing, not the test code.
Related
Likely related to recent changes around trimming, reflection, or EventSource handling on mobile/NativeAOT platforms. See also #127448 for concurrent DI/Hosting failures on the same build.
Note
🔒 Integrity filter blocked 3 items
The following items were blocked because they don't meet the GitHub integrity level.
#126023search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
#124461search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
#108513search_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:
Description
Microsoft.Extensions.Logging.EventSource.Testsfailing on iOS and likely all mobile platforms with NullReferenceExceptions inEventSource.OnEventWritten.Failure Pattern
All 8 failing tests report:
Failing Tests
Logs_OnlyMessage_IfKeywordSetLogs_TracingDetailsAsExpected_WithDefaults(4 theory variants)Logs_OnlyFormattedMessage_IfKeywordSetLogs_AsExpected_WithDefaultsLogs_AsExpected_WithDefaults_EnabledEarlyPlatform Coverage
Confirmed on:
Likely affects all mobile platforms (tvOS, MacCatalyst, Android) based on failure pattern.
Failure Details
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1397424
Date: 2026-04-27
Helix Job:
7da59944-242f-4296-8a21-1a36fe1d0562Work Item:
Microsoft.Extensions.Logging.EventSource.TestsConsole log shows the EventSource implementation itself is throwing a NullReferenceException during event writing, not the test code.
Related
Likely related to recent changes around trimming, reflection, or EventSource handling on mobile/NativeAOT platforms. See also #127448 for concurrent DI/Hosting failures on the same build.
Note
🔒 Integrity filter blocked 3 items
The following items were blocked because they don't meet the GitHub integrity level.
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: