You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cls = <class '_pytest.runner.CallInfo'>
func = <function call_runtest_hook.. at 0x7fc450ce2840>
when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@classmethod
def from_call(
cls,
func: "Callable[[], TResult]",
when: "Literal['collect', 'setup', 'call', 'teardown']",
reraise: Optional[
Union[Type[BaseException], Tuple[Type[BaseException], ...]]
] = None,
) -> "CallInfo[TResult]":
"""Call func, wrapping the result in a CallInfo.
:param func:
The function to call. Called without arguments.
:param when:
The phase in which the function is called.
:param reraise:
Exception or exceptions that shall propagate if raised by the
function, instead of being wrapped in the CallInfo.
"""
excinfo = None
start = timing.time()
precise_start = timing.perf_counter()
try:
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=-1, family=2, type=1, proto=0>
E
E Traceback (most recent call last):
E File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 626, in get
E value = obj._trait_values[self.name] # type: ignore
E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
E KeyError: 'event_logger'
E
E During handling of the above exception, another exception occurred:
E
E Traceback (most recent call last):
E File "/usr/lib64/python3.12/site-packages/yaml/resolver.py", line 143, in resolve
E def resolve(self, kind, value, implicit):
E
E ResourceWarning: unclosed <socket.socket fd=24, family=2, type=1, proto=0, laddr=('127.0.0.1', 34592), raddr=('127.0.0.1', 44099)>
/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning
------------------------------ Captured log call -------------------------------
ERROR asyncio:base_events.py:1805 Task was destroyed but it is pending!
task: <Task pending name='Task-547' coro=<WebSocketProtocol13._receive_frame_loop() running at /usr/lib64/python3.12/site-packages/tornado/websocket.py:1101> wait_for=<Future pending cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:685, Task.__wakeup()]> cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:692]>
ERROR asyncio:base_events.py:1805 Task was destroyed but it is pending!
task: <Task pending name='Task-637' coro=<WebSocketProtocol13._receive_frame_loop() running at /usr/lib64/python3.12/site-packages/tornado/websocket.py:1101> wait_for=<Future pending cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:685, Task.__wakeup()]> cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:692]>
ERROR asyncio:base_events.py:1805 Task was destroyed but it is pending!
task: <Task pending name='Task-715' coro=<WebSocketProtocol13._receive_frame_loop() running at /usr/lib64/python3.12/site-packages/tornado/websocket.py:1101> wait_for=<Future pending cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:685, Task.__wakeup()]> cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:692]>
________________________________ test_get_spec _________________________________
cls = <class '_pytest.runner.CallInfo'>
func = <function call_runtest_hook.. at 0x7fc45094a8e0>
when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@classmethod
def from_call(
cls,
func: "Callable[[], TResult]",
when: "Literal['collect', 'setup', 'call', 'teardown']",
reraise: Optional[
Union[Type[BaseException], Tuple[Type[BaseException], ...]]
] = None,
) -> "CallInfo[TResult]":
"""Call func, wrapping the result in a CallInfo.
:param func:
The function to call. Called without arguments.
:param when:
The phase in which the function is called.
:param reraise:
Exception or exceptions that shall propagate if raised by the
function, instead of being wrapped in the CallInfo.
"""
excinfo = None
start = timing.time()
precise_start = timing.perf_counter()
try:
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=-1, family=2, type=1, proto=6>
E
E Traceback (most recent call last):
E File "/usr/lib64/python3.12/contextlib.py", line 132, in enter
E def enter(self):
E
E ResourceWarning: unclosed <socket.socket fd=46, family=2, type=1, proto=6, laddr=('127.0.0.1', 34531), raddr=('127.0.0.1', 40222)>
/usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning
---------------------------- Captured stderr setup -----------------------------
[D 2024-01-17 07:28:08.374 ServerApp] Config changed: {'ServerApp': {'sock': '/tmp/jupyter_server.1311.sock', 'allow_remote_access': True, 'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG ServerApp:application.py:457 Config changed: {'ServerApp': {'sock': '/tmp/jupyter_server.1311.sock', 'allow_remote_access': True, 'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/config', '/builddir/.local/etc/jupyter', '/tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/env/etc/jupyter', '/tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/etc/jupyter'] for config files
DEBUG ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/etc/jupyter
DEBUG ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/env/etc/jupyter
DEBUG ServerApp:application.py:908 Looking for jupyter_config in /builddir/.local/etc/jupyter
DEBUG ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/config
DEBUG ServerApp:application.py:457 Config changed: {'ServerApp': {'sock': '/tmp/jupyter_server.1311.sock', 'allow_remote_access': True, 'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/etc/jupyter
DEBUG ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/env/etc/jupyter
DEBUG ServerApp:application.py:908 Looking for jupyter_server_config in /builddir/.local/etc/jupyter
DEBUG ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/config
DEBUG ServerApp:application.py:457 Config changed: {'ServerApp': {'sock': '/tmp/jupyter_server.1311.sock', 'allow_remote_access': True, 'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG ServerApp:application.py:457 Config changed: {'ServerApp': {'sock': '/tmp/jupyter_server.1311.sock', 'allow_remote_access': True, 'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-mockbuild/pytest-0/test_get_spec1/root_dir
INFO ServerApp:serverapp.py:2852 Jupyter Server 2.12.5 is running at:
INFO ServerApp:serverapp.py:2852 http+unix://%2Ftmp%2Fjupyter_server.1311.sock/a%40b/?token=7ab7736fe6f2e3c599a014000cb5d555a57ad4267c53f76a
INFO ServerApp:serverapp.py:2852 http+unix://%2Ftmp%2Fjupyter_server.1311.sock/a%40b/?token=7ab7736fe6f2e3c599a014000cb5d555a57ad4267c53f76a
INFO ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2881
Jupyter Server is listening on http+unix://%2Ftmp%2Fjupyter_server.1311.sock/a%40b/?token=7ab7736fe6f2e3c599a014000cb5d555a57ad4267c53f76a
http+unix://%2Ftmp%2Fjupyter_server.1311.sock/a%40b/?token=7ab7736fe6f2e3c599a014000cb5d555a57ad4267c53f76a
UNIX sockets are not browser-connectable, but you can tunnel to the instance via e.g.ssh -L 8888:/tmp/jupyter_server.1311.sock -N user@this_host and then open e.g. http+unix://%2Ftmp%2Fjupyter_server.1311.sock/a%40b/ in a browser.
------------------------------ Captured log call -------------------------------
ERROR asyncio:base_events.py:1805 Task was destroyed but it is pending!
task: <Task pending name='Task-2479' coro=<WebSocketProtocol13._receive_frame_loop() running at /usr/lib64/python3.12/site-packages/tornado/websocket.py:1101> wait_for=<Future pending cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:685, Task.__wakeup()]> cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:692]>
ERROR asyncio:base_events.py:1805 Task was destroyed but it is pending!
task: <Task pending name='Task-2501' coro=<WebSocketProtocol13._receive_frame_loop() running at /usr/lib64/python3.12/site-packages/tornado/websocket.py:1101> wait_for= cb=[IOLoop.add_future..() at /usr/lib64/python3.12/site-packages/tornado/ioloop.py:692]>
ERROR asyncio:base_events.py:1805 Task was destroyed but it is pending!
task: <Task pending name='Task-2500' coro=<RequestHandler._execute() running at /usr/lib64/python3.12/site-packages/tornado/web.py:1790> wait_for=<Future pending cb=[ZMQChannelsWebsocketConnection.nudge..finish() at /builddir/build/BUILD/jupyter_server-2.12.5/jupyter_server/services/kernels/connection/channels.py:189, <1 more>, Task.__wakeup()]> cb=[_HandlerDelegate.execute..() at /usr/lib64/python3.12/site-packages/tornado/web.py:2438]>
INFO ServerApp:log.py:98 302 GET /a%40b/api/spec.yaml (@0.0.0.0) 0.44ms
DEBUG ServerApp:handlers.py:326 Using contents: services/contents
DEBUG ServerApp:log.py:98 200 GET /a%40b/login?next=%2Fa%2540b%2Fapi%2Fspec.yaml (@0.0.0.0) 9.40ms
---------------------------- Captured log teardown -----------------------------
INFO ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG ServerApp:manager.py:372 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG ServerApp:manager.py:374 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
===Flaky Test Report===
test_culling_config passed 1 out of the required 1 times. Success!
test_culling passed 1 out of the required 1 times. Success!
test_connection[jp_server_config0] passed 1 out of the required 1 times. Success!
test_connection[jp_server_config1] passed 1 out of the required 1 times. Success!
test_connection[jp_server_config2] passed 1 out of the required 1 times. Success!
test_restart_kernel[jp_server_config0] passed 1 out of the required 1 times. Success!
test_restart_kernel[jp_server_config1] passed 1 out of the required 1 times. Success!
test_restart_kernel[jp_server_config2] failed (1 runs remaining out of 2).
<class 'pytest.PytestUnraisableExceptionWarning'>
Exception ignored in: <socket.socket fd=-1, family=2, type=1, proto=6>
test_restart_kernel[jp_server_config2] passed 1 out of the required 1 times. Success!
test_restart_kernel[jp_server_config3] failed (1 runs remaining out of 2).
<class 'pytest.PytestUnraisableExceptionWarning'>
Exception ignored in: <socket.socket fd=-1, family=2, type=1, proto=6>
Traceback (most recent call last):
File "/usr/lib64/python3.12/asyncio/selector_events.py", line 278, in _add_reader
key = self._selector.get_key(fd)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/selectors.py", line 192, in get_key
raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '45 is not registered'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.12/selectors.py", line 351, in register
def register(self, fileobj, events, data=None):
test_restart_kernel[jp_server_config3] passed 1 out of the required 1 times. Success!
===End Flaky Test Report===
============================= slowest 10 durations =============================
12.47s call tests/services/kernels/test_cull.py::test_cull_idle_disable
12.11s call tests/test_terminal.py::test_culling
7.46s call tests/services/kernels/test_cull.py::test_cull_idle[jp_server_config0]
7.44s call tests/services/kernels/test_cull.py::test_cull_idle[jp_server_config1]
5.07s call tests/test_terminal.py::test_terminal_create_with_cwd
3.11s call tests/services/sessions/test_manager.py::test_pending_kernel
1.22s teardown tests/services/kernels/test_connection.py::test_websocket_connection
1.12s teardown tests/services/sessions/test_api.py::test_restart_kernel[jp_server_config0]
1.11s teardown tests/services/sessions/test_api.py::test_restart_kernel[jp_server_config1]
1.11s teardown tests/services/sessions/test_api.py::test_restart_kernel[jp_server_config3]
=========================== short test summary info ============================
SKIPPED [1] tests/test_terminal.py:161: Not yet working
SKIPPED [1] tests/test_terminal.py:198: Not yet working
SKIPPED [1] tests/nbconvert/test_handlers.py:48: Command 'pandoc' is not available
SKIPPED [1] tests/nbconvert/test_handlers.py:77: Command 'pandoc' is not available
SKIPPED [1] tests/nbconvert/test_handlers.py:90: Command 'pandoc' is not available
SKIPPED [1] tests/nbconvert/test_handlers.py:104: Command 'pandoc' is not available
SKIPPED [1] tests/nbconvert/test_handlers.py:117: Command 'pandoc' is not available
SKIPPED [1] tests/nbconvert/test_handlers.py:136: Command 'pandoc' is not available
SKIPPED [7] tests/conftest.py:42: Skipping this test because it's marked 'integration_test'. Run integration tests using the --integration_tests flag.
FAILED tests/services/kernels/test_events.py::test_kernel_action_success_event[shutdown] - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.sock...
FAILED tests/unix_sockets/test_api.py::test_get_spec - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.sock...
============ 2 failed, 950 passed, 15 skipped in 193.15s (0:03:13) =============
It seems to be related to this change a3a9d3d where the configuration for filterwarnings was adjusted.
I've tested it and it might be a little bit flaky. test_get_spec fails for me every time but sometimes test_cull_dead[jp_server_config0] fails instead of test_kernel_action_success_event[shutdown].
The text was updated successfully, but these errors were encountered:
Description
I have a problem with version 2.12.5. I'm building it as an RPM package and two tests started to fail after the upgrade.
Output
It seems to be related to this change a3a9d3d where the configuration for filterwarnings was adjusted.
I've tested it and it might be a little bit flaky.
test_get_spec
fails for me every time but sometimestest_cull_dead[jp_server_config0]
fails instead oftest_kernel_action_success_event[shutdown]
.The text was updated successfully, but these errors were encountered: