Repository navigation
[ci-scan] Apple NativeAOT test harness crash: mono_ios_set_summary requires marshalling not yet supported by ILC #130219
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1493986
Build error leg or test failing: tvos-arm64 Release AllSubsets_NativeAOT - System.Console.Tests (every library test assembly on this leg fails identically)
Error Details
The Apple NativeAOT test harness (SimpleTestRunner in src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs) aborts on startup before any test runs. The mono_ios_set_summary(string) p/invoke cannot be marshalled by the NativeAOT compiler (ILC), so every work item on the tvos-arm64 Release AllSubsets_NativeAOT leg fails with the same unhandled exception (System.Console.Tests, System.Diagnostics.FileVersionInfo.Tests, System.IO.Compression.ZipFile.Tests, System.Net.HttpListener.Tests, System.Net.Ping.Functional.Tests, System.Runtime.Caching.Tests, and the rest of the leg's assemblies).
Unhandled exception.
System.Runtime.InteropServices.MarshalDirectiveException: Method '[System.Console.Tests]SimpleTestRunner.mono_ios_set_summary(string)' requires marshalling that is not yet supported by this compiler.
at SimpleTestRunner.mono_ios_set_summary(String value)
at SimpleTestRunner.<Main>d__5.MoveNext() in /_/src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs:line 97
at SimpleTestRunner.<Main>(String[] args)
This surfaced after #125437 (merged 2026-07-02) enabled NativeAOT library tests on Apple mobile in runtime-extra-platforms. It is a stable, reproducing signature: observed on the source build 1493986 and again on the follow-up build 1494308 (Helix job 5f2fd0c4-e5cb-4456-963f-e105fa228f7b) on the same leg. The [System.Console.Tests] assembly qualifier in the message varies per work item, so the signature below omits it and matches all affected assemblies.
Error Message
{
"ErrorMessage": "mono_ios_set_summary(string)' requires marshalling that is not yet supported by this compiler.",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Note
This issue was generated by an AI agent (GitHub Copilot, ci-failure-scan workflow). Filed by ci-failure-scan (detection only); mitigation is handled separately by ci-failure-fix.
Note
🔒 Integrity filter blocked 1 item
The following item was blocked because it doesn't meet the GitHub integrity level.
- #114222
search_issues: 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 CI Outer-Loop Failure Scanner · ● 11M · ◷
Report
| Build | Repository | Test | Pull Request |
|---|---|---|---|
| 1499654 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130328 |
| 1500276 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130269 |
| 1499581 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130360 |
| 1497883 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130168 |
| 1496784 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130292 |
| 1496783 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130168 |
| 1494859 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution | #130232 |
| 1494829 | dotnet/runtime | System.Net.Security.Unit.Tests.WorkItemExecution |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 3 | 8 | 8 |
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
Marshal mono_ios_* string args as UTF-8 for NativeAOT (ILC) compatibi…
JulieLeeMSFT commentedon Jul 7, 2026
cc @kotlarmilos.
Fix Apple NativeAOT test harness crash from string P/Invoke marshalli…
Fix Apple NativeAOT test harness crash from string P/Invoke marshalli…