On Fri, 17 Dec 2021 16:34:02 +0100 Andreas Tille <andr...@an3as.eu> wrote: > Am Thu, Dec 16, 2021 at 09:10:45PM +0100 schrieb Andreas Tille: > > Hi Étienne, > > > > Am Fri, Sep 17, 2021 at 11:11:03PM +0200 schrieb Étienne Mollier: > > > While working on #983840, I needed to do some testing of the > > > package, and notice examples in doc/examples/. Maybe they could > > > be a source of inspiration for building an autopkgtest test > > > suite? > > > > I think the idea itself is good but the realisation has some flaws. > > I've commited some code implementing the idea to Git but it seems we > > need to exclude lots of those examples as you can see for instance here > > in the Salsa CI > > > > https://salsa.debian.org/med-team/dipy/-/jobs/2285615 > > > > May be running the build-time nosetest is the easier approach to an > > autopkgtest. > > Thanks for porting to pytest. I've added the pytest test to autopkgtest > but all tests are failing: > > https://salsa.debian.org/med-team/dipy/-/pipelines/328590 > > Any idea what might be wrong here?
I ran it locally, for me it chokes with: | autopkgtest [18:58:22]: test command1: xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" sh debian/tests/run-unit-test | autopkgtest [18:58:22]: test command1: [----------------------- | Skip quick_start.py | Run brain_extraction_dwi.py | 100%|██████████| 589/589 [00:52<00:00, 11.30 MB/s] | Skip reconst_csa_parallel.py | Skip reconst_csa.py | Skip reconst_csd_parallel.py | Skip reconst_csd.py | Run reconst_forecast.py | /usr/lib/python3/dist-packages/dipy/viz/__init__.py:31: UserWarning: You do not have FURY installed. Some visualization functions might not work for you. For installation instructions, please visit: https://fury.gl/ | warnings.warn( | Traceback (most recent call last): | File "/tmp/autopkgtest.QurZey/autopkgtest_tmp/examples/reconst_forecast.py", line 16, in <module> | from dipy.viz import actor, window | ImportError: cannot import name 'actor' from 'dipy.viz' (/usr/lib/python3/dist-packages/dipy/viz/__init__.py) On checking, it stems from the fact that fury (python module) that dipy needs is not in (test-)depends, and neither is it in the archive. Probably other tests also are missing some or the other module. I also see a couple of circular imports that we need to fix. This is my understanding ^^ so maybe packaging fury will help. Regards, Nilesh
signature.asc
Description: PGP signature