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] Test on linux randomly fails with "Failed: Timeout" #6822

Closed
drew2a opened this issue Mar 21, 2022 · 1 comment · Fixed by #6848
Closed

[Tests] Test on linux randomly fails with "Failed: Timeout" #6822

drew2a opened this issue Mar 21, 2022 · 1 comment · Fixed by #6848

Comments

@drew2a
Copy link
Contributor

drew2a commented Mar 21, 2022

Error Message

Failed: Timeout >20.0s

Stacktrace

kwargs = {'channel_seeder': <tribler.core.components.libtorrent.download_manager.download_manager.DownloadManager object at 0x7...r': <tribler.core.components.gigachannel_manager.gigachannel_manager.GigaChannelManager object at 0x7fef7c3d20a0>, ...}
coro = <coroutine object test_channel_update_and_download at 0x7fef7c5da3c0>
task = <Task pending name='Task-6109' coro=<test_channel_update_and_download() running at /home/jenkins/workspace/GH_Tribler_...nkins/.local/lib/python3.8/site-packages/ipv8/taskmanager.py:128, <TaskWakeupMethWrapper object at 0x7fef7c7e5bb0>()]>>

    @functools.wraps(func)
    def inner(**kwargs):
        coro = func(**kwargs)
        if coro is not None:
            task = asyncio.ensure_future(coro, loop=_loop)
            try:
>               _loop.run_until_complete(task)

../../../../.local/lib/python3.8/site-packages/pytest_asyncio/plugin.py:195: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.8/asyncio/base_events.py:603: in run_until_complete
    self.run_forever()
/usr/lib/python3.8/asyncio/base_events.py:570: in run_forever
    self._run_once()
/usr/lib/python3.8/asyncio/base_events.py:1823: in _run_once
    event_list = self._selector.select(timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selectors.EpollSelector object at 0x7fef7c365130>, timeout = 0.963

    def select(self, timeout=None):
        if timeout is None:
            timeout = -1
        elif timeout <= 0:
            timeout = 0
        else:
            # epoll_wait() has a resolution of 1 millisecond, round away
            # from zero to wait *at least* timeout seconds.
            timeout = math.ceil(timeout * 1e3) * 1e-3
    
        # epoll_wait() expects `maxevents` to be greater than zero;
        # we want to make sure that `select()` can be called when no
        # FD is registered.
        max_ev = max(len(self._fd_to_key), 1)
    
        ready = []
        try:
>           fd_event_list = self._selector.poll(timeout, max_ev)
E           Failed: Timeout >20.0s

/usr/lib/python3.8/selectors.py:468: Failed

Jenkins console output
PR: #6821

@drew2a
Copy link
Contributor Author

drew2a commented Mar 22, 2022

This behavior could be caused by parallel Jobs executions.
I disabled concurrent builds for Linux to observe will it have effect or not:
image

UPD: it doesn't help, Jenkins' settings have been reverted back.

@drew2a drew2a self-assigned this Apr 6, 2022
@drew2a drew2a added this to the 7.13.0 April milestone Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant