all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#49913: python-networkx test failing
@ 2021-08-06 16:09 Denis 'GNUtoo' Carikli
  2021-08-07 17:03 ` Maxime Devos
  0 siblings, 1 reply; 5+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2021-08-06 16:09 UTC (permalink / raw)
  To: 49913

[-- Attachment #1: Type: text/plain, Size: 4050 bytes --]

Hi, 

when trying to install fdroidserver, I have the following build failure
in the tests with python-networkx:
> building
> /gnu/store/64a09gnkl01k6vcwrn1cvv1v8nm88xhb-python-networkx-2.5.1.drv...
> 100% 'check'
> [###########################################################]builder
> for
> `/gnu/store/64a09gnkl01k6vcwrn1cvv1v8nm88xhb-python-networkx-2.5.1.drv'
> failed with exit code 1 build of
> /gnu/store/64a09gnkl01k6vcwrn1cvv1v8nm88xhb-python-networkx-2.5.1.drv
> failed View build log at
> '/var/log/guix/drvs/64/a09gnkl01k6vcwrn1cvv1v8nm88xhb-python-networkx-2.5.1.drv.bz2'.
[...]
> networkx/utils/tests/test_random_sequence.py::test_random_weighted_choice PASSED [ 99%]
> networkx/utils/tests/test_rcm.py::test_reverse_cuthill_mckee PASSED      [ 99%]
> networkx/utils/tests/test_rcm.py::test_rcm_alternate_heuristic PASSED    [ 99%]
> networkx/utils/tests/test_unionfind.py::test_unionfind PASSED            [ 99%]
> networkx/utils/tests/test_unionfind.py::test_subtree_union PASSED        [ 99%]
> networkx/utils/tests/test_unionfind.py::test_unionfind_weights PASSED    [ 99%]
> networkx/utils/tests/test_unionfind.py::test_empty_union PASSED          [100%]
> 
> =================================== FAILURES ===================================
> ____________________ TestWeightedPath.test_weight_functions ____________________
> 
> self = <networkx.algorithms.shortest_paths.tests.test_weighted.TestWeightedPath object at 0xb4a304c0>
> 
>     def test_weight_functions(self):
>         def heuristic(*z):
>             return hash(z)
>     
>         def getpath(pred, v, s):
>             return [v] if v == s else getpath(pred, pred[v], s) + [v]
>     
>         def goldberg_radzik(g, s, t, weight="weight"):
>             pred, dist = nx.goldberg_radzik(g, s, weight=weight)
>             dist = dist[t]
>             return dist, getpath(pred, t, s)
>     
>         def astar(g, s, t, weight="weight"):
>             path = nx.astar_path(g, s, t, heuristic, weight=weight)
>             dist = nx.astar_path_length(g, s, t, heuristic, weight=weight)
>             return dist, path
>     
>         def vlp(G, s, t, l, F, w):
>             res = F(G, s, t, weight=w)
>             validate_length_path(G, s, t, l, *res, weight=w)
>     
>         G = self.cycle
>         s = 6
>         t = 4
>         path = [6] + list(range(t + 1))
>     
>         def weight(u, v, _):
>             return 1 + v ** 2
>     
>         length = sum(weight(u, v, None) for u, v in pairwise(path))
>         vlp(G, s, t, length, nx.bidirectional_dijkstra, weight)
>         vlp(G, s, t, length, nx.single_source_dijkstra, weight)
>         vlp(G, s, t, length, nx.single_source_bellman_ford, weight)
>         vlp(G, s, t, length, goldberg_radzik, weight)
> >       vlp(G, s, t, length, astar, weight)
> 
> networkx/algorithms/shortest_paths/tests/test_weighted.py:233: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> networkx/algorithms/shortest_paths/tests/test_weighted.py:218: in vlp
>     validate_length_path(G, s, t, l, *res, weight=w)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> G = <networkx.classes.graph.Graph object at 0xb4a307a8>, s = 6, t = 4
> soln_len = 35, length = 43, path = [6, 5, 4]
> weight = <function TestWeightedPath.test_weight_functions.<locals>.weight at 0xb4a2f538>
> 
>     def validate_length_path(G, s, t, soln_len, length, path, weight="weight"):
> >       assert soln_len == length
> E       assert 35 == 43
> E         -35
> E         +43
> 
> networkx/algorithms/shortest_paths/tests/test_weighted.py:29: AssertionError
> =========== 1 failed, 3517 passed, 182 skipped in 246.61s (0:04:06) ============
> command "pytest" "-vv" "--pyargs" "networkx" failed with status 1

I've the following setup:

Host distribution: Parabola i686 with an x86_64 kernel (linux-libre-64)
Guix: Guix i686

Do I need to give more information?

Denis.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49913: python-networkx test failing
  2021-08-06 16:09 bug#49913: python-networkx test failing Denis 'GNUtoo' Carikli
@ 2021-08-07 17:03 ` Maxime Devos
  2021-08-08 10:54   ` Efraim Flashner
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2021-08-07 17:03 UTC (permalink / raw)
  To: Denis 'GNUtoo' Carikli, 49913

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

Hi,

> > networkx/algorithms/shortest_paths/tests/test_weighted.py:29: AssertionError
> > =========== 1 failed, 3517 passed, 182 skipped in 246.61s (0:04:06) ============
> > command "pytest" "-vv" "--pyargs" "networkx" failed with status 1
> 
> I've the following setup:
> 
> Host distribution: Parabola i686 with an x86_64 kernel (linux-libre-64)
> Guix: Guix i686

I can reproduce on i686 (--system=i686-linux) but not x86_64.
The test failure appears to be determenistic but architecture-dependent.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49913: python-networkx test failing
  2021-08-07 17:03 ` Maxime Devos
@ 2021-08-08 10:54   ` Efraim Flashner
  2021-08-08 16:20     ` Denis 'GNUtoo' Carikli
  0 siblings, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2021-08-08 10:54 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 49913, Denis 'GNUtoo' Carikli

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

On Sat, Aug 07, 2021 at 07:03:11PM +0200, Maxime Devos wrote:
> Hi,
> 
> > > networkx/algorithms/shortest_paths/tests/test_weighted.py:29: AssertionError
> > > =========== 1 failed, 3517 passed, 182 skipped in 246.61s (0:04:06) ============
> > > command "pytest" "-vv" "--pyargs" "networkx" failed with status 1
> > 
> > I've the following setup:
> > 
> > Host distribution: Parabola i686 with an x86_64 kernel (linux-libre-64)
> > Guix: Guix i686
> 
> I can reproduce on i686 (--system=i686-linux) but not x86_64.
> The test failure appears to be determenistic but architecture-dependent.
> 

Can you `guix pull` and test it again? I just updated it to 2.6.2 and
building with --system=i686-linux didn't show me any test errors.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49913: python-networkx test failing
  2021-08-08 10:54   ` Efraim Flashner
@ 2021-08-08 16:20     ` Denis 'GNUtoo' Carikli
  2021-08-08 16:51       ` Maxime Devos
  0 siblings, 1 reply; 5+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2021-08-08 16:20 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 49913

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

On Sun, 8 Aug 2021 13:54:10 +0300
Efraim Flashner <efraim@flashner.co.il> wrote:

> On Sat, Aug 07, 2021 at 07:03:11PM +0200, Maxime Devos wrote:
> > Hi,
> > 
> > > > networkx/algorithms/shortest_paths/tests/test_weighted.py:29:
> > > > AssertionError =========== 1 failed, 3517 passed, 182 skipped
> > > > in 246.61s (0:04:06) ============ command "pytest" "-vv"
> > > > "--pyargs" "networkx" failed with status 1
> > > 
> > > I've the following setup:
> > > 
> > > Host distribution: Parabola i686 with an x86_64 kernel
> > > (linux-libre-64) Guix: Guix i686
> > 
> > I can reproduce on i686 (--system=i686-linux) but not x86_64.
> > The test failure appears to be determenistic but
> > architecture-dependent.
> > 
> 
> Can you `guix pull` and test it again? I just updated it to 2.6.2 and
> building with --system=i686-linux didn't show me any test errors.
I tried to build fdroidserver again after doing 'guix pull' and this
time it worked fine.

Thanks a lot.

Denis.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#49913: python-networkx test failing
  2021-08-08 16:20     ` Denis 'GNUtoo' Carikli
@ 2021-08-08 16:51       ` Maxime Devos
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2021-08-08 16:51 UTC (permalink / raw)
  To: Denis 'GNUtoo' Carikli, Efraim Flashner; +Cc: 49913-done

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Denis 'GNUtoo' Carikli schreef op zo 08-08-2021 om 18:20 [+0200]:
>Can you `guix pull` and test it again? I just updated it to 2.6.2 and
> > building with --system=i686-linux didn't show me any test errors.
> I tried to build fdroidserver again after doing 'guix pull' and this
> time it worked fine.

You can close the issue by sending a mail to <49913-done@debbugs.gnu.org>.

Closing.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-08 16:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-06 16:09 bug#49913: python-networkx test failing Denis 'GNUtoo' Carikli
2021-08-07 17:03 ` Maxime Devos
2021-08-08 10:54   ` Efraim Flashner
2021-08-08 16:20     ` Denis 'GNUtoo' Carikli
2021-08-08 16:51       ` Maxime Devos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.