Commit Graph

395 Commits

Author SHA1 Message Date
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 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 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 fd5066d671 tests: teach various tests to cleanup /tmp when they're done. 2018-10-23 15:34:18 +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
David Wilson e45e5d3e06 tests: Document Python versions in build_docker_images.py 2018-10-04 22:52:32 +01:00
David Wilson 3aa5c4c53d issue #373: parse the child process wait status
Don't log the raw waitpid() result, convert it to a useful string first.
2018-10-03 13:51:11 +01:00
David Wilson 9d070541d9 ansible: try to create tempdir if missing.
Closes #358.
2018-10-02 21:06:00 +01:00
David Wilson 6dd1001d7a tests: move kubectl into new subdir
Fixes tab completion with tests/ dir :)

CC @yannig
2018-10-02 20:31:17 +01:00
David Wilson 130e42a932 tests: prevent compare_output_test running on import. 2018-10-02 20:30:18 +01:00
David Wilson 4c81eba599 Merge commit 'refs/pull/377/head' of github.com:dw/mitogen into dmw
(Pull #377)

Changes:
- additional_parameters -> extra_args
- Merge with kubectl changes from dmw branch
- Update docs
- Remove unused username class member
- Avoid mutable kubectl_args class member
- Use six.iteritems
2018-10-02 20:00:00 +01:00
David Wilson 4146648759 master: log error an refuse __main__ import if no guard detected.
Closes #366.
2018-10-02 19:19:30 +01:00
David Wilson 6dddef0c45 Make image_prep work on Ubuntu. 2018-10-02 19:19:30 +01:00
David Wilson 2eb3ea78d6 tests: remove a bunch of stray debug 2018-10-02 19:19:30 +01:00
David Wilson 21a7aac220 tests: import custom binaries for tests
Same for async tests.
2018-10-02 19:19:30 +01:00
David Wilson dfb4930fce tests: import custom binaries for tests
It means Linux<->OS X runs work fine without manual hackery.
2018-10-02 19:19:30 +01:00
David Wilson 564113874b tests: explicitly define localhost in common-hosts 2018-10-02 19:19:30 +01:00
David Wilson 5521945bd2 ansible: temporary files take 5. 2018-10-02 19:19:30 +01:00
David Wilson f6b74992e1 tests: fix apparently erroneous localhost delegation.
The stack delegates to localhost, which has ansible_python_interpreter
set.
2018-10-02 19:19:30 +01:00
David Wilson e85760477b tests: fix connection/_put_file.yml
Was statting wrong destination path, and comparing floats that don't
roundtrip serialization reliably.
2018-10-02 19:19:30 +01:00
David Wilson 638e473ff1 tests: hacksmash synchronize test to work
Avoid password typing idiocy.
2018-10-02 19:19:30 +01:00
Yannig Perré 17548d1e49 [Enhancement] handle kubectl vars from Ansible connector.
This change allows the kubectl connector to support the same options as
Ansible's original connector.

The playbook sample comes with an example of a pod containing two containers
and checking that moving from one container to another, the version of Python
changes as expected.
2018-10-02 11:54:15 +02:00
dw 1a5dadf732
Merge pull request #383 from moreati/pytz-2018.05
Update pytz to 2018.05 (needed by babel 2.6.0)
2018-10-01 21:27:27 +01:00
Alex Willmer 03be0afeeb tests: Add tests of mitogen.utils.cast() 2018-09-30 21:37:15 +01:00
Alex Willmer 9fbcb67665 Update pytz to 2018.05 (needed by babel 2.6.0)
On Ubuntu 18.04 (others not tested) installing the dev requirements
fails with the following error

babel 2.6.0 has requirement pytz>=0a, but you'll have pytz 2012d which
is incompatible.

Despite the comment in dev_requirements.txt pytz-2012d is not the most
recent version to support Python 2.6. In fact the latest release of pytz
supports Python 2.6.
2018-09-30 21:34:25 +01:00
dw 4356fdf027
Merge pull request #376 from Yannig/kubectl
Kubernetes connection support for mitogen.
2018-09-19 19:39:10 +01:00
Yannig Perré 6828926a36 Kubernetes connection support for mitogen. 2018-09-19 16:52:20 +02:00
Brian Candler d1c84552ec Use `lxc exec --mode=noninteractive` which is more widely compatible
Closes #371
2018-09-18 09:10:43 +01:00
David Wilson 638b196a45 ansible: fix put_file() for large temporary files.
Reverts 49736b3a, large file copies can't avoid the RTT.

The parent stack must be blocked while FileService progresses, as unlike
the small file path, it does not make a snapshot of the (possibly
temporary) file passed by the action plug-in. So we need to keep that
file alive while the service runs.

Add a new integration test and a new soak test to cover both.
2018-09-10 19:09:37 +01:00
David Wilson 001b63074c tests: fix another typo. 2018-09-10 03:18:57 +01:00
David Wilson d5524178bf tests: fix bonehead syntax error. 2018-09-10 02:27:19 +01:00
David Wilson 65f03e03f5 tests: remote_tmp test fixes. 2018-09-10 02:17:01 +01:00
David Wilson 5eb41751f5 tests: import missing connection_passthrough 2018-09-10 01:40:49 +01:00
David Wilson 90f89f95fb ansible: fix exec_command() regression. 2018-09-10 01:31:15 +01:00
David Wilson 7cd4d0828d tests: data/fakessh.py 3.x fixes. 2018-09-10 01:23:29 +01:00
David Wilson 24a44499ca tests: verify Connection.put_file() for small/large files. 2018-09-10 00:26:14 +01:00
David Wilson 4d3873c784 core: call chains v3: abstract it into a new CallChain class. 2018-09-09 18:51:03 +01:00
David Wilson 705d77a9be ansible: remove a bunch more aliasing from connection.py. 2018-09-08 22:31:19 +01:00
David Wilson 66142e7d75 ansible: fork isolated tasks from correct parent.
Closes #355.
2018-09-08 22:17:39 +01:00
David Wilson a3957d6aaf parent: add Context.forget_chain(). 2018-09-08 20:53:11 +01:00
David Wilson 42b1b3d286 core: support mitogen_chain dispatcher option. 2018-09-08 20:53:11 +01:00
David Wilson e5d421e5f4 Update k3 inventory. 2018-09-08 20:53:11 +01:00
David Wilson 426cffd9f5 tests: set no_target_syslog 2018-09-08 20:53:11 +01:00
David Wilson 7d62a53264 issue #337: ssh: disabling PTYs round 2: make it automatic. 2018-09-08 20:53:11 +01:00
David Wilson 5004207705 issue #337: ssh: support disabling PTY allocation
`.ssh(batch_mode=True)`
2018-09-08 20:53:11 +01:00