Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
There appears to be an issue with memory consumption under the hood when using QEMU with Rust cargo:
rust-lang/cargo#10583.
This is causing the CI wheel workflow to run out of memory and fail for QEMU-based jobs, e.g.:
https://github.com/Qiskit/qiskit-terra/actions/runs/3244845622/jobs/5322060193#step:6:1964
Due to this issue the original release of Terra 0.22.0 never actually produced wheels for Linux aarch64, ppc64le, and s390x. A separate branch has been created to manually retrigger the 0.22.0 release wheel jobs, which have now completed successfully (also used in validating the changes in this PR).
https://github.com/Qiskit/qiskit-terra/compare/0.22.0...Qiskit:qiskit-terra:dnm-non-x86-64-wheels-retry?expand=1
Details and comments
From the discussion on the linked issue, the workaround is to tell cargo to use the Git executable directly, rather than
libgit2
.Edit:
As noted by @mtreinish below, setting
CARGO_NET_GIT_FETCH_WITH_CLI=true
in thepyproject.toml
changes the behavior to use the Git executable for all Linux configurations, including x64.