David Wilson
80b56e61f5
examples: simplistic async_polling.yml
7 years ago
David Wilson
d0b58d176b
ansible: initial support for async jobs
...
Running in a thread to begin with, but this must change.
7 years ago
David Wilson
d727d68068
docs: new Ansible limitation
7 years ago
David Wilson
220a41a2b3
tests: import ansible_helpers_test.
7 years ago
David Wilson
4807abadc4
ansible: fix bug in apply_mode_spec().
7 years ago
David Wilson
277b8e4172
ansible: fix some flake8 errors
...
* Unused imports
* Undefined names in helpers.py
* Copyright header wrapping
7 years ago
David Wilson
f81fe7eb32
ansible: inverted sense of execute paramter
7 years ago
David Wilson
a0756755bc
Remove whoami.yml, it's now done by delegate_to.yml.
7 years ago
David Wilson
9dbbd2e2dd
docs: remove delegate_to limitation
7 years ago
David Wilson
365c4382dd
ansible: basic regression test for delegation/sudo
7 years ago
David Wilson
6442aa47d1
ansible: fix become:true with sudo:true
7 years ago
David Wilson
f649318707
ansible: _remote_chmod() / _fixup_perms2() can be called sometimes.
...
It's used at least by the copy module, even though the result is still
mostly a no-op. _remote_chmod() doesn't accept octal mode, it accepts
symbolic mode. So implement a symbolic parser in helpers.py.
7 years ago
dw
c8cb320832
Merge pull request #94 from moreati/import-no5
...
core: Correct naming of Stream.sent_modules
7 years ago
dw
5d68d6499d
Merge pull request #95 from moreati/lgtm
...
Address lgtm.com warnings
7 years ago
dw
7f46b8f1f3
Merge pull request #99 from moreati/is-wearing-trainers
...
Test and document semantics of is_blacklisted_module()
7 years ago
David Wilson
eeeea25eb9
docs: more Ansible
7 years ago
David Wilson
2837ec2ebe
docs: document one more Ansible limitation
7 years ago
David Wilson
69f4c541a8
docs: Replace shifty hacker dude with plebey skater dude
...
Farewell, shifty hacker dude! May your 0days be many and your
indictments be few
7 years ago
David Wilson
47e2675acc
docs: new Ansible limitation, add new heading
...
Some differences are eventually likely to become permanent, because the
existing behaviour is unforgiveable.
7 years ago
David Wilson
97ff132efd
ansible: better emulate _low_level_execute_command()
...
Still needs a ton of work to emulate argument handling, shell selection,
and output emulation in every case. Unsurprisingly, Ansible documents
none of this.
7 years ago
David Wilson
7654a273d8
core: Handle unpicklable data in dispatch_calls()
...
Sending just via .call_async() would previously crash the child, now it
generates CallError like intended.
7 years ago
Alex Willmer
ba3bc0f7f1
core: Standardise type of Importer.whitelist
...
This seemed a reasonable streamlining, but I'm happy to be overruled.
7 years ago
Alex Willmer
4178c40617
core: Add docstring to is_blacklisted_import()
...
This documents the existing behaviour, which may not be the intended.
7 years ago
Alex Willmer
621f2533f7
tests: Add mitogen.core.is_blacklisted_import() tests
...
These test the current behviour, which may not be exactly the intended
behaviour. Refs #98
7 years ago
Alex Willmer
5d0ae768d8
parent: Fix ModuleForwarder not sending related packages
...
Found due to a LGTM warning about unused loop variable (related). As far
as I can tell the callback was sending fullname multiple times. KeyError
check added because I found NestedTest failed - mitogen.parent had
mitogen as one of it's related, and mitogen was not in the cache.
Refs #61
7 years ago
Alex Willmer
be0b997a4c
ssh, sudo: Remove redundant else clause on bootstrap loop
...
Since the for loops don't contain any break statements the StreamErrors
will always be raised when the loop completes without the method
resturning.
See https://lgtm.com/rules/5980098/
Refs #61
7 years ago
Alex Willmer
7d4317b279
compat: ignore LGTM checks on third party
...
Refs #61
7 years ago
Alex Willmer
7eb123595b
core: Implement Dead.__ne__ & Dead.__hash__
...
Both these addtions are to address warnings in
https://lgtm.com/projects/g/dw/mitogen/alerts/?mode=list . Namely that if
a class defines an equality method then it should also define an
inequality and a hash method.
Refs #61
7 years ago
Alex Willmer
cea53f3be4
core: Correct naming of Stream.sent_modules
...
Fixes #90
7 years ago
David Wilson
49d944340d
examples: simplify example playbooks.
7 years ago
David Wilson
719316daef
docs: Docker typo.
7 years ago
David Wilson
bd482fd56e
issue #93 : enable use_2to3 to see what happens
7 years ago
dw
f633533971
Merge pull request #93 from moreati/import-snake-plissken
...
Use Python 2.4 compatible module import
7 years ago
David Wilson
7cf7c3271a
Add Docker method.
7 years ago
David Wilson
7cf90f6025
Fix some more Python 2.4 syntax
7 years ago
Alex Willmer
880ad11429
Use Pythabsoluteon 2.4 compatible module import
...
Python 2.4 does not support explicit relative imports. They were added
at Python 2.5, along with `from __future__ import absolute_import`.
On 2.x this will mean the import is first (implicitly) tried relative,
but on 3.x it will always be tried absolute.
Fixes #92
7 years ago
David Wilson
16f973b245
scripts: fixes
7 years ago
David Wilson
90bfa50df3
scripts: don't double-count SSH reads
7 years ago
David Wilson
0d25bcea3b
scripts: initial DTrace script.
7 years ago
David Wilson
d7f7331e7b
docs: more images.
7 years ago
David Wilson
a9f944f1ae
docs: single-threaded connection is the most important limitation
7 years ago
dw
efbe7cc079
Merge pull request #89 from moreati/import-aunt
...
Fixup module_finder_tests
7 years ago
Alex Willmer
36cb706698
master: Reword ModuleFinder.find_realted*() docstrings
...
Hopefully these are correct, and clearerabout the
behaviour/pre-conditions of these methods.
7 years ago
Alex Willmer
8bcff6c87c
tests: Fix typo in ResolveRelPathTest
7 years ago
Alex Willmer
bd0a3cbe7c
tests: Remove jinja2/markupsafe modules from FindRelatedTest
...
Not sure how they got there, but Django doesn't use Jinja without
explicit configuration.
7 years ago
Alex Willmer
71c00789f0
tests: Fix expected values FindRelatedTest for Django 1.11.4
7 years ago
Alex Willmer
a931113a2c
tests: Add new FindRelatedImportsTest
7 years ago
Alex Willmer
81e22a12e9
tests: Remove module under search from expected results
...
This matches a tweak made in 8765f761c9
7 years ago
Alex Willmer
4ae7fcc9bc
tests: Rename FindRelatedImportsTest -> FindRelatedTest
7 years ago
David Wilson
2c77adb4a5
docs: store blog images for fear of laptop crash
...
There is only so much trackpad-driven yEd work one man can handle
7 years ago