Repository navigation
Studio tests: pin the host machine in the torch ceiling freeze test - #19772
Merged
Merged
Conversation
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.
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Apple Silicon macOS runners,
studio/backend/tests/test_cu130_repair_torch_specs.py::test_core_update_freezes_only_torch_past_the_released_ceiling[darwin-2.13.0-False]fails. For example, the macos-26 leg of the cross-platform staging run for #19762:The test passes on Linux, which is why the normal CI shards never show it.
Cause
_FreezeNewTorchForCoreUpdatekeep an Apple Silicon install's torch at any release:sys.platform == "darwin" and platform.machine() == "arm64".sys.platformper row but read the realplatform.machine(). Its darwin row expects no freeze, so the row really means Intel macOS.x86_64and the row passes. On an arm64 macOS runner it isarm64, the freeze engages, and the row fails.The code is correct, and Apple Silicon's freeze is already covered by
test_macos_core_update_torch_freeze.py. The test is host-dependent.Fix
Pin
platform.machine()tox86_64in this test, so every row describes an x64 host and the darwin row is Intel macOS on any runner. No product code changes.Verification
To reproduce an Apple Silicon host on Linux, a small plugin sets
platform.machine = lambda: "arm64"before the session:1 failed, 57 passed: the samedarwin-2.13.0-Falserow as the macos-26 job58 passed58 passed58 passedSabotage: making the freeze apply to every macOS machine (dropping the
platform.machine() == "arm64"check instudio/install_python_stack.py) fails the darwin row on this branch. The row therefore still guards that Intel macOS is not frozen.#19762 edits the same parametrize list. Its own macOS failure is this one, so it will pass once this lands.