[ci-scan] Test failure: Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger on Apple Na [Content truncated due to length]
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
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 dotnet/runtime#130219 (`mono_ios_set_summary` MarshalDirectiveException on the tvos device leg). NativeAOT library tests on Apple mobile were newly enabled by dotnet/runtime#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: dotnet/runtime#130219
## Error Message
```json
{
"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.allowed` list in your workflow frontmatter:
>
> ```yaml
> network:
> allowed:
> - defaults
> - "dotnet.github.io"
> ```
>
> See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information.
>
>
> [!NOTE]
>
> 🔒 Integrity filter blocked 28 items
>
> The following items were blocked because they don't meet the GitHub integrity level.
>
> - [#5158](https://github.com/dotnet/runtime/issues/5158) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#5984](https://github.com/dotnet/runtime/issues/5984) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#7096](https://github.com/dotnet/runtime/issues/7096) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#5318](https://github.com/dotnet/runtime/issues/5318) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#44158](https://github.com/dotnet/runtime/issues/44158) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#5101](https://github.com/dotnet/runtime/issues/5101) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#129876](https://github.com/dotnet/runtime/issues/129876) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#88361](https://github.com/dotnet/runtime/issues/88361) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#129876](https://github.com/dotnet/runtime/issues/129876) `issue_read`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#130227](https://github.com/dotnet/runtime/issues/130227) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#130105](https://github.com/dotnet/runtime/issues/130105) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#129960](https://github.com/dotnet/runtime/issues/129960) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#129959](https://github.com/dotnet/runtime/issues/129959) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#70306](https://github.com/dotnet/runtime/issues/70306) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#126819](https://github.com/dotnet/runtime/issues/126819) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#123929](https://github.com/dotnet/runtime/issues/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:
>
> ```yaml
> tools:
> github:
> min-integrity: approved # merged | approved | unapproved | none
> ```
>
>
> Generated by [CI Outer-Loop Failure Scanner](https://github.com/dotnet/runtime/actions/runs/28796599122/agentic_workflow) · ● 14.3M · [◷](https://github.com/search?q=repo%3Adotnet%2Fruntime+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Fruntime%2Fci-failure-scan%22&type=issues)
### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|
Contributor guide
Research direction
Start with Microsoft.Extensions.Hosting.Tests.HostTests.CreateDefaultBuilder_RegistersEventSourceLogger and compare its expected logging providers with the iossimulator-arm64 and maccatalyst AllSubsets_NativeAOT configurations. Reproduce the test on the failing Apple NativeAOT legs, then verify that the EventSourceLogger provider is registered and the test passes without regressing other library-test legs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios
- Domain
- ci-cd, mobile-dev, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100