Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806412 - >=dev-python/uvloop-0.15.2 fails tests on riscv
Summary: >=dev-python/uvloop-0.15.2 fails tests on riscv
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 796803
  Show dependency tree
 
Reported: 2021-08-04 18:21 UTC by Marek Szuba
Modified: 2021-08-05 16:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (uvloop-0.15.3-r1-build.log,54.29 KB, text/plain)
2021-08-04 18:22 UTC, Marek Szuba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2021-08-04 18:21:42 UTC
1. The test-server thread repeatedly throws "socket.timeout: The read operation timed out", resulting in a lot of tests failing due to errors.

2. Eventually the tests hang. This might be the same thing as Bug #805155, as the hang appears in roughly the same place.
Comment 1 Marek Szuba archtester gentoo-dev 2021-08-04 18:22:51 UTC
Created attachment 730167 [details]
build.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-04 18:56:58 UTC
Is this a regression compared to 0.15.3?
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-04 18:58:58 UTC
This is probably the same as bug #803515.  I can grep a few 'listen(0)' instances.  I'll see if I can reproduce and make a patch.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-04 19:34:42 UTC
(In reply to Michał Górny from comment #3)
> This is probably the same as bug #803515.  I can grep a few 'listen(0)'
> instances.  I'll see if I can reproduce and make a patch.

Ok, it's not that.  It seems that listen(0) is only used when they don't intend to connect at all.
Comment 5 Marek Szuba archtester gentoo-dev 2021-08-04 21:14:35 UTC
(In reply to Michał Górny from comment #2)

> Is this a regression compared to 0.15.3?

It is not, it seems all versions currently in the tree have this problem.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-05 08:19:29 UTC
Could you verify that libuv itself is 100% fine (i.e. passes tests) on your machine?

I'm afraid that in the end you'll have to either figure it out yourself or request upstream's help (but I honestly doubt they have access to any riscv hw).
Comment 7 Marek Szuba archtester gentoo-dev 2021-08-05 10:54:33 UTC
(In reply to Michał Górny from comment #6)

> Could you verify that libuv itself is 100% fine (i.e. passes tests) on your
> machine?

On amd64 tests eventually hang (same as in Bug #805155) but until that point, no errors or failures are reported.

> I'm afraid that in the end you'll have to either figure it out yourself or
> request upstream's help (but I honestly doubt they have access to any riscv
> hw).

Fair enough. Not sure why riscv was even added to the uvloop re-keywording bug in the first place, seeing as according to Git history it had never been keyworded on this arch before.
Comment 8 Larry the Git Cow gentoo-dev 2021-08-05 10:56:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18bd78ce2b2f93390ec3ceb14171bc0b3b6e17f

commit a18bd78ce2b2f93390ec3ceb14171bc0b3b6e17f
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-08-05 10:55:00 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-08-05 10:55:00 +0000

    dev-python/uvloop: keyword for -riscv
    
    In addition to the tests-suite hang also observed on amd64, a lot of
    tests fail due to time-out on the test-server thread.
    
    Bug: https://bugs.gentoo.org/806412
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 dev-python/uvloop/uvloop-0.15.2.ebuild    | 4 ++--
 dev-python/uvloop/uvloop-0.15.3-r1.ebuild | 2 +-
 dev-python/uvloop/uvloop-0.15.3.ebuild    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-05 10:58:41 UTC
...probably as a dependency of something.
Comment 10 Marek Szuba archtester gentoo-dev 2021-08-05 16:24:52 UTC
(In reply to Michał Górny from comment #6)

> Could you verify that libuv itself is 100% fine (i.e. passes tests) on your
> machine?

Oops, I misread this earlier. The test suite of dev-libs/libuv-1.41.1 gives me a single test failure, exactly as described in Bug #794853, on both amd64 and riscv.