Repository navigation
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1494308
Build error leg or test failing: iossimulator-arm64 Release AllSubsets_NativeAOT - Microsoft.Extensions.Hosting.Unit.Tests
Error Details
On the Apple NativeAOT library-test legs (iossimulator / maccatalyst AllSubsets_NativeAOT), HostTests.CreateDefaultBuilder_RegistersEventSourceLogger fails its Assert.Contains check: the expected EventSourceLogger provider is not present among the registered logging providers under NativeAOT.
[FAIL] Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger
Assert.Contains() Failure: Filter not matched in collection
The harness runs and this individual test fails, so it is distinct from the harness-startup crash tracked by #130219 (mono_ios_set_summary MarshalDirectiveException on the tvos device leg). NativeAOT library tests on Apple mobile were newly enabled by #125437 (merged 2026-07-02).
Observed on source build 1494308 (State=Failed) and again on follow-up build 1494829; reproduces across the iossimulator and maccatalyst NativeAOT legs.
Related: #130219
Error Message
{
"ErrorMessage": [
"[FAIL] Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger",
"Assert.Contains() Failure: Filter not matched in collection"
],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
dotnet.github.io
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "dotnet.github.io"See Network Configuration for more information.
Note
🔒 Integrity filter blocked 28 items
The following items were blocked because they don't meet the GitHub integrity level.
- #5158
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #5984
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #7096
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #5318
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #44158
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #5101
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #129876
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #88361
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #129876
issue_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #130227
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #130105
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #129960
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #129959
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #70306
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #126819
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #123929
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - ... and 12 more items
To allow these resources, lower min-integrity in your GitHub frontmatter:
tools:
github:
min-integrity: approved # merged | approved | unapproved | noneGenerated by CI Outer-Loop Failure Scanner · ● 14.3M · ◷
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 0 |
Activity
dotnet-policy-service commentedon Jul 7, 2026
Tagging subscribers to this area: @dotnet/area-extensions-hosting
See info in area-owners.md if you want to be subscribed.
github-actions commentedon Jul 8, 2026
Workflow artifact: ci-fix
Artifact kind: handoff
Linked KBE: #130254
Note
AI/Copilot-generated root-cause hand-off (
ci-failure-fix). No automated code change was produced because the only in-bounds change would be to weaken or skip the assertion under NativeAOT, which this workflow must not do. Looping in owners to fix forward.Root cause (read-only analysis)
On the Apple NativeAOT library-test legs (
iossimulator/maccatalystAllSubsets_NativeAOT, build 1494308),Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLoggerfails:The test builds a default host, logs
"Request starting", then asserts theMicrosoft-Extensions-LoggingEventSource emitted an event whose payload contains that string (HostTests.cs:164-177):The provider is registered —
Host.CreateDefaultBuildercallslogging.AddEventSourceLogger()unconditionally (HostingHostBuilderExtensions.cs:311). The gap is at event emission:LoggingEventSourcewrites log messages via EventSource's self-describing / reflection-based path (note the numerous[UnconditionalSuppressMessage("...IL2026:RequiresUnreferencedCode...")]on its members inLoggingEventSource.cs). Under Apple NativeAOT that reflection-based emission does not surface the payload to theEventListener, so no matching event is captured and theAssert.Containsfails.This is an EventSource-under-NativeAOT runtime behavior, not a registration bug. The only in-bounds change would be to gate or skip the assertion under NativeAOT — that is muting, which this workflow does not do — so I am handing off instead.
Evidence
iossimulatorandmaccatalystNativeAOT legs.src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/HostTests.cs:164.src/libraries/Microsoft.Extensions.Hosting/src/HostingHostBuilderExtensions.cs:311.src/libraries/Microsoft.Extensions.Logging.EventSource/src/LoggingEventSource.cs.Suggested reviewers / area contacts
@kotlarmilosfor routing the NativeAOT/EventSource emission question.area-Extensions-Hosting):@dotnet/area-extensions-hosting.Note
🔒 Integrity filter blocked 17 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".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".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".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".issue_read: 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: