Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use macos-14 runners #3985

Merged
merged 2 commits into from
Mar 23, 2024
Merged

ci: use macos-14 runners #3985

merged 2 commits into from
Mar 23, 2024

Conversation

davidhewitt
Copy link
Member

This PR proposes moving to arm macOS runners for CI, as they are faster than the x86_64 ones. We are having some aborts in clippy macOS job and I wonder if this change will also sweep that problem under the rug.

For the full build matrix I stuck with x86_64 runners, as I think not all Python versions in our matrix currently support arm. I just added arm job for Python 3.12 for now. We can update that in future.

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Mar 23, 2024
@@ -119,7 +119,7 @@ jobs:
rust-target: "x86_64-unknown-linux-gnu",
}
name: clippy/${{ matrix.platform.rust-target }}/${{ matrix.rust }}
continue-on-error: ${{ matrix.platform.rust != 'stable' }}
continue-on-error: ${{ matrix.rust != 'stable' }}
Copy link
Member Author

Choose a reason for hiding this comment

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

While updating I noticed that this setting was wrong; this is why the macOS aborts in CI are not blocking pull requests.

Comment on lines 165 to 166
python-architecture: "x64",
rust-target: "aarch64-apple-darwin",
Copy link
Member

Choose a reason for hiding this comment

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

Why "x64" and "aarch64"?

Copy link
Member Author

Choose a reason for hiding this comment

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

An oversight from me that probably needs correcting 👀

Copy link
Member Author

Choose a reason for hiding this comment

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

Based on the filenames at https://github.com/actions/python-versions/releases, I think this needs to be arm64

@davidhewitt
Copy link
Member Author

Architecture: arm64 was a good spot; it looks like that indeed is now using the system Python (presumably leaving x64 had left it to run under rosetta). The macOS-14 builds are now the fastest ones in the build matrix!

I'm going to proceed to merge this both for the speedups and also so that clippy-on-macos stops being red.

@davidhewitt davidhewitt added this pull request to the merge queue Mar 23, 2024
Merged via the queue into PyO3:main with commit aeb74c7 Mar 23, 2024
43 checks passed
@davidhewitt davidhewitt deleted the macos-clippy branch March 23, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants