Source: astropy-healpix
Version: 0.2-4
Severity: important
User: debian...@lists.debian.org
Usertags: flaky

While inspecting regressions in autopkgtest results¹, I noticed that
your package failed multiple times²³ without apparent changes and passed
later again, all with a very similar if not equal error (copied below).
The last one was involved in delaying the migration of pytest.

Could you please investigate and make your autopkgtest more robust?
Please contact me if you need help and you think I can provide that (I
am not subscribed to this bug).

Recent discussion of gating migration by autopkgtests on debian-devel⁴
noted that if this is going to work, and in particular if we are going
to *block* migration when it causes autopkgtest regressions rather than
merely delaying it, intermittent autopkgtest failures are likely to have
to be considered RC due to their impact on the tested package's
dependencies; for now I've filed it as important.

Paul

¹ https://ci.debian.net/packages/a/astropy-healpix
²
https://ci.debian.net/data/autopkgtest/unstable/amd64/a/astropy-healpix/515744/log.gz
³
https://ci.debian.net/data/autopkgtest/testing/amd64/a/astropy-healpix/518587/log.gzhttps://lists.debian.org/debian-devel/2018/05/msg00061.html

https://ci.debian.net/data/autopkgtest/testing/amd64/a/astropy-healpix/518587/log.gz

autopkgtest [15:11:14]: test python-astropy-healpix:
[-----------------------
============================= test session starts
==============================
platform linux2 -- Python 2.7.15, pytest-3.6.2, py-1.5.3, pluggy-0.6.0

Running tests with astropy_healpix version 0.2.
Running tests in /usr/lib/python2.7/dist-packages/astropy_healpix.

Date: 2018-06-27T15:11:14

Platform: Linux-4.9.0-4-amd64-x86_64-with-debian-buster-sid

Executable: /usr/bin/python

Full Python Version:
2.7.15 (default, May  1 2018, 05:55:50)
[GCC 7.3.0]

encodings: sys: ascii, locale: UTF-8, filesystem: UTF-8, unicode bits: 20
byteorder: little
float info: dig: 15, mant_dig: 15

Numpy: 1.14.4
Scipy: not available
Matplotlib: 2.2.2
Astropy: 2.0.7
healpy: 1.11.0
Cython: not available
Using Astropy options: remote_data: none.

rootdir: /usr/lib/python2.7/dist-packages/astropy_healpix, inifile:
plugins: hypothesis-3.44.1
collected 283 items

../../../../usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_bench.py
. [  0%]

[  0%]
../../../../usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_core.py
. [  0%]
...............................
[ 11%]
../../../../usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_core_cython.py
. [ 12%]
........................................................................
[ 37%]
........................................................................
[ 62%]
.............................................
[ 78%]
../../../../usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_healpy.py
. [ 79%]
.........................................F.
[ 94%]
../../../../usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_high_level.py
. [ 94%]
...............
[100%]

=================================== FAILURES
===================================
_____________________________ test_interp_weights
______________________________

    @given(nside_pow=integers(0, 28), nest=booleans(), lonlat=booleans(),
>          lon=floats(0, 360, allow_nan=False,
allow_infinity=False).filter(lambda lon: abs(lon) > 1e-5),
           lat=floats(-90, 90, allow_nan=False,
allow_infinity=False).filter(
               lambda lat: abs(lat) < 89.99 and abs(lat) > 1e-5))

/usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_healpy.py:182:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python2.7/dist-packages/hypothesis/core.py:579: in execute
    result = self.test_runner(data, run)
/usr/lib/python2.7/dist-packages/hypothesis/executors.py:58: in
default_new_style_executor
    return function(data)
/usr/lib/python2.7/dist-packages/hypothesis/core.py:571: in run
    return test(*args, **kwargs)
/usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_healpy.py:182:
in test_interp_weights
    lon=floats(0, 360, allow_nan=False,
allow_infinity=False).filter(lambda lon: abs(lon) > 1e-5),
/usr/lib/python2.7/dist-packages/hypothesis/core.py:518: in test
    result = self.test(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

nside_pow = 27, lon = 0.00023989560322235096, lat = 89.9636937073379
nest = False, lonlat = False

    @given(nside_pow=integers(0, 28), nest=booleans(), lonlat=booleans(),
           lon=floats(0, 360, allow_nan=False,
allow_infinity=False).filter(lambda lon: abs(lon) > 1e-5),
           lat=floats(-90, 90, allow_nan=False,
allow_infinity=False).filter(
               lambda lat: abs(lat) < 89.99 and abs(lat) > 1e-5))
    @settings(max_examples=500, derandomize=True)
    @example(nside_pow=27, lon=1.0000000028043134e-05,
lat=-41.81031451395941, nest=False, lonlat=False)
    @example(nside_pow=6, lon=1.6345238095238293, lat=69.42254649458224,
nest=False, lonlat=False)
    @example(nside_pow=15, lon=1.0000000028043134e-05,
lat=1.000000000805912e-05, nest=False, lonlat=False)
    @example(nside_pow=0, lon=315.0000117809725,
lat=1.000000000805912e-05, nest=False, lonlat=False)
    @example(nside_pow=0, lon=1.0000000028043134e-05,
lat=-41.81031489577861, nest=False, lonlat=False)
    @example(nside_pow=0, lon=35.559942143736414, lat=-41.8103252622604,
nest=False, lonlat=False)
    @example(nside_pow=28, lon=359.9999922886491,
lat=-41.81031470486902, nest=False, lonlat=False)
    @example(nside_pow=0, lon=1.0000000028043134e-05,
lat=-41.81031489577861, nest=False, lonlat=False)
    @example(nside_pow=27, lon=1.0000000028043134e-05,
lat=-41.81031451395941, nest=False, lonlat=False)
    @example(nside_pow=26, lon=359.9999986588955, lat=41.81031489577861,
nest=False, lonlat=False)
    @example(nside_pow=27, lon=359.999997317791, lat=-41.81031451395943,
nest=False, lonlat=False)
    @example(nside_pow=27, lon=1.0000000028043134e-05,
lat=89.80224636153702, nest=False, lonlat=False)
    def test_interp_weights(nside_pow, lon, lat, nest, lonlat):
        nside = 2 ** nside_pow
        if lonlat:
            theta, phi = lon, lat
        else:
            theta, phi = np.pi / 2. - np.radians(lat), np.radians(lon)
        indices1, weights1 = hp_compat.get_interp_weights(nside, theta,
phi, nest=nest, lonlat=lonlat)
        indices2, weights2 = hp.get_interp_weights(nside, theta, phi,
nest=nest, lonlat=lonlat)

        # Ignore neighbours with weights < 1e-6 - we have to exclude
these otherwise
        # in some corner cases there will be different low-probability
neighbours.

        keep = weights1 > 1e-6
        indices1, weights1 = indices1[keep], weights1[keep]

        keep = weights2 > 1e-6
        indices2, weights2 = indices2[keep], weights2[keep]

        order1 = np.argsort(indices1)
        order2 = np.argsort(indices2)

        assert_equal(indices1[order1], indices2[order2])
>       assert_allclose(weights1[order1], weights2[order2], atol=1e-5)
E       AssertionError:
E       Not equal to tolerance rtol=1e-07, atol=1e-05
E
E       (mismatch 25.0%)
E        x: array([0.535674, 0.153165, 0.241974, 0.069187])
E        y: array([0.535664, 0.153162, 0.241984, 0.06919 ])

/usr/lib/python2.7/dist-packages/astropy_healpix/tests/test_healpy.py:220:
AssertionError
---------------------------------- Hypothesis
----------------------------------
Falsifying example: test_interp_weights(nside_pow=27,
lon=0.00023989560322235096, lat=89.9636937073379, nest=False, lonlat=False)
=============================== warnings summary
===============================
tests/test_healpy.py::test_vec2ang
  /usr/lib/python2.7/dist-packages/healpy/pixelfunc.py:694:
RuntimeWarning: invalid value encountered in divide
    theta = np.arccos(vectors[:,2]/dnorm)

<undetermined location>
  could not create cache path
/usr/lib/python2.7/dist-packages/astropy_healpix/v/cache/nodeids
  could not create cache path
/usr/lib/python2.7/dist-packages/astropy_healpix/v/cache/lastfailed

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============== 1 failed, 282 passed, 3 warnings in 63.99 seconds
===============
autopkgtest [15:12:19]: test python-astropy-healpix:
-----------------------]


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to