Skip to content

[tests] Temporarily ignore x64 app execution under Rosetta - #27036

Merged
rolfbjarne merged 3 commits into
mainfrom
dev/rolf/skip-x64-execution
Oct 28, 2026
Merged

rolfbjarne merged 3 commits into
mainfrom
dev/rolf/skip-x64-execution

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Ignore dotnet unit tests at the shared TestBaseClass.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. 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

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
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner October 26, 2026 19:22
Copilot AI balanced review requested due to automatic review settings October 26, 2026 19:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread tests/dotnet/UnitTests/TestBaseClass.cs Resolved
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

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
Copilot AI balanced review requested due to automatic review settings October 27, 2026 10:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the temporary Rosetta unit-test execution skip.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: b4206c061195e4a2d2620c46f3b5eabd022d412a [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne
rolfbjarne enabled auto-merge (squash) October 27, 2026 23:10
@rolfbjarne rolfbjarne added the ready-to-review This PR is ready to review/merge. label Oct 27, 2026
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [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
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 1 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 21 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 20 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 20 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 20 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 20 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: b4206c061195e4a2d2620c46f3b5eabd022d412a [PR build]

@rolfbjarne
rolfbjarne merged commit b7fecc0 into main Oct 28, 2026
56 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/skip-x64-execution branch October 28, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants