GNU bug report logs - #69125
python-trio transient test failures

Previous Next

Package: guix;

Reported by: Josselin Poiret <dev <at> jpoiret.xyz>

Date: Wed, 14 Feb 2024 14:20:02 UTC

Severity: normal

To reply to this bug, email your comments to 69125 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#69125; Package guix. (Wed, 14 Feb 2024 14:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josselin Poiret <dev <at> jpoiret.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 14 Feb 2024 14:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: bug-guix <at> gnu.org
Cc: me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, lars <at> 6xq.net,
 jgart <at> dismail.de, marius <at> gnu.org
Subject: python-trio transient test failures
Date: Wed, 14 Feb 2024 15:19:07 +0100
[Message part 1 (text/plain, inline)]
Hi everyone,

python-trio sometimes exhibits test failures, as in the following

--8<---------------cut here---------------start------------->8---
=================================== FAILURES ===================================
____________________ test_wait_reapable_fails[open_process] ____________________
[gw15] linux -- Python 3.10.7 /gnu/store/375350pi1l1izgnx6dnsqmg4xjyprx8q-python-wrapper-3.10.7/bin/python

background_process = <function open_process_then_kill at 0x7ffff40fed40>

    @pytest.mark.skipif(not posix, reason="POSIX specific")
    @background_process_param
    async def test_wait_reapable_fails(background_process):
>       old_sigchld = signal.signal(signal.SIGCHLD, signal.SIG_IGN)

trio/tests/test_subprocess.py:449: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

signalnum = <Signals.SIGCHLD: 17>, handler = <Handlers.SIG_IGN: 1>

    @_wraps(_signal.signal)
    def signal(signalnum, handler):
>       handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
E       ValueError: signal only works in main thread of the main interpreter

/gnu/store/91wasjkmy50p8fq0rf9jby80mnmq1fxr-python-3.10.7/lib/python3.10/signal.py:56: ValueError
_______________ test_wait_reapable_fails[run_process in nursery] _______________
[gw15] linux -- Python 3.10.7 /gnu/store/375350pi1l1izgnx6dnsqmg4xjyprx8q-python-wrapper-3.10.7/bin/python

background_process = <function run_process_in_nursery at 0x7ffff40fee60>

    @pytest.mark.skipif(not posix, reason="POSIX specific")
    @background_process_param
    async def test_wait_reapable_fails(background_process):
>       old_sigchld = signal.signal(signal.SIGCHLD, signal.SIG_IGN)

trio/tests/test_subprocess.py:449: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

signalnum = <Signals.SIGCHLD: 17>, handler = <Handlers.SIG_IGN: 1>

    @_wraps(_signal.signal)
    def signal(signalnum, handler):
>       handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
E       ValueError: signal only works in main thread of the main interpreter

/gnu/store/91wasjkmy50p8fq0rf9jby80mnmq1fxr-python-3.10.7/lib/python3.10/signal.py:56: ValueError
=========================== short test summary info ============================
FAILED trio/tests/test_subprocess.py::test_wait_reapable_fails[open_process]
FAILED trio/tests/test_subprocess.py::test_wait_reapable_fails[run_process in nursery]
================== 2 failed, 371 passed, 17 skipped in 3.82s ===================
--8<---------------cut here---------------end--------------->8---

Note that I am on Linux 6.8-rc3 currently.  Can anyone reproduce?

Best,
-- 
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#69125; Package guix. (Wed, 14 Feb 2024 19:49:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: Josselin Poiret <dev <at> jpoiret.xyz>
Cc: me <at> bonfacemunyoki.com, lars <at> 6xq.net, bug-guix <at> gnu.org,
 jgart <jgart <at> dismail.de>, marius <at> gnu.org
Subject: Re: python-trio transient test failures
Date: Wed, 14 Feb 2024 19:48:14 +0000
[Message part 1 (text/plain, inline)]
Hi Josselin,

If we have a look at CI builds

https://ci.guix.gnu.org/search?query=python-trio%200.21.0%20spec:master

there are more failed builds than successful ones : -)

Maybe it's time to update it or disable some shaky tests.

WDYT?

Thanks,
Oleg
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#69125; Package guix. (Thu, 15 Feb 2024 11:59:03 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: me <at> bonfacemunyoki.com, lars <at> 6xq.net, bug-guix <at> gnu.org,
 jgart <jgart <at> dismail.de>, marius <at> gnu.org
Subject: Re: python-trio transient test failures
Date: Thu, 15 Feb 2024 12:09:16 +0100
[Message part 1 (text/plain, inline)]
Hi Oleg,

Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> Maybe it's time to update it or disable some shaky tests.
>
> WDYT?

I agree, I was looking into this on core-updates but didn't want to
commit to updating this as it also needs some dependency upgrades.

Best,
-- 
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.