-
Notifications
You must be signed in to change notification settings - Fork 550
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
0.15.3: pytest is failing #429
Comments
Just tested 0.16.0. Looks like it is a bit better however stil l15 units are failing ================================================================================= FAILURES =================================================================================
________________________________________________________________________ TestDealloc.test_dealloc_1 ________________________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_dealloc.py", line 63, in test_dealloc_1
self.assertEqual(err, b'', 'stderr is not empty')
File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b'' : stderr is not empty
____________________________________________________________ Test_UV_Signals.test_signals_and_custom_handler_1 _____________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 298, in test_signals_and_custom_handler_1
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 282, in runner
proc.send_signal(signal.SIGUSR1)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "uvloop/handles/process.pyx", line 653, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
__________________________________________________________ Test_UV_Signals.test_signals_sigint_and_custom_handler __________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 231, in test_signals_sigint_and_custom_handler
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 223, in runner
proc.send_signal(signal.SIGHUP)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "uvloop/handles/process.pyx", line 653, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
___________________________________________________________ Test_UV_Signals.test_signals_sigint_pycode_continue ____________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 100, in test_signals_sigint_pycode_continue
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 95, in runner
proc.send_signal(signal.SIGINT)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "uvloop/handles/process.pyx", line 653, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
_____________________________________________________________ Test_UV_Signals.test_signals_sigint_pycode_stop ______________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 55, in test_signals_sigint_pycode_stop
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 50, in runner
proc.send_signal(signal.SIGINT)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "uvloop/handles/process.pyx", line 653, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
________________________________________________________________ Test_UV_Signals.test_signals_sigint_uvcode ________________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 139, in test_signals_sigint_uvcode
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 135, in runner
proc.send_signal(signal.SIGINT)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "uvloop/handles/process.pyx", line 653, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
_________________________________________________________ Test_UV_Signals.test_signals_sigint_uvcode_two_loop_runs _________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 178, in test_signals_sigint_uvcode_two_loop_runs
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 174, in runner
proc.send_signal(signal.SIGINT)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "uvloop/handles/process.pyx", line 653, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
_________________________________________________________________ Test_UV_Signals.test_wakeup_fd_unchanged _________________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 350, in test_wakeup_fd_unchanged
self.loop.run_until_complete(runner())
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 347, in runner
self.assertEqual(err, b'')
File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
____________________________________________________________ Test_AIO_Signals.test_signals_and_custom_handler_1 ____________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 298, in test_signals_and_custom_handler_1
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 282, in runner
proc.send_signal(signal.SIGUSR1)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
self._proc.send_signal(signal)
File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
_________________________________________________________ Test_AIO_Signals.test_signals_sigint_and_custom_handler __________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 231, in test_signals_sigint_and_custom_handler
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 227, in runner
self.assertEqual(err, b'')
File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
___________________________________________________________ Test_AIO_Signals.test_signals_sigint_pycode_continue ___________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 100, in test_signals_sigint_pycode_continue
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 97, in runner
self.assertEqual(err, b'')
File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
_____________________________________________________________ Test_AIO_Signals.test_signals_sigint_pycode_stop _____________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 55, in test_signals_sigint_pycode_stop
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 50, in runner
proc.send_signal(signal.SIGINT)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
self._proc.send_signal(signal)
File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
_______________________________________________________________ Test_AIO_Signals.test_signals_sigint_uvcode ________________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 139, in test_signals_sigint_uvcode
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 135, in runner
proc.send_signal(signal.SIGINT)
File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
self._transport.send_signal(signal)
File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
self._proc.send_signal(signal)
File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
________________________________________________________ Test_AIO_Signals.test_signals_sigint_uvcode_two_loop_runs _________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 178, in test_signals_sigint_uvcode_two_loop_runs
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 176, in runner
self.assertIn(b'KeyboardInterrupt', err)
File "/usr/lib64/python3.8/unittest/case.py", line 1179, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
File "/usr/lib64/python3.8/unittest/case.py", line 753, in fail
raise self.failureException(msg)
AssertionError: b'KeyboardInterrupt' not found in b'Traceback (most recent call last):\n File "<string>", line 3, in <module>\n File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/uvloop/__init__.py", line 7, in <module>\n from .loop import Loop as __BaseLoop # NOQA\nModuleNotFoundError: No module named \'uvloop.loop\'\n'
________________________________________________________________ Test_AIO_Signals.test_wakeup_fd_unchanged _________________________________________________________________
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 350, in test_wakeup_fd_unchanged
self.loop.run_until_complete(runner())
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 347, in runner
self.assertEqual(err, b'')
File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_base.py:695: Skipped
SKIPPED [1] tests/test_context.py:435: this seems to be a bug in asyncio
SKIPPED [1] tests/test_context.py:574: this seems to be a bug in asyncio
SKIPPED [1] tests/test_dns.py:158: Skipped
SKIPPED [1] tests/test_signals.py:362: in 3.8 a ThreadedChildWatcher is used (does not rely on SIGCHLD)
SKIPPED [2] tests/test_sockets.py:23: Skipped
SKIPPED [1] tests/test_sockets.py:192: Skipped
SKIPPED [1] tests/test_sockets.py:248: Skipped
SKIPPED [1] tests/test_sourcecode.py:13: flake8 module is missing
SKIPPED [1] tests/test_sourcecode.py:37: mypy moudule is missing
SKIPPED [1] tests/test_tcp.py:1021: 3.8 has a different method of GCing unclosed streams
SKIPPED [1] tests/test_tcp.py:3012: bpo-39951
SKIPPED [1] tests/test_tcp.py:1762: Skipped
SKIPPED [1] tests/test_tcp.py:1481: Skipped
SKIPPED [1] tests/test_tcp.py:1445: Skipped
SKIPPED [1] tests/test_tcp.py:2072: asyncio does not support SSL over SSL
SKIPPED [1] tests/test_tcp.py:3094: Skipped
SKIPPED [1] tests/test_tcp.py:2579: Skipped
SKIPPED [1] tests/test_tcp.py:2805: Skipped
SKIPPED [1] tests/test_tcp.py:2218: asyncio does not support renegotiation
SKIPPED [1] tests/test_tcp.py:2436: Skipped
SKIPPED [1] tests/test_tcp.py:2338: Skipped
SKIPPED [1] tests/test_tcp.py:2872: Skipped
SKIPPED [1] tests/test_tcp.py:2930: Skipped
SKIPPED [1] tests/test_tcp.py:1533: Skipped
SKIPPED [1] tests/test_tcp.py:1828: Skipped
SKIPPED [1] tests/test_tcp.py:1649: Skipped
SKIPPED [1] tests/test_tcp.py:1698: Skipped
SKIPPED [1] tests/test_tcp.py:1990: Skipped
SKIPPED [1] tests/test_tcp.py:1927: Skipped
SKIPPED [1] tests/test_tcp.py:1518: Skipped
SKIPPED [1] tests/test_tcp.py:2500: Skipped
FAILED tests/test_dealloc.py::TestDealloc::test_dealloc_1 - AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b'' : stderr is not empty
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_and_custom_handler_1 - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_and_custom_handler - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_continue - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_stop - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode_two_loop_runs - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_and_custom_handler_1 - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_and_custom_handler - AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_continue - AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_stop - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode_two_loop_runs - AssertionError: b'KeyboardInterrupt' not found in b'Traceback (most recent cal...
FAILED tests/test_signals.py::Test_AIO_Signals::test_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n Fil[229 chars]\'\n' != b''
=================================================== 15 failed, 446 passed, 33 skipped, 2 deselected in 108.09s (0:01:48) =================================================== |
@kloczek I think many of the failures above can be worked around by deleting the
|
And for the record, here's my just reworked version of this package, which I've split in two definitions as I needed a bootstrap for another package to avoid a dependency cycle: ;;; Test-less bootstrap variant.
(define-public python-uvloop-bootstrap
(package
(name "python-uvloop-bootstrap")
(version "0.21.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "uvloop" version))
(sha256
(base32 "1qq46ym3ymzfn4j6fnykfmr1f4qnb7x7p15dlw37hi38v87jpw9v"))
(modules '((guix build utils)))
(snippet
'(begin (delete-file-recursively "vendor")
(delete-file "uvloop/loop.c")))))
(build-system pyproject-build-system)
(arguments
`(#:tests? #f ;avoid extra dependencies
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'preparations
(lambda* (#:key inputs #:allow-other-keys)
;; Use packaged libuv.
(substitute* "setup.py" (("self.use_system_libuv = False")
"self.use_system_libuv = True"))
;; Replace hardcoded shell command.
(substitute* "uvloop/loop.pyx"
(("b'/bin/sh'")
(string-append
"b'" (search-input-file inputs "bin/sh") "'"))))))))
(native-inputs (list python-cython python-setuptools python-wheel))
(inputs (list bash-minimal libuv))
(home-page "https://github.com/MagicStack/uvloop")
(synopsis "Fast implementation of asyncio event loop on top of libuv")
(description
"@code{uvloop} is a fast, drop-in replacement of the built-in asyncio
event loop. It is implemented in Cython and uses libuv under the hood.")
(license license:expat)))
(define-public python-uvloop
(package/inherit python-uvloop-bootstrap
(name "python-uvloop")
(arguments
(substitute-keyword-arguments (package-arguments python-uvloop-bootstrap)
((#:phases phases '%standard-phases)
#~(modify-phases #$phases
(add-before 'check 'delete-uvloop-dir
(lambda _
;; Remove Python module, which conflicts with the installed
;; version, but lacks the built C module.
(delete-file-recursively "uvloop")))))
((#:test-flags _ ''())
#~(list ;"--import-mode=importlib" ;use installed modules
;; Ignore Python module, which conflicts with the installed
;; version, but lacks the built C module.
"--ignore=uvloop"
;; The tests are prone to get stuck. Use pytest-timeout’s
;; --timeout flag to get a meaningful idea about where.
"--timeout=300"
"--timeout-method=thread"
"-k"
(string-append
;; Timeout, because SIGINT cannot be sent to child.
"not test_signals_sigint_pycode_continue "
"and not test_signals_sigint_pycode_stop "
"and not test_signals_sigint_uvcode "
"and not test_signals_sigint_uvcode_two_loop_runs "
;; This test is racy and prone to get stuck on various
;; platforms, possibly a aiohttp issue (see:
;; https://github.com/MagicStack/uvloop/issues/412)
"and not test_remote_shutdown_receives_trailing_data "
;; It looks like pytest is preventing custom stdout/stderr
;; redirection, even with -s.
"and not test_process_streams_redirect "
;; Expects 'env' to be found in an empty environment (PATH
;; unset) (see:
;; https://github.com/MagicStack/uvloop/issues/647).
"and not test_process_env_2 "
;; This test needs a name resolver/networking.
"and not test_getaddrinfo ")))
((#:tests? _ #f) #t)))
(native-inputs
(modify-inputs (package-native-inputs python-uvloop-bootstrap)
(append python-aiohttp
python-psutil
python-pyopenssl
python-pytest
python-pytest-timeout
python-pytest-xdist))))) |
PYTHONASYNCIODEBUG
in env?: YesJust normal build, install and test cycle used on building package from non-root account:
The text was updated successfully, but these errors were encountered: