Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] TestRemoteQueryCommunity.test_process_rpc_query_match_many OSError: [Errno 9] Bad file descriptor #7111

Closed
drew2a opened this issue Oct 27, 2022 · 2 comments

Comments

@drew2a
Copy link
Contributor

drew2a commented Oct 27, 2022

Error occurred here #7110 in https://github.com/Tribler/tribler/actions/runs/3337026709/jobs/5522868389

=================================== FAILURES ===================================
__________ TestRemoteQueryCommunity.test_process_rpc_query_match_many __________
../../../.virtualenvs/.venv/lib/python3.8/site-packages/asynctest/case.py:303: in run
    self._unset_loop()
../../../.virtualenvs/.venv/lib/python3.8/site-packages/asynctest/case.py:207: in _unset_loop
    self.loop.close()
/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/asyncio/unix_events.py:58: in close
    super().close()
/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/asyncio/selector_events.py:92: in close
    self._close_self_pipe()
/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/asyncio/selector_events.py:100: in _close_self_pipe
    self._ssock.close()
/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/socket.py:500: in close
    self._real_close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <socket.socket [closed] fd=-1, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
_ss = <class '_socket.socket'>

    def _real_close(self, _ss=_socket.socket):
        # This function should not reference any globals. See issue #808164.
>       _ss.close(self)
E       OSError: [Errno 9] Bad file descriptor

/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/socket.py:494: OSError
----------------------------- Captured stdout call -----------------------------
[PID:1691] 2022-10-27 11:37:43,476 - INFO - BasicRemoteQueryCommunity(13) - Init. Settings: None.
[PID:1691] 2022-10-27 11:37:43,500 - INFO - BasicRemoteQueryCommunity(13) - Init. Settings: None.
[PID:1691] [202](https://github.com/Tribler/tribler/actions/runs/3337026709/jobs/5522868389#step:4:203)2-10-27 11:38:42,723 - INFO - EVA(403) - Shutting down...
[PID:1691] 2022-10-27 11:38:42,724 - INFO - EVA(416) - Shutting down completed
[PID:1691] 2022-10-27 11:38:42,726 - INFO - EVA(403) - Shutting down...
[PID:1691] 2022-10-27 11:38:42,726 - INFO - EVA(416) - Shutting down completed
----------------------------- Captured stderr call -----------------------------

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++

~~~~~~~~~~~~~~ Stack of ThreadPoolExecutor-37_0 (140581309245184) ~~~~~~~~~~~~~~
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/threading.py", line 890, in _bootstrap
    self._bootstrap_inner()
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/runner/.virtualenvs/.venv/lib/python3.8/site-packages/sentry_sdk/integrations/threading.py", line 67, in run
    return old_run_func(self, *a, **kw)
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/concurrent/futures/thread.py", line 78, in _worker
    work_item = work_queue.get(block=True)

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
@drew2a
Copy link
Contributor Author

drew2a commented Nov 9, 2022

https://github.com/Tribler/tribler/actions/runs/3429045289/jobs/5714137359

src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py . [ 25%]
.................EE

==================================== ERRORS ====================================
__________________ ERROR at setup of test_add_torrents_no_dir __________________

event_loop = <Looptime_UnixSelectorEventLoop running=False closed=False debug=False>
request = <SubRequest 'aiohttp_client' for <Function test_add_torrents_no_dir>>
kwargs = {'aiohttp_client_cls': <class 'aiohttp.test_utils.TestClient'>}
setup = <function _wrap_asyncgen.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x7f2856b221f0>
finalizer = <function _wrap_asyncgen.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x7f2856b220d0>

    @functools.wraps(func)
    def _asyncgen_fixture_wrapper(
        event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: Any
    ) -> _R:
        gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
    
        async def setup() -> _R:
            res = await gen_obj.__anext__()
            return res
    
        def finalizer() -> None:
            """Yield again, to finalize."""
    
            async def async_finalizer() -> None:
                try:
                    await gen_obj.__anext__()
                except StopAsyncIteration:
                    pass
                else:
                    msg = "Async generator fixture didn't stop."
                    msg += "Yield only once."
                    raise ValueError(msg)
    
            event_loop.run_until_complete(async_finalizer())
    
>       result = event_loop.run_until_complete(setup())

../../../.virtualenvs/.venv/lib/python3.8/site-packages/pytest_asyncio/plugin.py:278: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

@drew2a
Copy link
Contributor Author

drew2a commented Nov 30, 2022

Seems to be fixed.

@drew2a drew2a closed this as completed Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant