Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Studio tests: pin the host machine in the torch ceiling freeze test
The darwin row stands for Intel macOS, but the test read the real
platform.machine(). Since #18659 Apple Silicon keeps its torch at any
release, so on an arm64 macOS runner the row froze and failed.
  • Loading branch information
danielhanchen committed Nov 26, 2026
commit 41399ebc2b2aaa0fd326747818e1bf1dc31f1663
3 changes: 3 additions & 0 deletions studio/backend/tests/test_cu130_repair_torch_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ def test_core_update_freezes_only_torch_past_the_released_ceiling(
monkeypatch, tmp_path, mod, platform, resident, pinned
):
monkeypatch.setattr(mod.sys, "platform", platform)
# x64 hosts: the darwin row is Intel macOS. Apple Silicon keeps its torch at any release
# (test_macos_core_update_torch_freeze.py), so the real machine must not leak in from an arm64 runner.
monkeypatch.setattr(mod.platform, "machine", lambda: "x86_64")
monkeypatch.setattr(mod, "_is_win_arm64_interpreter", lambda: False)
monkeypatch.setattr(mod, "_restrict_to_current_user", lambda path: True)
monkeypatch.setattr(mod, "_resident_torch_release", lambda: resident)
Expand Down