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

Update macOS x86_64 wheel build CI runner to 10.13 (backport #13470) #13550

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 10, 2024

Summary

Github actions has deprecated their macOS 10.12 CI runner and will be removing it in December, 2024. We were using this macOS runner because our target OS version for intel mac is 10.12. However, with this enviornment being removed by Github we must upgrade to continue running the jobs.

This commit does not bump the MACOSX_DEPLOYMENT_TARGET environment variable (which is used to set the target OS version for intel macs) though, because we should test if we can build it compatibility mode from a newer version of macOS. If this fails then we can bump this to 10.13 in a subsequent commit on this PR and add an upgrade release note to document the change.

Details and comments
This is an automatic backport of pull request #13470 done by Mergify.

* Update macOS x86_64 wheel build CI runner to 10.13

Github actions has deprecated their macOS 10.12 CI runner and will be
removing it in December, 2024. We were using this macOS runner because
our target OS version for intel mac is 10.12. However, with this
enviornment being removed by Github we must upgrade to continue running
the jobs.

This commit does not bump the MACOSX_DEPLOYMENT_TARGET environment
variable (which is used to set the target OS version for intel macs)
though, because we should test if we can build it compatibility
mode from a newer version of macOS. If this fails then we can bump this
to 10.13 in a subsequent commit on this PR and add an upgrade release
note to document the change.

* Fix macOS deployment target config in cibuildwheel

Looking at the 1.3.0 release build the build failed during the audit
stage checking the shared object file that was built. This was failing
because the macOS target version in the binary was 10.12 but the
environment variable to override the default target of 10.9 was not
getting set properly. We set this in the pyproject.toml but it is
getting overridden by the PGO settings via CIBW_ENVIRONMENT in the
github actions config. If you look at the recent builds we were
publishing 10.9 target wheels on pypi despite documenting we target
10.12. The CI job logs also show that env variable is never being
set during the cibuildwheel process.

The release of rust 1.83 in the last 24 hrs probably is what changed
the output here causing the failure, although rust was supposed to
raise it's minimum target to 10.12 in 1.74 [1] something probably
changed in the release today which is tripping up the audit now.

This PR updates the CI configuration as was done to hotfix the
deployment job temporarily during the 1.3.0 release process [2]
to ensure we're setting our macOS deployment target correctly on
x86_64 macOS builds to 10.12.

[1] https://blog.rust-lang.org/2023/09/25/Increasing-Apple-Version-Requirements.html
[2] https://github.com/Qiskit/qiskit/actions/runs/12075613320

---------

Co-authored-by: Julien Gacon <[email protected]>
(cherry picked from commit 17648eb)
@mergify mergify bot requested a review from a team as a code owner December 10, 2024 17:31
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@github-actions github-actions bot added type: qa Issues and PRs that relate to testing and code quality ci: test wheels Run the wheel-build scripts as an additional CI run for this PR labels Dec 10, 2024
@github-actions github-actions bot added this to the 1.3.1 milestone Dec 10, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12261523897

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 88.921%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 92.73%
Totals Coverage Status
Change from base Build 12239168078: 0.02%
Covered Lines: 79080
Relevant Lines: 88933

💛 - Coveralls

@1ucian0 1ucian0 added this pull request to the merge queue Dec 11, 2024
@Cryoris Cryoris removed this pull request from the merge queue due to a manual request Dec 11, 2024
@Cryoris
Copy link
Contributor

Cryoris commented Dec 11, 2024

I removed this from the queue because it seems the wheels were skipped during CI, I'll try re-triggering this job since we want to make sure the wheels are successful 🙂

Edit: wheels are building now -- I don't know if adding the on hold label made CI re-evaluate or if someone else manually triggered them, because I didn't. If that's the case, thank you to anonymous 🙂

@Cryoris Cryoris added the on hold Can not fix yet label Dec 11, 2024
@Cryoris Cryoris added this pull request to the merge queue Dec 11, 2024
@Cryoris Cryoris removed the on hold Can not fix yet label Dec 11, 2024
@Cryoris
Copy link
Contributor

Cryoris commented Dec 11, 2024

All wheels are successfully built 👍🏻

Merged via the queue into stable/1.3 with commit bd07faa Dec 11, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: test wheels Run the wheel-build scripts as an additional CI run for this PR 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.

5 participants