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

[Stable] Add scikit-learn dependency and add CI job without optional dependencies (#436) #439

Merged

Conversation

mtreinish
Copy link
Collaborator

Summary

  • 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

Details and comments

Backported from #436
(cherry picked from commit f0b68e4)

…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)
@mtreinish mtreinish added the Changelog: Bugfix Include in the Fixed section of the changelog label Jun 22, 2020
@chriseclectic chriseclectic merged commit 6579e61 into qiskit-community:stable/0.3 Jun 22, 2020
@mtreinish mtreinish deleted the stable-add-no-opt-job branch June 25, 2020 11:24
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants