Skip to content
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

test failure when the network is not reachable. #153

Open
picca opened this issue Sep 6, 2017 · 6 comments
Open

test failure when the network is not reachable. #153

picca opened this issue Sep 6, 2017 · 6 comments

Comments

@picca
Copy link

picca commented Sep 6, 2017

Hello, when building fabio, the test gives some errors because it try to download a bunch of files.

It would be nice if these test could be skipped.

thanks

Fred

@picca
Copy link
Author

picca commented Sep 6, 2017

======================================================================
ERROR: test_read (fabio.test.testmpaimage.TestMpa)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<BUILDDIR>>/python-fabio-0.5.0+dfsg/.pybuild/pythonX.Y_2.7/build/fabio/test/testmpaimage.py", line 54, in test_read
    path = UtilsTest.getimage(name + ".bz2")[:-4]
  File "/<<BUILDDIR>>/python-fabio-0.5.0+dfsg/.pybuild/pythonX.Y_2.7/build/fabio/test/utilstest.py", line 186, in getimage
    data=None, timeout=cls.timeout).read()
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>

@vallsv
Copy link
Contributor

vallsv commented Sep 6, 2017

Did you create the testimages archive?

Tests on MPA are new, then maybe i also did it wrong somewhere.

@picca
Copy link
Author

picca commented Sep 6, 2017

No , there is no test images in the pip sources. And this is now the upstream sources for python packages

@vallsv
Copy link
Contributor

vallsv commented Sep 7, 2017

All our tests are based on a butch of files provided by our www.silx.org.
We provide a way to test an archive for offline testing. But i push a patch else the script is broken #155.
You can generate it like that.

rm -rf build testimages all_testimages.json
python setup.py build test testimages
ls dist -al
-rw-r--r--  1 valls valls 257730382 Sep  7 14:31 fabio-testimages.tar.gz

I don't think it is a good idea to skip resources, while all our tests are based on this resources. If you don't have it, you don't test the library.

@picca
Copy link
Author

picca commented Sep 7, 2017

I agreed bu the size of this file is so big that I prefer not to upload this each time in Debian...
Maybe we could have a dedicated package for all the data required by the silx project.

What is possible is to run the ets with network in the ci of debian.
Because it is possible to run with network on ci.Debian.net.

For now, I unactivated the test during the build.

@kif
Copy link
Member

kif commented Dec 8, 2022

Do you still need tools to build the tarball with all images ?
Since we moved to Meson, this tool would need to be re-written (outside setup.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants