#1011964 ipykernel: autopkgtest regression: ERROR at setup of test_asyncio_interrupt

#1011964#5
Date:
2022-05-28 05:13:53 UTC
From:
To:
Dear maintainer(s),

With a recent upload of ipykernel the autopkgtest of ipykernel fails in
testing when that autopkgtest is run with the binary packages of
ipykernel from unstable. It passes when run with only packages from
testing. In tabular form:

                        pass            fail
ipykernel              from testing    6.13.0-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=ipykernel

https://ci.debian.net/data/autopkgtest/testing/amd64/i/ipykernel/22160991/log.gz

[31m___________________ ERROR at setup of test_asyncio_interrupt
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:83:
in pytest_runtest_setup
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d226250>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
---------------------------- Captured stdout setup 
-----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be
enabled
=================================== FAILURES
===================================
________________________ test_async_interrupt[asyncio]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:88:
in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d2a7510>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
---------------------------- Captured stdout setup 
-----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be
enabled
_________________________ test_embed_kernel_namespace

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:88:
in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d291620>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
_________________________ test_embed_kernel_reentrant

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:88:
in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d3cb790>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
___________________________ test_smoke_faulthandler

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:88:
in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d3c8360>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
_____________________ test_interrupt_during_pdb_set_trace

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:88:
in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d349cb0>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
----------------------------- Captured stdout call 
-----------------------------
[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be
enabled
_________________________________ test_install

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/_pytest/runner.py:255: in
<lambda>
     lambda: ihook(item=item, **kwds), when=when,
reraise=reraise
/usr/lib/python3/dist-packages/pluggy/_hooks.py:265: in
__call__
     return
self._hookexec(self.name,
self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3/dist-packages/pluggy/_manager.py:80: in
_hookexec
     return
self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:88:
in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
     def
unraisable_exception_runtest_hook() ->
Generator[None, None, None]:
         with catch_unraisable_exception()
as cm:
             yield
             if cm.unraisable:
                 if cm.unraisable.err_msg
is not None:
                     err_msg = cm.unraisable.err_msg
                 else:
                     err_msg = "Exception
ignored in"
                 msg =
f"{err_msg}:
{cm.unraisable.object!r}\n\n"
                 msg += "".join(
                     traceback.format_exception(
                         cm.unraisable.exc_type,
                         cm.unraisable.exc_value,
                         cm.unraisable.exc_traceback,
                     )
                 )
E               pytest.PytestUnraisableExceptionWarning:
Exception ignored in: <function Context.__del__ at 0x7fdda0bb2290>
E               
E               Traceback (most recent call last):
E                 File
"/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 65, in
__del__
E                   warnings.warn(
E               ResourceWarning: unclosed context
<zmq.asyncio.Context() at 0x7fdd6d3805e0>

/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:78:
PytestUnraisableExceptionWarning
------------------------------ Captured log call 
-------------------------------
WARNING  traitlets:kernelspec.py:396 Installing to
/tmp/tmpciaaqiiw/kernels, which is not in
['/tmp/autopkgtest-lxc.nxe7urb5/downtmp/autopkgtest_tmp/.local/share/jupyter/kernels',
'/usr/local/share/jupyter/kernels', '/usr/share/jupyter/kernels',
'/tmp/autopkgtest-lxc.nxe7urb5/downtmp/autopkgtest_tmp/.ipython/kernels'].
The kernelspec may not be found.

#1011964#8
Date:
2022-06-14 14:40:50 UTC
From:
To:
Hello,

Bug #1011964 in ipykernel reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/ipykernel/-/commit/db93b2b4ba526c756039655a4d65e45b3447be88

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1011964

#1011964#15
Date:
2022-06-14 15:35:16 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ipykernel, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011964@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien Puydt <jpuydt@debian.org> (supplier of updated ipykernel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 14 Jun 2022 08:13:29 +0200
Source: ipykernel
Architecture: source
Version: 6.13.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team <team+python@tracker.debian.org>
Changed-By: Julien Puydt <jpuydt@debian.org>
Closes: 1011964
Changes:
 ipykernel (6.13.1-2) unstable; urgency=medium
 .
   * Unbreak the compilation (Closes: #1011964).
Checksums-Sha1:
 7b98ee5b77fe2225bcd0de7a59b47adb3b2993ca 2673 ipykernel_6.13.1-2.dsc
 bb375e5a2146568adb7a51898a698cdb80e1b2c1 5864 ipykernel_6.13.1-2.debian.tar.xz
 07e494c3941a6b890ec72c013dcedc2bb5e1aa61 8433 ipykernel_6.13.1-2_source.buildinfo
Checksums-Sha256:
 97b5bed39adbe715a5bda494c47d73763e153faa709d477941f77457bb022f93 2673 ipykernel_6.13.1-2.dsc
 36745f10b1c34fc3f9f6e4a9432dfdd1be780fa97547c1272ec5e3926d443077 5864 ipykernel_6.13.1-2.debian.tar.xz
 0dc28cda0df3f9e24be656671ed1165a2328581338193738936ae4c4de7fb722 8433 ipykernel_6.13.1-2_source.buildinfo
Files:
 d36a26432f2f8569d19cb0e901079bf9 2673 python optional ipykernel_6.13.1-2.dsc
 3da1ff3f0dac69d7c57622c60d8b2680 5864 python optional ipykernel_6.13.1-2.debian.tar.xz
 b9649d343d7c2824c75b68b43ef68b62 8433 python optional ipykernel_6.13.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEgS7v2KP7pKzk3xFLBMU71/4DBVEFAmKoKAQSHGpwdXlkdEBk
ZWJpYW4ub3JnAAoJEATFO9f+AwVRUloP/3MyQd8DRTDWXFv9GWlsRhJT/KW+KEeo
FDOMXQNrkKaB7oXPdUB/yjH59jW9BuBta1ltSIdjX3vdWFtM0RKNl5+Yhx1MifZX
igZlQ8H208vkEtbFjYVY5nUz7CnThwvp+MP8LIOZF10fu22gsUeS3HWDtd9kr8Wc
nFiGE5B9FEAyYs98Sep1KQLGgNHoTWXZozaa14GIv45PBe2wBLSA1BNezQb+eLxI
OLjtZ8hLlTNypIwG+TAt796ygqd0krSqMZcivmaj9wwzUvA1Cjo/QagLX7a9J7iM
qjHd/HMkVaO2AH13UHY+b8qJUMgk7NzhQ98x2Emjq4mDVYOMTq2NrOgfCfrpyD0G
gf3iKs1jP6yXvn7D8eO6u4hWwQFXrQoN5kTEuSh8awsIqgPOALVBjpJSa7QgJqIc
pIaXxR4U55Y7x3t+PCdKdZ9b25t3fA9MGN3ViztiokAjqpEe22nvqfY6rdu/7f3U
1X0Yt59D70RTmUAaq/n9KizOP8C9As3moP1FxFfrk/DhgeqM3YYbAac4U0aEmjB3
31nkMcWYP2quU/m5kHQFz5PRL4ys7EPzIb188iReiCnio+MrFhd7I2stlhY2Bd0W
Oe/u9R02IysPc+V4vkW9AiSFWW70LFDmkO/3Rcb3CqKygpj/tAgBYCT/o8xWz+Uv
rTNOKmmqhmwO
=VYxz
-----END PGP SIGNATURE-----