Commit Graph

664 Commits (c8cb320832f8087f658d244b72f97ec1a82ce384)
 

Author SHA1 Message Date
dw c8cb320832
Merge pull request #94 from moreati/import-no5
core: Correct naming of Stream.sent_modules
8 years ago
dw 5d68d6499d
Merge pull request #95 from moreati/lgtm
Address lgtm.com warnings
8 years ago
dw 7f46b8f1f3
Merge pull request #99 from moreati/is-wearing-trainers
Test and document semantics of is_blacklisted_module()
8 years ago
David Wilson eeeea25eb9 docs: more Ansible 8 years ago
David Wilson 2837ec2ebe docs: document one more Ansible limitation 8 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
8 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.
8 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.
8 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.
8 years ago
Alex Willmer ba3bc0f7f1 core: Standardise type of Importer.whitelist
This seemed a reasonable streamlining, but I'm happy to be overruled.
8 years ago
Alex Willmer 4178c40617 core: Add docstring to is_blacklisted_import()
This documents the existing behaviour, which may not be the intended.
8 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
8 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
8 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
8 years ago
Alex Willmer 7d4317b279 compat: ignore LGTM checks on third party
Refs #61
8 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
8 years ago
Alex Willmer cea53f3be4 core: Correct naming of Stream.sent_modules
Fixes #90
8 years ago
David Wilson 49d944340d examples: simplify example playbooks. 8 years ago
David Wilson 719316daef docs: Docker typo. 8 years ago
David Wilson bd482fd56e issue #93: enable use_2to3 to see what happens 8 years ago
dw f633533971
Merge pull request #93 from moreati/import-snake-plissken
Use Python 2.4 compatible module import
8 years ago
David Wilson 7cf7c3271a Add Docker method. 8 years ago
David Wilson 7cf90f6025 Fix some more Python 2.4 syntax 8 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
8 years ago
David Wilson 16f973b245 scripts: fixes 8 years ago
David Wilson 90bfa50df3 scripts: don't double-count SSH reads 8 years ago
David Wilson 0d25bcea3b scripts: initial DTrace script. 8 years ago
David Wilson d7f7331e7b docs: more images. 8 years ago
David Wilson a9f944f1ae docs: single-threaded connection is the most important limitation 8 years ago
dw efbe7cc079
Merge pull request #89 from moreati/import-aunt
Fixup module_finder_tests
8 years ago
Alex Willmer 36cb706698 master: Reword ModuleFinder.find_realted*() docstrings
Hopefully these are correct, and clearerabout the
behaviour/pre-conditions of these methods.
8 years ago
Alex Willmer 8bcff6c87c tests: Fix typo in ResolveRelPathTest 8 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.
8 years ago
Alex Willmer 71c00789f0 tests: Fix expected values FindRelatedTest for Django 1.11.4 8 years ago
Alex Willmer a931113a2c tests: Add new FindRelatedImportsTest 8 years ago
Alex Willmer 81e22a12e9 tests: Remove module under search from expected results
This matches a tweak made in 8765f761c9
8 years ago
Alex Willmer 4ae7fcc9bc tests: Rename FindRelatedImportsTest -> FindRelatedTest 8 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
8 years ago
dw f70ffa72d2
Merge pull request #87 from moreati/some-prefixing-required
ModuleFinder: Get stdlib paths by sys.prefix, sys.real_prefix etc.
8 years ago
Alex Willmer 602d3801e3 ModuleFinder: Get stdlib paths by sys.prefix, sys.real_prefix etc.
I took the liberty of renaming ModuleFinder.STDLIB_DIRS to
_STDLIB_PATHS, since it felt like an implementation detail that
shouldn't be baked into a public API and stdlib can also be imported
from e.g. a zip file.

I also changed it to a set to handle any duplicates.

Fixes #86
8 years ago
David Wilson f7c1ff16c6 docs: small ansible.rst updates 8 years ago
David Wilson 0414df16a5 docs: mention CPU usage reduction 8 years ago
David Wilson 113b747e15 docs: fix up Ansible install docs. 8 years ago
David Wilson fa69a966fe docs: more modest and accurate numbers for Ansible 8 years ago
David Wilson 102f5f9f33 ansible: correct temp file cleanup for template action. 8 years ago
David Wilson 2e3ca8dbfe ansible: don't enable_debug_logging() for sudo 8 years ago
David Wilson 9e70a32567 ansible: log call timings 8 years ago
David Wilson fa0eb21120 ansible: Ansible 2.4 compatibility. 8 years ago
David Wilson c7ae317dd1 docs: more marketing, add lots of drama bold. 8 years ago
David Wilson 0ac3ab4c29 docs: a little more marketing 8 years ago