Closed ricardoV94 closed 7 months ago
Attention: 1 lines
in your changes are missing coverage. Please review.
Comparison is base (
6554683
) 52.44% compared to head (aef772d
) 67.58%. Report is 1 commits behind head on main.
@ricardoV94 I try to run this test locally on Linux. It is fails when I use pytest==8.0
and skipped with pytest==7.*
Thanks @aerubanov that's some nice info. Could you dig anything that changed with pytest 8.0?
Yeah, will try to find something relevant for this issue
Looks like in pytest 7 missing warning were ignored if some exception was raised, but pytest 8 checking them and that`s why this test fails. Relevant PR: https://github.com/pytest-dev/pytest/pull/11129
Great, how should we fix it though :D?
@ricardoV94 I see two options:
pytest.warn()
here and check for warning manualyNotImplementedInference
should be raised and call pytest.skip()
before interface.fit()
First seems slightly better? Do you want to push on this PR? If for some reason you don't have permissions you can also just open a new one
Yeah, looks like first will require less changes in the future. Will try to implement it.
@ricardoV94 could you please take a look https://github.com/pymc-devs/pymc/pull/7144?
Description
The test
test_fit_start[SVGD-mini]
stopped raising a NotImplementedInferenceError in Windows recently.https://github.com/pymc-devs/pymc/blob/f8b19a52c19dcc77aaabd6dc7464bee9304ebc58/tests/variational/test_inference.py#L206-L210
It should come from https://github.com/pymc-devs/pymc/blob/2051d0b422a10ef0477cff0b3994ede4ec7c26ad/pymc/variational/operators.py#L145-L148
It still works correctly on Linux?
Link to failing test: https://github.com/pymc-devs/pymc/actions/runs/7783900052/job/21223348962?pr=7136
Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7136.org.readthedocs.build/en/7136/