Skip to content

[CI] Move macOS M2 jobs off macos-m2-15 - #201231

Closed
huydhn wants to merge 2 commits into
pytorch:mainfrom
huydhn:mac-m2-27-labels
Closed

huydhn wants to merge 2 commits into
pytorch:mainfrom
huydhn:mac-m2-27-labels

Conversation

@huydhn

@huydhn huydhn commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

The self-hosted mac2-m2pro.metal fleet is shifting OS releases per pytorch/test-infra#8964. The macos-m2-15 (Sequoia) hosts are moving to macOS 26 and joining macos-m2-26, so macos-m2-15 is going away. This PR moves every job off it:

  • mac-mps.yml: drop the macos-m2-15 entry, so test_mps runs on macos-m1-15 (macOS 15) and macos-m2-26 (macOS 26). A TODO marks where to add macos-m2-27 (macOS 27) once those runners are online.
  • inductor-perf-test-nightly-macos.yml: point the matrix at macos-m2-26 and pause the nightly schedule. Manual workflow_dispatch still works.
  • trunk.yml: temporarily drop the mps entry
  • actionlint.yaml and the pr-review runner-naming list: drop macos-m2-15

macos-m2-26 has only 8 runners until the infra change moves the ~28 macos-m2-15 hosts onto it. Per review, the trunk mps shard and the perf nightly are paused rather than piled onto those 8. TODOs in both files mark what to restore once the fleet grows. macOS 15 MPS coverage continues on macos-m1-15 in mac-mps.yml.

Safe to merge now. It has to land before the macos-m2-15 hosts are moved.

@pytorch-bot

pytorch-bot Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

✅ AUTOMATED REVIEW - OUTDATED (earlier commit) - Ready for human review:

Retires the macos-m2-15 runner: its perf-smoketest and trunk mps jobs move to
macos-m2-26, its mac-mps row and actionlint entry are dropped, and nothing in
the tree still refers to macos-m2-15. The only issue is a non-blocking
runner-naming heads-up, because macos-m2-26 is already used by existing CI
(mac-mps.yml). There are no maintainer comments to address.

Findings (1):

