Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Add scikit-learn dependency and add CI job without optional dependencies #436

Merged
merged 3 commits into from
Jun 22, 2020

Conversation

mtreinish
Copy link
Collaborator

Summary

This commit adds a new ci job for running ignis tests without any
optional dependencies. There are several optional dependencies which do
not not always get installed with ignis. They are needed to enable
optional features but shouldn't be required, we've had a slew of recent
bugs around accidentally requiring these optional dependencies (see
issues #429, #422, and #312). None of these were caught in CI because we
always install all optional dependencies in CI test jobs. By adding a
new job which explicitly installs the bare minimum we're emulating what
a user does when they install just ignis.

As part of this a missing dependency was added to the requirements list.
Ignis has a hard dependency on scikit learn for the measurement
discriminators, but this was never explicitly listed. This was never
caught because the test jobs were always installing it.

Details and comments

@mtreinish mtreinish added Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential labels Jun 22, 2020
This commit adds a new ci job for running ignis tests without any
optional dependencies. There are several optional dependencies which do
not not always get installed with ignis. They are needed to enable
optional features but shouldn't be required, we've had a slew of recent
bugs around accidentally requiring these optional dependencies (see
issues qiskit-community#429, qiskit-community#422, and qiskit-community#312). None of these were caught in CI because we
always install all optional dependencies in CI test jobs. By adding a
new job which explicitly installs the bare minimum we're emulating what
a user does when they install just ignis.

As part of this a missing dependency was added to the requirements list.
Ignis has a hard dependency on scikit learn for the measurement
discriminators, but this was never explicitly listed. This was never
caught because the test jobs were always installing it.
@mtreinish mtreinish changed the title Add scikit-learn hard dependency and add CI job without optional dependencies Add scikit-learn dependency and add CI job without optional dependencies Jun 22, 2020
@chriseclectic chriseclectic merged commit f0b68e4 into qiskit-community:master Jun 22, 2020
@mtreinish mtreinish deleted the add-no-opt-job branch June 22, 2020 16:22
mtreinish added a commit to mtreinish/qiskit-ignis that referenced this pull request Jun 22, 2020
…ies (qiskit-community#436)

* Add scikit-learn dependency and add CI job without optional deps

This commit adds a new ci job for running ignis tests without any
optional dependencies. There are several optional dependencies which do
not not always get installed with ignis. They are needed to enable
optional features but shouldn't be required, we've had a slew of recent
bugs around accidentally requiring these optional dependencies (see
issues qiskit-community#429, qiskit-community#422, and qiskit-community#312). None of these were caught in CI because we
always install all optional dependencies in CI test jobs. By adding a
new job which explicitly installs the bare minimum we're emulating what
a user does when they install just ignis.

As part of this a missing dependency was added to the requirements list.
Ignis has a hard dependency on scikit learn for the measurement
discriminators, but this was never explicitly listed. This was never
caught because the test jobs were always installing it.

* Don't install cvxopt in no-opt job

* Add job name

* Update tox.ini to point to remove master terra for stable branch

(cherry picked from commit f0b68e4)
chriseclectic pushed a commit that referenced this pull request Jun 22, 2020
…ies (#436) (#439)

* Add scikit-learn dependency and add CI job without optional deps

This commit adds a new ci job for running ignis tests without any
optional dependencies. There are several optional dependencies which do
not not always get installed with ignis. They are needed to enable
optional features but shouldn't be required, we've had a slew of recent
bugs around accidentally requiring these optional dependencies (see
issues #429, #422, and #312). None of these were caught in CI because we
always install all optional dependencies in CI test jobs. By adding a
new job which explicitly installs the bare minimum we're emulating what
a user does when they install just ignis.

As part of this a missing dependency was added to the requirements list.
Ignis has a hard dependency on scikit learn for the measurement
discriminators, but this was never explicitly listed. This was never
caught because the test jobs were always installing it.

* Don't install cvxopt in no-opt job

* Add job name

* Update tox.ini to point to remove master terra for stable branch

(cherry picked from commit f0b68e4)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants