Failure signature
Xamarin.Tests.DotNetWatchTest.DotNetWatch using CoreCLR fails after applying a Hot Reload edit:
dotnet watch 🔥 C# and Razor changes applied
Unhandled exception. System.BadImageFormatException: Bad IL range.
at HotReloadTestApp.Program.DoSomething(Int32 i)
The app builds and launches successfully, receives the edit, then crashes before the watched variable changes. The test reports Timed out waiting for the variable to change.
Confirmed monitored occurrences
Total: 10 confirmed test occurrences across 2 distinct monitored PRs, 4 heads, and 4 Azure runs.
First terminal occurrence: 2026-08-25T09:11:52Z. Latest terminal occurrence: 2026-08-25T17:06:44Z.
Classification and impact
Deterministic test/source-runtime failure. The same post-edit exception reproduces on iOS and Mac Catalyst, with and without Mac Catalyst sandboxing, across multiple heads and two dependency-update PRs. Builds and app launches succeed; the failure begins after Hot Reload applies the update. Unchanged retries are not appropriate.
This blocks the affected dotnettests_ios / dotnettests_maccatalyst jobs and can keep dependency-update PR CI red.
Investigation performed
Workaround
No validated workaround is known. The CoreCLR Hot Reload edit/runtime behavior requires investigation. Do not retry unchanged heads merely to see whether the deterministic crash clears.
Azure logs and artifacts are retention-limited.
Failure signature
Xamarin.Tests.DotNetWatchTest.DotNetWatchusing CoreCLR fails after applying a Hot Reload edit:The app builds and launches successfully, receives the edit, then crashes before the watched variable changes. The test reports
Timed out waiting for the variable to change.Confirmed monitored occurrences
b956034e64eae11ea91afcec93b11996be9adbe0AcesShared 30AcesShared 21918e83b75ed8152cb415cc7627e51ce69bc3124aAcesShared 27AcesShared 93adbceca8e2a7ceb62aaf29c8d03633fd7d3fea2AcesShared 6AcesShared 14ac84fef62c4a0babd9079876486d13e12f888133AcesShared 67Total: 10 confirmed test occurrences across 2 distinct monitored PRs, 4 heads, and 4 Azure runs.
First terminal occurrence:
2026-08-25T09:11:52Z. Latest terminal occurrence:2026-08-25T17:06:44Z.Classification and impact
Deterministic test/source-runtime failure. The same post-edit exception reproduces on iOS and Mac Catalyst, with and without Mac Catalyst sandboxing, across multiple heads and two dependency-update PRs. Builds and app launches succeed; the failure begins after Hot Reload applies the update. Unchanged retries are not appropriate.
This blocks the affected
dotnettests_ios/dotnettests_maccatalystjobs and can keep dependency-update PR CI red.Investigation performed
dotnet/maciosissues separately by exact exception, test name,Bad IL, and Hot Reload component terms, then inspected candidate bodies and non-ignored comments.Workaround
No validated workaround is known. The CoreCLR Hot Reload edit/runtime behavior requires investigation. Do not retry unchanged heads merely to see whether the deterministic crash clears.
Azure logs and artifacts are retention-limited.