-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
Fixed JAX solver compatibility test #4323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me
I think this came about as a migration done incorrectly in 68f71f2? I think we should indeed test that the JAX version is compatible (i.e., |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4323 +/- ##
========================================
Coverage 99.46% 99.46%
========================================
Files 289 289
Lines 22146 22146
========================================
Hits 22027 22027
Misses 119 119 ☔ View full report in Codecov by Sentry. |
While I agree that the change was done poorly in 68f71f2, I am still in favor of removing the test. Installing the correct version of jax is the job of the build system, not the unit tests. If we need to check for it, then it should be done in the build process not in the tests after the build is done |
Okay, fair enough – we have |
Oh, just wait for me before you merge. |
This should be the correct test, @santacodes. |
Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com>
Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
* fixed JAX solver compatibility test * removed jax compatibility test * Update tests/unit/test_util.py Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com> * style: pre-commit fixes * Update tests/unit/test_util.py Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com> * style: pre-commit fixes * Update tests/unit/test_util.py Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com> --------- Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
Description
I caught this while running
nox -s unit
and also in CI here.Instead of checking the compatibility of the JAX solver the test was checking if JAX solver was present and logging
JAX is not installed
, when it should log something likeJAX is compatible
when the check passes inside theskipif
marker of pytest.Fixes # (issue)
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: