Repository navigation
[tests] Temporarily ignore x64 app execution under Rosetta - #27036
Conversation
Ignore dotnet unit tests at the shared CanExecute check when an x64 executable would run through Rosetta, pointing to tracking issue #27034. Intermittent runtime startup hangs are blocking PR validation while the upstream fix is pending. Keep native Intel execution and ARM64-capable universal apps on native ARM64 test runners enabled. Also cover translated x64 test runners while preserving the existing Windows and simulator behavior. Co-authored-by: Copilot App <[email protected]> Copilot-Session: d6bbfaee-7acb-41c6-ad60-06713a457a09
There was a problem hiding this comment.
🟡 Changes recommended
Existing x64 launch paths bypass the new guard and remain exposed to the startup hang.
1 open issue
What changed in this PR
Adds a temporary Rosetta execution guard to the shared .NET test infrastructure while the runtime fix tracked in #27034 is pending.
Changes:
- Marks affected macOS and Mac Catalyst x64 execution cases ignored through
CanExecute. - Preserves native Intel execution, ARM64-capable universal apps on native ARM64 runners, and existing Windows and simulator behavior.
- Links the ignore message to the tracking issue for eventual removal.
| File | Description |
|---|---|
| tests/dotnet/UnitTests/TestBaseClass.cs | Adds the architecture-aware Rosetta ignore to CanExecute. |
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Route the native-reference project tests and ExecuteProjectWithMagicWordAndAssert through the platform/RID-aware execution helper so they cannot bypass CanExecute and the temporary ignore for #27034. Also check the evaluated runtime identifier before desktop dotnet run, dotnet test, and dotnet watch launch an app. Keep mobile launch flows and existing explicitly guarded execution paths unchanged. Co-authored-by: Copilot App <[email protected]> Copilot-Session: d6bbfaee-7acb-41c6-ad60-06713a457a09
Remove the evaluated-RID checks added to dotnet run, dotnet test, and dotnet watch. These tests do not explicitly select an x64 runtime identifier and default to the host architecture, so they do not need the temporary Rosetta guard. Retain the platform/RID-aware execution calls for the explicit native-reference cases and shared project execution helper. Co-authored-by: Copilot App <[email protected]> Copilot-Session: d6bbfaee-7acb-41c6-ad60-06713a457a09
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #b4206c0] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 217 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |

Ignore dotnet unit tests at the shared
TestBaseClass.CanExecutecheck when an x64 executable would run through Rosetta, pointing to tracking issue #27034. Intermittent runtime startup hangs are blocking PR validation while the upstream fix is pending.Keep native Intel execution and ARM64-capable universal apps on native ARM64 test runners enabled. Also cover translated x64 test runners while preserving the existing Windows and simulator behavior. Affected cases are marked ignored rather than merely returning false from the execution check.
This is a temporary CI mitigation, not the runtime root-cause fix. Track removal of the ignore after the fixed runtime is adopted and verified in #27034; the upstream fix is dotnet/runtime#136289.
Related: #27034
🤖 Pull request created by Copilot