This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2019-10-28.12:18:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572265095.84.0.80833057987.issue38614@roundup.psfhosted.org>
In-reply-to
Content
AMD64 FreeBSD Shared 3.8:
https://buildbot.python.org/all/#builders/374/builds/10

This buildbot worker is known to be very slow. It became even slower recently.


ERROR: test_communicate (test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.8.koobs-freebsd-564d/build/Lib/test/test_asyncio/test_subprocess.py", line 147, in test_communicate
    exitcode, stdout = self.loop.run_until_complete(task)
  File "/usr/home/buildbot/python/3.8.koobs-freebsd-564d/build/Lib/asyncio/base_events.py", line 608, in run_until_complete
    return future.result()
  File "/usr/home/buildbot/python/3.8.koobs-freebsd-564d/build/Lib/asyncio/tasks.py", line 490, in wait_for
    raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError

Extract of the test:

    def test_communicate(self):
        args = PROGRAM_CAT

        async def run(data):
            proc = await asyncio.create_subprocess_exec(
                *args,
                stdin=subprocess.PIPE,
                stdout=subprocess.PIPE,
            )
            stdout, stderr = await proc.communicate(data)
            return proc.returncode, stdout

        task = run(b'some data')
        task = asyncio.wait_for(task, 60.0)
        exitcode, stdout = self.loop.run_until_complete(task)    # <==== HERE
        self.assertEqual(exitcode, 0)
        self.assertEqual(stdout, b'some data')

It seems like the test has an hardcoded timeout of 1 minute. The first thing that we can do is to increase this timeout to 5 minutes.
History
Date User Action Args
2019-10-28 12:18:15vstinnersetrecipients: + vstinner
2019-10-28 12:18:15vstinnersetmessageid: <1572265095.84.0.80833057987.issue38614@roundup.psfhosted.org>
2019-10-28 12:18:15vstinnerlinkissue38614 messages
2019-10-28 12:18:14vstinnercreate