Skip to content

Add macOS lint job to lint.yml#1859

Closed
aditvenk wants to merge 1 commit intomainfrom
aditvenk/stack/23
Closed

Add macOS lint job to lint.yml#1859
aditvenk wants to merge 1 commit intomainfrom
aditvenk/stack/23

Conversation

@aditvenk
Copy link
Copy Markdown
Contributor

@aditvenk aditvenk commented Mar 28, 2026

@aditvenk aditvenk requested review from jansel, malfet and oulgen March 28, 2026 02:37
@aditvenk aditvenk marked this pull request as draft March 28, 2026 02:42
@aditvenk aditvenk changed the base branch from aditvenk/stack/22 to main March 28, 2026 02:42
@aditvenk aditvenk force-pushed the aditvenk/stack/23 branch from 0c9c085 to d7cf4f9 Compare March 28, 2026 02:42
@aditvenk aditvenk changed the base branch from main to aditvenk/stack/22 March 28, 2026 02:43
@aditvenk aditvenk marked this pull request as ready for review March 28, 2026 02:43
@aditvenk aditvenk marked this pull request as draft March 28, 2026 02:44
@aditvenk aditvenk changed the base branch from aditvenk/stack/22 to main March 28, 2026 02:44
@aditvenk aditvenk force-pushed the aditvenk/stack/23 branch from d7cf4f9 to ed5d5f1 Compare March 28, 2026 02:45
@aditvenk aditvenk marked this pull request as ready for review March 28, 2026 02:45
Copy link
Copy Markdown
Contributor

@oulgen oulgen left a comment

Choose a reason for hiding this comment

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

I meant test ci not lint ci

@aditvenk aditvenk marked this pull request as draft March 28, 2026 04:44
@aditvenk aditvenk force-pushed the aditvenk/stack/23 branch from ed5d5f1 to 645e8b3 Compare March 28, 2026 04:44
@aditvenk aditvenk changed the title Add macOS CI workflow for lint Add macOS lint job to lint.yml Mar 28, 2026
@aditvenk aditvenk marked this pull request as ready for review March 28, 2026 04:45
Add a lint-macos job that runs pre-commit on the macos-m2-26
self-hosted runner. Installs PyTorch from the CPU/MPS nightly index
(no CUDA on macOS) and uses [dev,pallas-cpu] extras (no cute-cu12).

stack-info: PR: #1859, branch: aditvenk/stack/23
@aditvenk aditvenk marked this pull request as draft March 28, 2026 04:47
@aditvenk aditvenk force-pushed the aditvenk/stack/23 branch from 645e8b3 to f83bd0f Compare March 28, 2026 04:47
@aditvenk aditvenk marked this pull request as ready for review March 28, 2026 04:48
@aditvenk
Copy link
Copy Markdown
Contributor Author

I meant test ci not lint ci

Linting on macOS can have failures not seen on Linux due to non-availability of certain packages like Triton/Cutlass. Running a lint job on mac is very quick (< 20s), so I'd suggest to keep it.

I have modified the approach to not introduce a new yml, and instead modify lint.yml.

The change to matrix.json & test.yml is in the future PR in the stack: #1862

Copy link
Copy Markdown
Contributor

@oulgen oulgen left a comment

Choose a reason for hiding this comment

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

I dont think we need lint for macos. It is a subset of the full lint

@aditvenk
Copy link
Copy Markdown
Contributor Author

I dont think we need lint for macos. It is a subset of the full lint

If we were to add a dependency on some other package that does not exist on Mac, then we would need to update the ignore modules list. Having it in CI will catch such issues. But I can close this Pr if we are okay if finding such issues lazily

@aditvenk
Copy link
Copy Markdown
Contributor Author

Closing. We can add lint job for mac in the future if needed. Test CI tracked by #1862

@aditvenk aditvenk closed this Mar 28, 2026
fi

lint-macos:
runs-on: macos-m2-26
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.

If you'll need to run anything, please take a stock macos, or at the very least macos-m2-15, because there are only few 26 out there

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'd prefer that too, but unfortunately MetalPerformancePrimitives (MPP) which will be the lowering target for matmul, reduction (in future PRs) is available only from macos-26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants