Package: src:nbclient
Version: 0.11.0-1
Severity: serious
Tags: sid forky
User: [email protected]
Usertags: pkg-resources-deprecation

nbclient fails autopkg tests with setuptools v84:

[...]

 74s Processing triggers for libc-bin (2.43-4) ...
75s autopkgtest [01:09:33]: test command1: env HOME=$AUTOPKGTEST_TMP python3 -m pytest tests
 75s autopkgtest [01:09:33]: test command1: [-----------------------
77s ============================= test session starts ==============================
 77s platform linux -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0
 77s rootdir: /tmp/autopkgtest.iMS4Nv/build.Ca3/src
 77s configfile: pyproject.toml
 77s plugins: asyncio-1.4.0, flaky-3.8.1
77s asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
 77s collected 123 items
 77s
82s tests/test_cli.py ................................. [ 26%] 170s tests/test_client.py ...........................................s....... [ 68%] 172s .................................. [ 95%] 172s tests/test_util.py ..... [100%]/usr/lib/python3.14/asyncio/base_events.py:759: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
172s   _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
172s ResourceWarning: Enable tracemalloc to get the object allocation traceback 172s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: ResourceWarning: unclosed <socket.socket fd=100, family=1, type=1, proto=0>
172s   gc.collect()
172s ResourceWarning: Enable tracemalloc to get the object allocation traceback 172s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: ResourceWarning: unclosed <socket.socket fd=101, family=1, type=1, proto=0>
172s   gc.collect()
172s ResourceWarning: Enable tracemalloc to get the object allocation traceback
172s Traceback (most recent call last):
172s File "/usr/lib/python3.14/asyncio/base_events.py", line 761, in __del__
172s     self.close()
172s     ~~~~~~~~~~^^
172s   File "/usr/lib/python3.14/asyncio/unix_events.py", line 71, in close
172s     super().close()
172s     ~~~~~~~~~~~~~^^
172s File "/usr/lib/python3.14/asyncio/selector_events.py", line 104, in close
172s     self._close_self_pipe()
172s     ~~~~~~~~~~~~~~~~~~~~~^^
172s File "/usr/lib/python3.14/asyncio/selector_events.py", line 111, in _close_self_pipe
172s     self._remove_reader(self._ssock.fileno())
172s     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
172s File "/usr/lib/python3.14/asyncio/selector_events.py", line 296, in _remove_reader
172s     key = self._selector.get_map().get(fd)
172s   File "/usr/lib/python3.14/selectors.py", line 70, in get
172s     fd = self._selector._fileobj_lookup(fileobj)
172s   File "/usr/lib/python3.14/selectors.py", line 229, in _fileobj_lookup
172s     return _fileobj_to_fd(fileobj)
172s   File "/usr/lib/python3.14/selectors.py", line 42, in _fileobj_to_fd
172s     raise ValueError("Invalid file descriptor: {}".format(fd))
172s ValueError: Invalid file descriptor: -1
172s
172s The above exception was the direct cause of the following exception:
172s
172s Traceback (most recent call last):
172s   File "<frozen runpy>", line 203, in _run_module_as_main
172s   File "<frozen runpy>", line 88, in _run_code
172s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in <module>
172s     raise SystemExit(_console_main())
172s                      ~~~~~~~~~~~~~^^
172s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 253, in _console_main
172s     code = _main(prog=_get_prog_name(sys.argv))
172s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 229, in _main 172s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 512, in __call__ 172s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 172s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 172s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 172s ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
172s     raise exception
172s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
172s     res = hook_impl.function(*args)
172s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 377, in pytest_cmdline_main
172s     return wrap_session(config, _main)
172s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 372, in wrap_session
172s     config._ensure_unconfigure()
172s     ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
172s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 1212, in _ensure_unconfigure
172s     self.hook.pytest_unconfigure(config=self)
172s     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
172s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 512, in __call__ 172s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 172s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 172s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 172s ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 167, in _multicall
172s     raise exception
172s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 121, in _multicall
172s     res = hook_impl.function(*args)
172s File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 173, in pytest_unconfigure
172s     collect_unraisable(config)
172s     ~~~~~~~~~~~~~~~~~~^^^^^^^^
172s File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 79, in collect_unraisable
172s     raise errors[0]
172s File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 67, in collect_unraisable
172s     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
172s     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172s pytest.PytestUnraisableExceptionWarning: Exception ignored while calling deallocator <function BaseEventLoop.__del__ at 0x7f33a0ac2770>: None
172s
172s
172s
172s =============================== warnings summary ===============================
172s tests/test_client.py::test_start_new_kernel_history_file_setting
172s /usr/lib/python3.14/subprocess.py:1139: ResourceWarning: subprocess 5048 is still running
172s     _warn("subprocess %s is still running" % self.pid,
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::test_start_new_kernel_client_cleans_up_kernel_on_failure 172s /usr/lib/python3.14/subprocess.py:1139: ResourceWarning: subprocess 5032 is still running
172s     _warn("subprocess %s is still running" % self.pid,
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::test_start_new_kernel_client_cleans_up_kernel_on_failure 172s /usr/lib/python3.14/subprocess.py:1139: ResourceWarning: subprocess 5051 is still running
172s     _warn("subprocess %s is still running" % self.pid,
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::TestExecute::test_error_async_execution_hook
172s /usr/lib/python3.14/unittest/mock.py:2259: ResourceWarning: Unclosed socket <zmq.asyncio.Socket(zmq.DEALER) at 0x7f339d6b1e10>
172s     def __init__(self, name, parent):
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::TestExecute::test_error_async_execution_hook
172s /usr/lib/python3.14/unittest/mock.py:2259: ResourceWarning: Unclosed socket <zmq.asyncio.Socket(zmq.DEALER) at 0x7f339d6b3cb0>
172s     def __init__(self, name, parent):
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py: 15 warnings
172s /usr/lib/python3.14/asyncio/base_events.py:759: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False> 172s _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::TestRunCell::test_allow_error_names
172s /usr/lib/python3.14/subprocess.py:1139: ResourceWarning: subprocess 5317 is still running
172s     _warn("subprocess %s is still running" % self.pid,
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::TestRunCell::test_allow_error_names
172s /usr/lib/python3.14/unittest/mock.py:2259: ResourceWarning: Unclosed socket <zmq.asyncio.Socket(zmq.DEALER) at 0x7f339d6f8130>
172s     def __init__(self, name, parent):
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py::TestRunCell::test_allow_error_names
172s /usr/lib/python3.14/unittest/mock.py:2259: ResourceWarning: Unclosed socket <zmq.asyncio.Socket(zmq.DEALER) at 0x7f339d6f9e10>
172s     def __init__(self, name, parent):
172s   Enable tracemalloc to get traceback where the object was allocated.
172s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
172s
172s tests/test_client.py: 38 warnings
172s /tmp/autopkgtest.iMS4Nv/build.Ca3/src/nbclient/client.py:57: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
172s     return datetime.datetime.utcnow().isoformat() + "Z"
172s
172s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
172s ===Flaky Test Report===
172s
172s test_parallel_notebooks passed 1 out of the required 1 times. Success!
172s test_many_parallel_notebooks passed 1 out of the required 1 times. Success! 172s test_async_parallel_notebooks passed 1 out of the required 1 times. Success! 172s test_many_async_parallel_notebooks passed 1 out of the required 1 times. Success! 172s test_kernel_death_after_timeout passed 1 out of the required 1 times. Success!
172s
172s ===End Flaky Test Report===
172s ============================= slowest 10 durations =============================
172s 11.22s call     tests/test_client.py::TestExecute::test_timeout_func
172s 10.04s call     tests/test_client.py::test_many_parallel_notebooks
172s 4.73s call tests/test_client.py::TestExecute::test_kernel_death_after_timeout
172s 3.16s call     tests/test_client.py::test_many_async_parallel_notebooks
172s 2.81s call tests/test_client.py::TestExecute::test_sync_kernel_manager
172s 2.49s call     tests/test_client.py::test_execution_timing
172s 2.48s call tests/test_client.py::TestExecute::test_reset_kernel_client
172s 2.48s call     tests/test_client.py::TestExecute::test_timeout
172s 2.36s call tests/test_client.py::TestExecute::test_cleanup_kernel_client 172s 2.03s call tests/test_client.py::TestExecute::test_kernel_death_during_execution 172s =========================== short test summary info ============================
172s SKIPPED [1] tests/test_client.py:870: unconditional skip
172s ============ 122 passed, 1 skipped, 61 warnings in 96.05s (0:01:36) ============
173s autopkgtest [01:11:11]: test command1: -----------------------]
173s autopkgtest [01:11:11]: test command1: - - - - - - - - - - results - - - - - - - - - -
173s command1             FAIL non-zero exit status 1

Reply via email to