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.
6 years ago
David Wilson
dfc67b89fd
docs: some more cleanups
...
- add faulthandler/thread stacks to changelog.
- various api.rst cleanups.
- docs: explain chain_id in howitworks.
6 years ago
David Wilson
6cb0e422e9
docs: changelog typo.
6 years ago
David Wilson
65f03e03f5
tests: remote_tmp test fixes.
6 years ago
David Wilson
cc4835ce99
docs: update changelog.
6 years ago
David Wilson
f0f828033f
docs: update changelog.
6 years ago
David Wilson
ae446ad7c8
docs: fix changelog
6 years ago
David Wilson
c9596568be
docs: update changelog.
6 years ago
David Wilson
2c0244eea7
docs: more tweaks
6 years ago
David Wilson
c8081e7ca1
docs: typo
6 years ago
David Wilson
e241081cae
ansible: stop sharing target temp_dir in runner.
...
This cannot work with delegate_to, since delegate_to permits multiple
concurrent tasks to be executing on the same target.
6 years ago
David Wilson
020482e554
dosc: update changelog
6 years ago
David Wilson
4d3873c784
core: call chains v3: abstract it into a new CallChain class.
6 years ago
David Wilson
1bf9b2c1a3
docs: update changelog.
6 years ago
David Wilson
aa9400a3b9
docs: fix changelog
6 years ago
David Wilson
a3957d6aaf
parent: add Context.forget_chain().
6 years ago
David Wilson
1247d1fce6
docs: update changelog.
6 years ago
David Wilson
42b1b3d286
core: support mitogen_chain dispatcher option.
6 years ago
David Wilson
07845d2f59
docs: update changelog.
6 years ago
David Wilson
57fb00cf6b
docs: update changelog.
6 years ago
David Wilson
1b6dea24ba
docs: update changelog.
6 years ago
David Wilson
6c8a667691
docs: update Changelog.
6 years ago
David Wilson
7d62a53264
issue #337 : ssh: disabling PTYs round 2: make it automatic.
6 years ago
David Wilson
5004207705
issue #337 : ssh: support disabling PTY allocation
...
`.ssh(batch_mode=True)`
6 years ago
David Wilson
8ab11f415f
ansible: better support for diagnosing hangs
...
* Always enable the faulthandler module in the top-level process if it
is available.
* Make MITOGEN_DUMP_THREAD_STACKS interval configurable, to better
handle larger runs.
* Add docs subsection on diagnosing hangs.
Conflicts:
ansible_mitogen/process.py
6 years ago
David Wilson
897bc07ea0
docs: update changelog.
6 years ago
David Wilson
42f07466d2
setns: always assume a user identity, default to root.
...
Without this, an invocation like:
sudo ansible-playbook foo.yml
Where foo.yml uses setns, could inherit the HOME environment variable
from the external non-root user, which broke /usr/bin/mysql_upgrade and
plenty more.
6 years ago
David Wilson
c32b8d9728
docs: fix up doas documentation.
6 years ago
David Wilson
4134218ef4
docs: update changelog.
6 years ago
David Wilson
d36a320e7f
docs: update contributors.
6 years ago
David Wilson
fcc7429111
docs: changelog: split out enhancements
6 years ago
David Wilson
52cd7fddc1
docs: update changelog.
6 years ago
David Wilson
7458dfae85
ansible: avoid roundtrip for small file transfers.
...
Calls to connect.put_file() where the file is sufficiently small enough
to fit in a single RPC proceed without waiting for an RPC response. If
the write fails the target context will log an exception, and any
subsequent step depending on the written file will fail.
I verified every built-in action plugin for file transfer calls, and
they all depend on the transferred file in the following step, so this
should be safe.
Reduces template/copy actions to 2-RTT, loop-20-templates.yml runtime
reduced from 30 seconds to 10 seconds over a 250ms link compared to
v0.2.2, and from 123 seconds compared to vanilla with pipelining
enabled.
6 years ago
David Wilson
84521b714f
docs: update changelog.
6 years ago
David Wilson
76c4cf57bd
docs: update changelog
6 years ago
David Wilson
bce4f59138
issue #345 : disable IdentitiesOnly by default.
6 years ago
David Wilson
e84de489eb
issue #336 : update changelog.
...
Closes #336 .
6 years ago
David Wilson
06cae11e52
Add freze alabaster version to try fix layout issue.
6 years ago
David Wilson
2e3d04bbb8
issue #342 : forward _create_control_path() to SSH plugin.
...
network_cli connection type loads the "ssh" (mitogen_ssh) plugin and
expects a private method to exist.
6 years ago
David Wilson
bc682ce5a0
docs: update supported versions.
6 years ago
David Wilson
77b68f9b9d
issue #321 : docs fixes
6 years ago
David Wilson
ac9b84d237
issue #321 : 2.4+ compatibility fixes, disable test on Vanilla.
6 years ago
David Wilson
f24f02ba06
issue #321 : take remote_tmp and system_tmpdirs into account.
...
Can't simply ignore these settings as some users may have weird noexec
filesystems.
6 years ago
David Wilson
a2686b1a2c
issue #321 : simplify temp directory handling.
6 years ago
David Wilson
27b64a484b
docs: document mitogen.core.CHUNK_SIZE.
6 years ago
David Wilson
ec8d759d46
docs: document one more.
6 years ago
David Wilson
442d88e3d7
docs: many more fixes/merges.
6 years ago
David Wilson
a561fb79e5
docs: merge more docs back into mitogen/core.py.
6 years ago
David Wilson
06e2e846c5
parent: don't generate illegal default remote names.
...
getpass.getuser() output may contain slashes, which must be avoided as
they break virtualenv when present in argv[0].
Closes #344 .
6 years ago
David Wilson
30ca569716
docs: Update Changelog.
6 years ago
David Wilson
a6995a5288
issue #338 : refactor env handling into class and fix tests.
6 years ago
David Wilson
ad365dad56
issue #340 : one more test, update Changelog.
6 years ago
David Wilson
8e35103185
docs: Update Changelog.
6 years ago
David Wilson
9365f254d2
Update ChangeLog.
6 years ago
David Wilson
053c594d65
ansible: prevent logs spamming user console on exit.
...
Closes #331 .
6 years ago
David Wilson
81c8156965
Support LXD; closes #339 .
6 years ago
David Wilson
898c06f1b9
docs: host demo on Vimeo.
6 years ago
David Wilson
232aaf5c95
Merge branch 'dmw'
6 years ago
David Wilson
f4a66194e4
ansible: Py3.x fixes for Ansible PR #41749 workaround.
6 years ago
David Wilson
3b10920157
docs: delete compared.rst because somehow it's in search results.
6 years ago
David Wilson
196f76ff22
Remove staticmethod from docs.
...
Can re-add this later for 3.x, but it's pretty impossible in general for
2.x.
Closes #313 .
6 years ago
David Wilson
9b2417e62d
docs: add funny testimonial
6 years ago
David Wilson
45c2b04456
docs: add missing changelog entry.
6 years ago
David Wilson
d64729e041
Bump version for release.
6 years ago
David Wilson
6813443d09
docs: minor tweaks.
6 years ago
David Wilson
ebf721411c
docs: add known issue
6 years ago
David Wilson
21eda90a67
docs: reorder changelog
6 years ago
David Wilson
998762ab4f
docs: update changelog.
6 years ago
David Wilson
5d67ce7746
service: service pool threads should respect _profile_hook.
6 years ago
David Wilson
3c55571fe2
docs: update changelog
6 years ago
David Wilson
22bab87821
issue #319 : avoid TCSAFLUSH flag on WSL.
...
Closes #319 .
6 years ago
David Wilson
17c5bd26e1
Update changelog.
6 years ago
David Wilson
3138982ef4
docs: link mitogen-announce mailing list.
6 years ago
David Wilson
a29a883dfc
issue #311 : docs: comment out Ansible 2.6 for now.
6 years ago
David Wilson
662b2d0668
docs: whups, add missing contributors entry
6 years ago
David Wilson
50670430ec
docs: add thanks to release notes
6 years ago
David Wilson
c5ea7c45a1
comments/docs: correct mitogen.master.Context -> mitogen.parent.Context.
6 years ago
David Wilson
2c74eac19a
issue #291 : more Ansible-compatible script invocation
...
When running any kind of script, rewrite the hashbang like Ansible does,
but subsequently ignore it and explicitly use a fragment of shell from
the ansible_*_interpreter variable to call the interpreter, just like
Ansible does.
This fixes hashbangs containing '/usr/bin/env A=1 bash' on Linux, where
putting that into a hashbang line results in an infinite loop.
6 years ago
David Wilson
11c73baa9c
docs: update Changelog.
6 years ago
David Wilson
6b79db2ecd
docs: document local connection process model difference.
6 years ago
David Wilson
b5e7e97c62
issue #291 : update changelog.
6 years ago
David Wilson
f977be2868
issue #291 : permit supplying a full Python argv.
6 years ago
Daniel Quackenbush
3297552f65
Updated readme with build status, updated docs
6 years ago
David Wilson
15d68b3c32
issue #309 : fix environment cleanup regression.
...
Closes #309 .
6 years ago
David Wilson
09d077ebd7
docs: update release notes
6 years ago
David Wilson
a5fae0d084
docs: add jgadling to Contributors
6 years ago
David Wilson
70d732d35b
docs: add "no route" to known issues.
6 years ago
David Wilson
8609fa5f44
docs: link to PyPI release, not GitHub archive URL.
...
Now download counts are visible via PSF BigQuery.
6 years ago
David Wilson
184104ce92
issue #303 : add doas to the docs
6 years ago
David Wilson
f20274ea18
docs: fix lock icon.
6 years ago
David Wilson
e609d1b1fb
docs: glaring ancient typo.
6 years ago
David Wilson
f2ee5ade7e
Update Changelog.
6 years ago
David Wilson
9a453d4753
Bump version for release.
6 years ago
David Wilson
a61212ffb7
docs: one more known issue.
6 years ago
David Wilson
63c7a3013d
docs: ansible: add workaround for 'raw' support.
6 years ago
David Wilson
68cf84762f
docs: mention synchronize/delegation issue.
6 years ago
David Wilson
ab0107440a
docs: typo
6 years ago
David Wilson
7cd89f0290
docs: add 'will it work' intuition.
6 years ago
David Wilson
2b507c7b15
docs: fix text.
6 years ago
David Wilson
f5b9f5ff59
docs: add 'raw' to 0.2 in-scope
6 years ago