[minor] .github/workflows/inductor-perf-test-nightly-macos.yml:54
Runner-naming heads-up: `macos-m2-26` does not follow the runner naming standard
(legacy macOS label; Apple Silicon can't be expressed in the grammar). It is
already used by mac-mps.yml, so this doesn't block. Same applies to
trunk.yml:259.

Reviewed commit: 08ddcbe (NOT the current head a2a2d3e)

Review run

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/201231

Note: Links to docs will display an error until the docs builds have been completed.

⏳ 41 Pending, 1 Unrelated Failure

As of commit a2a2d3e with merge base f9990bc (image):

🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:

  • Never trivial: agent skill tree
    • Edits .agents/skills/pr-review/ci-runner-naming.md, which .lintrunner.toml shows .claude/skills symlinks into
    • hardened-pr-review-run.yml loads that file from trusted main as PR-reviewer steering, so this edits a later reviewer's instructions
  • CI coverage
    • mac-mps.yml drops the test_mps entry on macos-m2-15, removing M2 macOS 15 MPS coverage; a human should accept that loss
  • Otherwise consistent
    • Runner swaps in trunk.yml and inductor-perf-test-nightly-macos.yml plus the actionlint.yaml removal leave no macos-m2-15 references in the tree

reason: not_trivial
Reviewed commit: 08ddcbe (NOT the current head a2a2d3e)

Inference job

🐛 Report a wrong verdict

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Oct 16, 2026
The self-hosted mac2-m2pro fleet is shifting OS releases (pytorch/test-infra#8964):
the macos-m2-15 (Sequoia) hosts move to macOS 26, so macos-m2-15 goes away.

- trunk.yml (mps), inductor-perf-test-nightly-macos.yml: macos-m2-15 -> macos-m2-26
- mac-mps.yml: drop macos-m2-15; TODO to add macos-m2-27 once those runners are online
- actionlint.yaml / pr-review runner list: drop macos-m2-15
@huydhn huydhn changed the title [CI] Move macOS M2 jobs off macos-m2-15, add macos-m2-27 MPS coverage [CI] Move macOS M2 jobs off macos-m2-15 Oct 16, 2026
@huydhn
huydhn marked this pull request as ready for review October 16, 2026 20:39
@huydhn
huydhn requested a review from a team as a code owner October 16, 2026 20:39
@huydhn
huydhn requested a review from malfet October 16, 2026 20:39
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Oct 16, 2026

@github-actions github-actions Bot 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.

Automated review of 08ddcbe: nothing blocking; ready for human review.

Retires the macos-m2-15 runner: its perf-smoketest and trunk mps jobs move to macos-m2-26, its mac-mps row and actionlint entry are dropped, and nothing in the tree still refers to macos-m2-15. The only issue is a non-blocking runner-naming heads-up, because macos-m2-26 is already used by existing CI (mac-mps.yml). There are no maintainer comments to address.

⚪ 1 non-blocking finding

{ config: "perf_smoketest", shard: 1, num_shards: 3, runner: "macos-m2-26" },

Runner-naming heads-up: macos-m2-26 does not follow the runner naming standard (legacy macOS label; Apple Silicon can't be expressed in the grammar). It is already used by mac-mps.yml, so this doesn't block. Same applies to trunk.yml:259.

This review is AI-generated and advisory. Each new automated review replaces the previous one.

@pytorch-bot pytorch-bot Bot added ready for review Automated review passed, ready for a final review by a maintainer. and removed in progress PR is being worked on by the author, until the automated review accepts it labels Oct 17, 2026

@malfet malfet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but may be just pause the workflows for now, as M2-26 only have 6 runners, while m2-15 have about 30+?

@huydhn

huydhn commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

LGTM, but may be just pause the workflows for now, as M2-26 only have 6 runners, while m2-15 have about 30+?

Sounds good, I can temporarily disable m2 jobs on trunk and perf nightly and reenable it after the infra change is in place.

macos-m2-26 has only 8 runners until the macos-m2-15 hosts move over
(pytorch-gha-infra#1558, pytorch/test-infra#8964). Rather than pile the trunk
mps shard and the 6-shard perf nightly onto them, drop the trunk mps entry and
comment out the perf nightly schedule, with TODOs to restore both afterwards.
@huydhn

huydhn commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'CI only tweak. Lint jobs have passed'

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Oct 20, 2026
…PS coverage (#201517)

Follow-up to #201231. The `mac2-m2pro.metal` fleet shift in pytorch/test-infra#8964 is deployed:

- `macos-m2-26` (macOS 26) has 28 runners, up from 8
- `macos-m2-27` (macOS 27) has 8 runners

This undoes the temporary pause from #201231 and adds macOS 27 coverage:

- `trunk.yml`: re-add the `mps` shard on `macos-m2-26`
- `inductor-perf-test-nightly-macos.yml`: restore the nightly `schedule` (`0 7 * * *`)
- `mac-mps.yml`: add `test_mps` on `macos-m2-27`, so MPS runs on `macos-m1-15`, `macos-m2-26` and `macos-m2-27` (macOS 15 / 26 / 27)
- `actionlint.yaml` and the pr-review runner-naming list: add `macos-m2-27`

As of 2026-10-20 04:00 UTC, all 28 `macos-m2-26` and 8 `macos-m2-27` runners are registered and online.

**macOS 27.0.0 fix.** The new `macos-m2-27` job surfaced a real bug: `test_mm_stride_zero` failed on the macOS 27.0.0 runners, with 960/1024 elements wrong. That's the #180201 symptom, where MPSGraph matmul with stride-0 inputs computes only every 16th row. Apple fixed it in 26.4, but it's back in 27.0.0, and 27.0.1 and 27.2 are fine (thanks @Isalia20). `mm` only applied the contiguify workaround on macOS < 26.4. This PR adds a patch-level `MacOSVersion::MACOS_27_0_1` and widens the gate to `< 26.4 || 27.0.0`. Behaviour on every other macOS version is unchanged, and only `mm` with non-complex stride-0 inputs is affected.

Pull Request resolved: #201517
Approved by: https://github.com/malfet, https://github.com/Isalia20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged ready for review Automated review passed, ready for a final review by a maintainer. topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants