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

Pin rust compiler version to 1.73 for wheel builds #11267

Merged
merged 10 commits into from
Nov 24, 2023

Conversation

mtreinish
Copy link
Member

Summary

With the release 1.74 on 11-16-2023 the minimum supported macOS version by the Rust compiler is 10.12. For the 0.45.x release series we still support macOS 10.9 (this will change in 1.0 see #10902). To facilitate still publishing wheels that will support macOS 10.9 for any future bugfix releases on 0.45.x release series (and 0.46.x too) this commit pins the rust toolchain version we use to 1.73 which is the last release that support 10.9.

Details and comments

With the release 1.74 on 11-16-2023 the minimum supported macOS version
by the Rust compiler is 10.12. For the 0.45.x release series we still
support macOS 10.9 (this will change in 1.0 see Qiskit#10902). To faciliate
still publishing wheels that will support macOS 10.9 for any future
bugfix releases on 0.45.x release series (and 0.46.x too) this commit
pins the rust toolchain version we use to 1.73 which is the last
release that support 10.9.
@mtreinish mtreinish added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog labels Nov 17, 2023
@mtreinish mtreinish added this to the 0.45.1 milestone Nov 17, 2023
@mtreinish mtreinish requested a review from a team as a code owner November 17, 2023 17:27
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@mtreinish mtreinish added the on hold Can not fix yet label Nov 17, 2023
@mtreinish
Copy link
Member Author

The macOS job failure is because of a bug in cattrs 23.2.0 which is being fixed upstream. The windows failure is because the i686 target isn't getting installed for win32. I tried adding it explicitly, I'm not sure why it's not getting installed. I'll have to take a look at the settings for the action to see if I'm missing something.

@mtreinish mtreinish removed the on hold Can not fix yet label Nov 22, 2023
@mtreinish
Copy link
Member Author

The wheel builds passed and you can see the output here: https://github.com/Qiskit/qiskit/actions/runs/6960696664/job/18940728312

I've reverted the test commit and this should be ready for review now.

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

I'm totally fine with this in principle, just minor implementation questions: we seem to be a shade inconsistent with where we set RUSTUP_TOOLCHAIN, but things all seem to be working, so it doesn't seem like much of a problem. We set RUSTUP_TOOLCHAIN="stable" in the general environment for cibuildwheel, but then override it to 1.73.0 in Linux, though I thought we were leaving the builds with stable for that?

pyproject.toml Outdated Show resolved Hide resolved
tools/install_rust.sh Outdated Show resolved Hide resolved
@jakelishman jakelishman added this pull request to the merge queue Nov 24, 2023
Merged via the queue into Qiskit:stable/0.45 with commit 310c457 Nov 24, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog Rust This PR or issue is related to Rust code in the repository type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants