question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.19.0: tests failure on s390x

See original GitHub issue

Hello, I’ve recently uploaded numpy/1.8.3 to debian, and the test suite reported a failure when running with the debug flavor of python3.8 on the architecture s390x, full log at https://buildd.debian.org/status/fetch.php?pkg=numpy&arch=s390x&ver=1%3A1.18.3-1&stamp=1587351308&raw=0 , extract:

___________________ TestRationalFunctions.test_gcd_overflow ____________________

self = <numpy.core.tests.test_umath.TestRationalFunctions object at 0x3ffa1549dc0>

    def test_gcd_overflow(self):
        for dtype in (np.int32, np.int64):
            # verify that we don't overflow when taking abs(x)
            # not relevant for lcm, where the result is unrepresentable anyway
            a = dtype(np.iinfo(dtype).min)  # negative power of two
            q = -(a // 4)
>           assert_equal(np.gcd(a,  q*3), q)
E           AssertionError: 
E           Items are not equal:
E            ACTUAL: -2305843009213693952
E            DESIRED: 2305843009213693952

a          = -9223372036854775808
dtype      = <class 'numpy.int64'>
q          = 2305843009213693952
self       = <numpy.core.tests.test_umath.TestRationalFunctions object at 0x3ffa1549dc0>

tmp/usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:2599: AssertionError
= 1 failed, 10243 passed, 85 skipped, 180 deselected, 18 xfailed, 2 xpassed in 90.10 seconds =

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
rgommerscommented, May 13, 2020

are these tests part of the ci for every PR or do these tests run elsewhere ? I tried looking, in the CI I mostly found tests for x64, i686.

There’s an s390x job in .travis.yml, it runs the test suite on every PR.

1reaction
sandrotosicommented, Apr 23, 2020

just note that this build failures are not fatal for the debian build, as they tend to appear from time to time on this uncommon architectures. So i usually just let them fail and report the error back her for your attention.

if you decide to add a skipIf i’d just leave it there, but i usually dont add it as patch in debian as then i’d have to disable them with every new release, detect which ones are still valid, remove the ones that are fixed, etc etc; feels just extra work with little gain

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.19.0: tests failure on armel · Issue #16049 · numpy ... - GitHub
Hello I've recently uploaded numpy/1.8.3 to debian, and the test suite reported a failure when running on the architecture armel , full log ......
Read more >
word-list-tests test failure on s390x (#118) · Issues - GitLab
This test fails on the s390x architecture (which is big endian, in case that matters):
Read more >
testing/dub: upgrade to 1.19.0, enable on (all ... - alpine · GitLab
Seems to fail on s390x due to missing references to * context functions, and on aarch64 and armv7 due to ...
Read more >
libwayland-egl1-99~1.19.0-150400.1.4.s390x RPM - RPMFind
This package provides additional functions for EGL-using programs that run within the Wayland framework. This allows for applications that ...
Read more >
Fixlist - IBM
... ppc64le, s390x) - Changer to retry abort and becoming ready state - CPF ... Fix for auto timeout retrieval on re-discovery failing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found