Repository navigation
CI: drop three macOS legs that assert nothing a Linux runner does not - #7974
Merged
Merged
Conversation
GitHub caps concurrent macOS jobs at 5 per account, shared across every macos-* label and across unslothai/unsloth and unslothai/unsloth-zoo. That cap is the binding constraint on CI latency here: the 60-job total is not close to reached (measured 35 running, 3 of them macOS) while 15 macOS jobs sat queued behind 5 slots. It was the slow leg on the last two desktop releases. These three legs cost a slot each and buy no signal a Linux leg does not already produce: studio-export-capability-ci.yml runs one command, pytest tests/test_export_capability.py. Every test in that file goes through _patch(), which monkeypatches _has_torch, get_device and is_apple_silicon. Nothing touches Metal, MLX or an Apple binary, and studio-backend-ci.yml already runs the same file on ubuntu-latest via pytest tests/. cross-platform-parity-ci.yml runs source-text assertions: tests/python/test_cross_platform_parity.py is Path.read_text() plus regex over install.sh, install.ps1 and setup.ps1, with zero platform., sys.platform, darwin or uname references. The matrix exists for the Windows cp1252 default encoding, which the workflow header says outright; the macOS row asserted what the Linux row already asserts. mlx-ci.yml keeps every Metal-bound step and stops re-running two fully spoofed test files. test_hardware_dispatch_matrix.py and test_is_mlx_dispatch_gate.py use monkeypatched profiles and a MetaPathFinder that blocks import mlx.core, so they assert identically on any host, and studio-backend-ci.yml runs both on ubuntu-latest. Their paths triggers are removed too, so a change to only those files no longer boots a Mac to run nothing related. test_mlx_training_worker_behaviors.py stays: it is pure ast.parse and would run anywhere, but no Linux job currently claims it. No assertion is lost. Extracting the test-command set from every run: body before and after gives an identical set apart from those two spoofed files. macOS jobs in this repo: 33 -> 31.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 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.
Summary
GitHub caps concurrent macOS jobs at 5 per account, shared across every
macos-*label and acrossunslothai/unslothandunslothai/unsloth-zoo. Enterprise is the only plan that raises it.That cap is the binding constraint on CI latency here. Measured during a busy period: 35 jobs running against a 60-job total cap (19 linux, 13 windows, 3 macOS) while 15 macOS jobs sat queued behind 5 slots. The total cap is nowhere near reached, so raising overall concurrency would change nothing; macOS is the one genuinely scarce resource, and it was the slow leg on the last two desktop releases.
This PR removes three macOS legs that cost a slot each and produce no signal a Linux leg does not already produce.
The three legs
studio-export-capability-ci.ymlruns exactly one command,pytest tests/test_export_capability.py. Every test in that file goes through_patch(), which monkeypatches_has_torch,get_deviceandis_apple_silicon. Nothing touches Metal, MLX or any Apple binary.studio-backend-ci.ymlalready runs the same file onubuntu-latestas part ofpytest tests/, and does not deselect it.cross-platform-parity-ci.ymlruns source-text assertions.tests/python/test_cross_platform_parity.pyisPath.read_text()plus regex overinstall.sh/install.ps1/setup.ps1, with zeroplatform.,sys.platform,darwinorunamereferences. The matrix exists for the Windows cp1252 default encoding, which the workflow header states outright. The macOS row asserted what the Linux row already asserts.mlx-ci.ymlkeeps every Metal-bound step and stops re-running two fully spoofed test files.test_hardware_dispatch_matrix.pyandtest_is_mlx_dispatch_gate.pyuse monkeypatched profiles plus aMetaPathFinderthat blocksimport mlx.core, so they assert identically on any host, andstudio-backend-ci.ymlruns both onubuntu-latestin its "Hardware-spoof tests" step. Theirpaths:triggers are removed too, so a change touching only those files no longer boots a Mac to run nothing related.test_mlx_training_worker_behaviors.pystays on the Mac. It is pureast.parseand would run anywhere, but no Linux job currently claims it, so removing it would have been real coverage loss.What is unchanged
Every genuinely Apple-bound step is untouched: real
_IS_MLXverification, the realmlxmodule imports, the real LoRA training round-trip,assert-llama-loads.sh, codesigning and notarization.Test plan
run:body before and after. The sets are identical apart from the two spoofed files, which is the intended changestudio-backend-ci.ymltriggers ontests/**, so both moved files still run onubuntu-latestwhen changedFollow-up
A second PR will consolidate the duplicated macOS smoke preamble. A byte-identical 5-step block (checkout, setup-node, setup-python,
install.sh --local --no-torch,assert-llama-loads.sh) currently repeats across 7 job definitions, so astudio/**PR runs the same install onmacos-14up to 7 times concurrently. Keeping that restructure separate so these deletions can land and be judged on their own.