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 Numpy to less than 1.25 in CI #10306

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

jakelishman
Copy link
Member

Summary

We are not (should not be) fundamentally incompatible with Numpy 1.25, there are just new deprecation warnings and seemingly some behavioural changes that are causing flakiness in the isometry CI. This temporarily pins Numpy to allow people to continue working while we address the root cause.

Details and comments

Workaround #10305.

We are not (should not be) fundamentally incompatible with Numpy 1.25,
there are just new deprecation warnings and seemingly some behavioural
changes that are causing flakiness in the isometry CI.  This temporarily
pins Numpy to allow people to continue working while we address the root
cause.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: None Do not include in changelog labels Jun 19, 2023
@jakelishman jakelishman requested a review from a team as a code owner June 19, 2023 09:54
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5310418111

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 10 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.008%) to 85.967%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 93.76%
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 1 90.18%
crates/qasm2/src/lex.rs 2 91.39%
crates/qasm2/src/parse.rs 6 97.58%
Totals Coverage Status
Change from base Build 5294428507: -0.008%
Covered Lines: 71475
Relevant Lines: 83142

💛 - Coveralls

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

This looks fine to me, it does make me think that maybe we should also move the symengine pin to the constraints file too, because we're still pinning symengine<0.10 in the requirements.txt

@mtreinish mtreinish added this pull request to the merge queue Jun 19, 2023
@jakelishman
Copy link
Member Author

I think we left symengine in the requirements.txt file because we knew we were going to release with it in place, and symengine 0.10 breaks core functionality. When I made this PR, I thought it'd be fairly trivial to track down the issues and get them all fixed, but there seem to be big issues with Isometry that are far more difficult to fix.

@jakelishman
Copy link
Member Author

Most of the Numpy 1.25 CI failures are just extra deprecation warnings, and we'd have been fine to release with them. The isometry stuff is producing completely invalid decompositions, though, which we can't release with. We may need to upgrade the constraint to a requirement if we can't get it sorted.

Merged via the queue into Qiskit:main with commit b8a4448 Jun 19, 2023
mergify bot pushed a commit that referenced this pull request Jun 19, 2023
We are not (should not be) fundamentally incompatible with Numpy 1.25,
there are just new deprecation warnings and seemingly some behavioural
changes that are causing flakiness in the isometry CI.  This temporarily
pins Numpy to allow people to continue working while we address the root
cause.

(cherry picked from commit b8a4448)
@jakelishman jakelishman deleted the pin-numpy-less-1.25 branch June 19, 2023 13:19
mtreinish added a commit that referenced this pull request Jun 19, 2023
* Pin Numpy to less than 1.25 in CI (#10306)

We are not (should not be) fundamentally incompatible with Numpy 1.25,
there are just new deprecation warnings and seemingly some behavioural
changes that are causing flakiness in the isometry CI.  This temporarily
pins Numpy to allow people to continue working while we address the root
cause.

(cherry picked from commit b8a4448)

* Try pinning python patch version to fix macOS 3.17 failure

The macOS python 3.7 job has started failing with a cryptic pip error.
It looks like pip is failing to resolve package versions correctly for
python-cosntraint when installing terra. This commit is attempting to
avoid the failure by pinning the python version we install, because the
image updated the version used since the last successful job.

* Pin only macOS Python version

---------

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
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 stable backport potential The bug might be minimal and/or import enough to be port to stable 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.

4 participants