Skip to content

Investigate detecting Apple VM hosts instead of hardcoding ACES VM signal #25580

Description

@dalexsoto

Summary

We currently hardcode ACES as a virtual-machine signal in CI by setting VM_VENDOR=ACES in the test stage template so that tests guarded by TestRuntime.AssertNotVirtualMachine() get ignored.

Rolf pointed out that we may be able to detect this from system_profiler instead of hardcoding it, for example from hardware information such as:

Hardware:

    Hardware Overview:

      Model Name: Apple Virtual Machine 1
      Model Identifier: VirtualMac2,1
      Model Number: VM0001LL/A
      Chip: Apple M4 Pro (Virtual)

Current state

  • tools/devops/automation/templates/tests/stage.yml sets VM_VENDOR: ACES when useACES is enabled.
  • tests/common/TestRuntime.cs uses VM_VENDOR to decide whether tests should ignore on VMs.
  • tools/devops/automation/scripts/show_bot_info.ps1 already captures system_profiler output in CI logs.

Proposed follow-up

Investigate replacing or augmenting the hardcoded VM_VENDOR=ACES path with host-side VM detection based on system_profiler output (or equivalent machine metadata), and then propagate a normalized VM signal to the relevant test processes.

Notes

  • The current hardcoded approach is fine for now.
  • The follow-up should make sure simulator/device behavior stays correct and avoid regressing non-ACES pools.

Activity

  1. added theissue type on Jun 1, 2026
  2. added this to the Future milestone on Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA feature to be implemented

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions