python-pexpect 4.2.1 test failure in test_async_utf8

  • Done
  • quality assurance status badge
Details
2 participants
  • Danny Milosavljevic
  • Marius Bakke
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal

Debbugs page

Danny Milosavljevic wrote 8 years ago
(address . bug-guix@gnu.org)
20170328220932.53a4c550@scratchpost.org
python-pexpect 4.2.1 has a test failure on both master and core-updates:

.E................................................/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)
/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which: no g77 in (/tmp/guix-build-python-pexpect-4.2.1.drv-0/tmpywfead93)

..
======================================================================
ERROR: test_async_utf8 (tests.test_async.AsyncTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 57, in test_async_utf8
assert run(p.expect_exact([u'foo', pexpect.EOF], async=True)) == 1
File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 13, in run
return asyncio.get_event_loop().run_until_complete(coro)
File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
return future.result()
File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/pexpect/async.py", line 17, in expect_async
.connect_read_pipe(lambda: PatternWaiter(expecter), expecter.spawn)
File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 986, in connect_read_pipe
transport = self._make_read_pipe_transport(pipe, protocol, waiter)
File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 169, in _make_read_pipe_transport
return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 308, in __init__
mode = os.fstat(self._fileno).st_mode
OSError: [Errno 9] Bad file descriptor
-------------------- >> begin captured stdout << ---------------------

tests.test_async.AsyncTests.test_async_utf8
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
asyncio: DEBUG: Using selector: EpollSelector
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 52 tests in 23.885s

FAILED (errors=1)
phase `check' failed after 25.2 seconds
note: keeping build directory `/tmp/guix-build-python-pexpect-4.2.1.drv-5'
builder for `/gnu/store/8sd3qd624yj6jacki7xajvclwnjwapma-python-pexpect-4.2.1.drv' failed with exit code 1
@ build-failed /gnu/store/8sd3qd624yj6jacki7xajvclwnjwapma-python-pexpect-4.2.1.drv - 1 builder for `/gnu/store/8sd3qd624yj6jacki7xajvclwnjwapma-python-pexpect-4.2.1.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/8sd3qd624yj6jacki7xajvclwnjwapma-python-pexpect-4.2.1.drv' failed
Marius Bakke wrote 8 years ago
87inmsucyn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me
Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (2 lines)
> python-pexpect 4.2.1 has a test failure on both master and core-updates:

[...]

Toggle quote (36 lines)
> ======================================================================
> ERROR: test_async_utf8 (tests.test_async.AsyncTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 57, in test_async_utf8
> assert run(p.expect_exact([u'foo', pexpect.EOF], async=True)) == 1
> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 13, in run
> return asyncio.get_event_loop().run_until_complete(coro)
> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
> return future.result()
> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
> raise self._exception
> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/tasks.py", line 239, in _step
> result = coro.send(None)
> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/pexpect/async.py", line 17, in expect_async
> .connect_read_pipe(lambda: PatternWaiter(expecter), expecter.spawn)
> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 986, in connect_read_pipe
> transport = self._make_read_pipe_transport(pipe, protocol, waiter)
> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 169, in _make_read_pipe_transport
> return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 308, in __init__
> mode = os.fstat(self._fileno).st_mode
> OSError: [Errno 9] Bad file descriptor
> -------------------- >> begin captured stdout << ---------------------
>
> tests.test_async.AsyncTests.test_async_utf8
> --------------------- >> end captured stdout << ----------------------
> -------------------- >> begin captured logging << --------------------
> asyncio: DEBUG: Using selector: EpollSelector
> --------------------- >> end captured logging << ---------------------
>
> ----------------------------------------------------------------------
> Ran 52 tests in 23.885s
>
> FAILED (errors=1)

Thanks for the report! I am no longer able to reproduce this issue on
'master' after 3ee9355e2fd2d0fcee1076ca1160ba5881b73da8. I'm not
entirely sure why, though :-)
-----BEGIN PGP SIGNATURE-----

iQEyBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAljbA+EACgkQoqBt8qM6
VPreDQf46M46UX7424uBZP2vshQIuaBeW7YogojC0/CXVIT9+mDGkPf0AwTfK2Ui
iROcFhchXz16goxX7V/A+Y+VRTUzT2ZcaqbEBKaBZw9bBLaZSuNouXAe2N+p5wZ6
nRqaT0JafQw9QFY0kLbZcCNvWq53bmjLAqMOrtPywTzjHYyu9EvZyQDjcVVf1MHE
aHhs/c/3FuEHZlp6FOepCA1aNhZnygMMnZRNtqKZyYuEmXrh9u9HbBup+kU0cJeL
W+Yrp/2IQgabZ1hfTWpmOE4RlbWEKTb9pDTK3lVZRFDq0AmRORv6TwuDF43X4I2o
4ZTkrrFffY+9IdagMktcQ9BVCydO
=x2n2
-----END PGP SIGNATURE-----

Closed
Marius Bakke wrote 8 years ago
87efx9bdnn.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me
Marius Bakke <mbakke@fastmail.com> writes:

Toggle quote (46 lines)
> Danny Milosavljevic <dannym@scratchpost.org> writes:
>
>> python-pexpect 4.2.1 has a test failure on both master and core-updates:
>
> [...]
>
>> ======================================================================
>> ERROR: test_async_utf8 (tests.test_async.AsyncTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 57, in test_async_utf8
>> assert run(p.expect_exact([u'foo', pexpect.EOF], async=True)) == 1
>> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/tests/test_async.py", line 13, in run
>> return asyncio.get_event_loop().run_until_complete(coro)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
>> return future.result()
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
>> raise self._exception
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/tasks.py", line 239, in _step
>> result = coro.send(None)
>> File "/tmp/guix-build-python-pexpect-4.2.1.drv-0/pexpect-4.2.1/pexpect/async.py", line 17, in expect_async
>> .connect_read_pipe(lambda: PatternWaiter(expecter), expecter.spawn)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/base_events.py", line 986, in connect_read_pipe
>> transport = self._make_read_pipe_transport(pipe, protocol, waiter)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 169, in _make_read_pipe_transport
>> return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
>> File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/asyncio/unix_events.py", line 308, in __init__
>> mode = os.fstat(self._fileno).st_mode
>> OSError: [Errno 9] Bad file descriptor
>> -------------------- >> begin captured stdout << ---------------------
>>
>> tests.test_async.AsyncTests.test_async_utf8
>> --------------------- >> end captured stdout << ----------------------
>> -------------------- >> begin captured logging << --------------------
>> asyncio: DEBUG: Using selector: EpollSelector
>> --------------------- >> end captured logging << ---------------------
>>
>> ----------------------------------------------------------------------
>> Ran 52 tests in 23.885s
>>
>> FAILED (errors=1)
>
> Thanks for the report! I am no longer able to reproduce this issue on
> 'master' after 3ee9355e2fd2d0fcee1076ca1160ba5881b73da8. I'm not
> entirely sure why, though :-)

So, this occured again after the core-updates merge. I managed to work
around it by changing "python-pytest" to "python-pytest-3.0", which is
very odd.

There is a race condition lurking here somewhere, but I built with
"--rounds=10" after both "fixes" without problems.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAljihxwACgkQoqBt8qM6
VPpehAgAwVXOTS/3iHcPNBTdBBOH73rmMaFir8aUeqtl6EJkCKrS/zGt1L5gTfGH
DIs7ASxufTVN0KP5GlzM1j7FdAP148vfUntS19OTaXuY3fab88k8OEacI+48ZPuJ
cQzFVc4b7qwMLzL22hVeg9L47ytXFCAECgzHGalKKzTHmHJEcffERU7XjKlxzAhv
SLv+zEuE1ZJPgw7/XM8HVPqUPft7zwTTixPrU2RysWqvp/mx1PmMcg0BPRNSWFTj
uGFZe5+djJYQRWLtqzcrbFjDFqYqLpDflinPKthpLlU1sRdmrsqkxxzaPHY2lChg
E+QwH5b/cS5AfFLcvkHf6UhzyTbD8Q==
=QbSk
-----END PGP SIGNATURE-----

?
Your comment

This issue is archived.

To comment on this conversation send an email to 26286@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 26286
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help