David Wilson
b527ff0b66
docs: update Changelog; closes #369 .
2018-10-29 19:45:43 +00:00
David Wilson
536690760d
issue #369 : teach CallChain to reset the connection.
2018-10-29 19:41:03 +00:00
David Wilson
33412927f5
issue #369 : refactor Connection to support reset()
...
Now the tests pass.
2018-10-29 19:34:50 +00:00
David Wilson
9b7c958e2e
issue #369 : refactor ContextService to support reset().
2018-10-29 19:30:56 +00:00
David Wilson
519faa3b3b
issue #369 : add Connection.reset() test.
2018-10-29 18:54:26 +00:00
David Wilson
89852db163
issue #370 : add 'disconnect resets connection' test
2018-10-29 16:32:34 +00:00
David Wilson
c510e58f9b
issue #352 : add test for disconnect message.
2018-10-29 15:59:36 +00:00
David Wilson
d0f5671887
ansible: split key_from_dict() out into free function.
2018-10-29 15:27:20 +00:00
David Wilson
53d882dcbd
tests: activate faulthandler if available
2018-10-29 15:25:15 +00:00
David Wilson
efed9da474
docs: update Changelog.
2018-10-26 13:59:06 +01:00
David Wilson
9ec360c26d
core: split out & extend Broker.sync_call()
2018-10-26 13:58:12 +01:00
David Wilson
592d6fc8d3
tests: fix CaptureStreamHandler on 2.6.
2018-10-26 13:22:33 +01:00
David Wilson
3429e57825
tests: fix target_test 3.x compat.
2018-10-26 13:04:00 +01:00
David Wilson
3585ee74f7
tests: split out ansible_tests requirements
...
Also remove hard-coded Ansible version, the tests don't need it, nor
does local testing most of the time
2018-10-26 12:58:08 +01:00
David Wilson
905ab890fb
tests: stop idiotic Travis TTY/pip progress bar spam
2018-10-26 12:30:40 +01:00
David Wilson
0dc3f8accf
ansible: fix another target.py format string.
2018-10-26 11:26:15 +01:00
David Wilson
b70c57a2cb
tests: fix wstatus_to_str() test on 3.x
...
Now they use enums.
2018-10-26 11:22:33 +01:00
David Wilson
f343bbba3a
unix: fix exception catch on 3.x.
2018-10-26 11:20:18 +01:00
David Wilson
0864155592
tests: pin pycparser to last 2.6-compatible version
2018-10-26 11:15:41 +01:00
David Wilson
7e04ee8af9
ansible: fix is_good_temp_dir() log format
2018-10-26 11:11:25 +01:00
David Wilson
c1c7e5171d
tests: fix fork FD sharing in unix_test.
2018-10-26 11:08:12 +01:00
David Wilson
0cf6019bac
tests: rename one more stubs/ssh.py reference.
2018-10-26 10:55:54 +01:00
David Wilson
778892eaaa
issue #76 : call_function_test fix.
2018-10-26 10:54:22 +01:00
David Wilson
6451117d00
Add venvs/ to gitignore
2018-10-26 10:23:34 +01:00
David Wilson
a7d635dff8
tests: import ara_env helper script.
2018-10-26 10:16:46 +01:00
David Wilson
0d04e940b7
master: docstring fixes.
2018-10-26 09:12:00 +00:00
David Wilson
8891fda48a
docs: getting_started typo
2018-10-26 09:09:54 +00:00
David Wilson
4e3830d75e
tests: add basic unix_test.py.
2018-10-26 10:08:06 +01:00
David Wilson
918f709420
tests: import a bunch more random unchecked in pieces.
2018-10-26 09:45:17 +01:00
David Wilson
0d70fc1324
tests: import z hostfile
2018-10-26 09:34:31 +01:00
David Wilson
36e5ca4115
tests: import missing main_with_no_exec_guard.py.
2018-10-26 09:33:28 +01:00
David Wilson
3943634fa6
tests: import bench/large_messages.py.
2018-10-26 09:32:09 +01:00
David Wilson
73055150f3
tests: move stub tools, into subdir, import docker_test.
2018-10-26 09:21:29 +01:00
David Wilson
7647c95f34
issue #76 : add one more test for indirect siblings
2018-10-25 13:25:27 +01:00
David Wilson
58d0a45738
issue #76 : quieten routing errors.
...
Receiving DEL_ROUTE without a corresponding ADD_ROUTE is now legit
behaviour, so don't print an error in this case.
Don't print an error for dropped messages if the reply_to indicates the
sender doesn't care about a response (dead and no_reply)
2018-10-24 13:04:03 +01:00
David Wilson
fba52a0edf
issue #76 : add API for ansible_mitogen to get route list
...
Earlier commit moved Stream.routes attribute into a private map
belonging to RouteMonitor, to make upgrades smoother. This adds a new
accessor method to RouteMonitor.
2018-10-24 13:02:46 +01:00
David Wilson
f3e19d81da
docs: reorder sections
2018-10-23 23:26:12 +01:00
David Wilson
96b88cc70f
issue #76 : docs: update Changelog.
2018-10-23 23:24:34 +01:00
David Wilson
bd71a2760e
docs: describe disconnect propagation; closes #76 .
2018-10-23 23:16:48 +01:00
David Wilson
431051f69b
issue #76 : parent: broadcast DEL_ROUTE to interested parties
...
Now rather than simply propagate DEL_ROUTE upwards towards the parent,
we broadcast it downward to any stream that ever sent a message toward
any of the routes that have just become disconnected.
2018-10-23 23:09:33 +01:00
David Wilson
b9bafb78af
issue #76 : add stub DEL_ROUTE handler to core.py.
...
This handler knows how to fire 'disconnect' event on reception of a
DEL_ROUTE, and nothing more.
2018-10-23 23:08:35 +01:00
David Wilson
babe3eec31
issue #76 : record egress context IDs
...
Used in a subsequent change to broadcast DEL_ROUTE to potentially
interested children.
2018-10-23 23:07:49 +01:00
David Wilson
d7d40f1123
issue #76 : reduce Context duplication during unpickling
...
When unpickling a context, arrange for there to be a single instance
representing that context, managed by the corresponding router. This
context_by_id() was already in use by parent.py, it just needs to move
down.
This to eventually reach the point where a single Context exists that
needs 'disconnect' fired on it, so all sleeping receivers are definitely
woken.
2018-10-23 22:16:09 +01:00
David Wilson
72da291b24
docs: fix up incomplete Temporary Files section.
2018-10-23 16:53:06 +01:00
David Wilson
cfcc7c0273
Bump version for release.
2018-10-23 16:14:40 +01:00
David Wilson
48bc91550b
docs: update changelog.
2018-10-23 16:14:07 +01:00
David Wilson
fd5066d671
tests: teach various tests to cleanup /tmp when they're done.
2018-10-23 15:34:18 +01:00
David Wilson
40d2cf7e25
docs: update changelog.
2018-10-23 15:34:06 +01:00
David Wilson
7fd9fb0014
issue #397 : fix another case where stray tmpdirs can be left behind.
...
Newer Ansibles use atexit.register() to invoke cleanup, so we need to
run those registrations after each run.
2018-10-23 15:29:03 +01:00
David Wilson
1b17aa1d1a
ansible: fix temp cleanup regression and add test; closes #397 .
2018-10-23 14:42:44 +01:00