Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 866677

Summary: net-p2p/deluge-2.1.1 fails tests: ValueError: Plugin already registered: twisted=<module pytest_twisted from pytest_twisted.py>
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Paolo Pedroni <paolo.pedroni>
Status: RESOLVED FIXED    
Severity: normal CC: candrews, kangie, proxy-maint, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=661218
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 807793    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-08-26 11:27:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-p2p/deluge-2.1.1 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-26 11:27:56 UTC
CC'ing also the author of the commit (463a06f28960ff4931f3811e884eef363573701e)
Comment 2 Agostino Sarubbo gentoo-dev 2022-08-26 11:27:58 UTC
Created attachment 801079 [details]
build.log

build log and emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-26 11:33:51 UTC
I suspect the hack we're applying in pytest-twisted doesn't work for PEP517 builds, as it's too late on.
Comment 4 Larry the Git Cow gentoo-dev 2022-08-26 11:38:19 UTC
The bug has been closed via the following commit(s):

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

commit 43e960831dcf4bd231453f9b223e5f03e321f861
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-26 11:37:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-26 11:38:12 +0000

    dev-python/pytest-twisted: fix disabling autoload
    
    Need to do it in src_prepare before the wheel is created
    (the old hack doesn't work for PEP517 builds).
    
    With the fix (ignore lack of revision as did it after):
    ```
     * CMP: =dev-python/pytest-twisted-1.13.4 with dev-python/pytest-twisted-1.13.4/image
     *  FILES:-usr/lib/python3.10/site-packages/pytest_twisted-*.dist-info/entry_points.txt
     *  FILES:-usr/lib/python3.11/site-packages/pytest_twisted-*.dist-info/entry_points.txt
     *  FILES:-usr/lib/python3.8/site-packages/pytest_twisted-*.dist-info/entry_points.txt
     *  FILES:-usr/lib/python3.9/site-packages/pytest_twisted-*.dist-info/entry_points.txt
     *   SIZE: 0.28MiB -> 0.28MiB, 37 -> 33 files
     * ------> FILES(-4) SIZE(-0.22%)
    ```
    
    Closes: https://bugs.gentoo.org/866677
    Signed-off-by: Sam James <sam@gentoo.org>

 ...-1.13.4.ebuild => pytest-twisted-1.13.4-r1.ebuild} | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-08-26 11:40:55 UTC
The bug has been referenced in the following commit(s):

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

commit 57c94ead0f25e5f4111615db841d5f1989bdd488
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-26 11:40:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-26 11:40:42 +0000

    net-p2p/deluge: crank up pytest-twisted dep
    
    Bug: https://bugs.gentoo.org/866677
    Signed-off-by: Sam James <sam@gentoo.org>

 net-p2p/deluge/deluge-2.1.1.ebuild | 2 +-
 net-p2p/deluge/deluge-9999.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)