forked from goodboy/tractor
1
0
Fork 0

Comments tweak

multiproc_debug
Tyler Goodlet 2020-10-14 09:06:40 -04:00
parent bba47e4c7a
commit 61a8df358c
1 changed files with 9 additions and 5 deletions

View File

@ -3,6 +3,8 @@ That native debug better work!
All these tests can be understood (somewhat) by running the equivalent All these tests can be understood (somewhat) by running the equivalent
`examples/debugging/` scripts manually. `examples/debugging/` scripts manually.
TODO: None of these tests have been run successfully on windows yet.
""" """
from os import path from os import path
@ -12,7 +14,7 @@ import pexpect
from conftest import repodir from conftest import repodir
# TODO: # TODO: The next great debugger audit could be done by you!
# - recurrent entry to breakpoint() from single actor *after* and an # - recurrent entry to breakpoint() from single actor *after* and an
# error in another task? # error in another task?
# - root error before child errors # - root error before child errors
@ -314,12 +316,14 @@ def test_multi_subactors_root_errors(spawn):
def test_multi_nested_subactors_error_through_nurseries(spawn): def test_multi_nested_subactors_error_through_nurseries(spawn):
"""Verify deeply nested actors that error trigger debugger entries """Verify deeply nested actors that error trigger debugger entries
at each level up the tree. at each actor nurserly (level) all the way up the tree.
""" """
# TODO: inside this script there's still a bug where if the parent # NOTE: previously, inside this script was a a bug where if the
# errors before a 2 levels lower actor has released the lock, the # parent errors before a 2-levels-lower actor has released the lock,
# parent tries to cancel it but it's stuck in the debugger? # the parent tries to cancel it but it's stuck in the debugger?
# A test (below) has now been added to explicitly verify this is
# fixed.
child = spawn('multi_nested_subactors_error_up_through_nurseries') child = spawn('multi_nested_subactors_error_up_through_nurseries')