Commit Graph

2120 Commits

Author SHA1 Message Date
David Wilson d6dcb8d010 issue #477: blacklist 'thread' module to avoid roundtrip on 2.x->3.x 2019-01-25 16:33:31 +00:00
David Wilson c9ff4c6506 issue #477: fix 3.x failure in new target.set_file_mode() function. 2019-01-25 16:32:00 +00:00
David Wilson aa5d37af89 issue #477: fix 3.x failure in new target.set_file_mode() function. 2019-01-25 16:25:47 +00:00
David Wilson 51294db52d issue #477: fix 2 runner tests on Ansible 2.7. 2019-01-25 16:17:29 +00:00
David Wilson 84a0424749 issue #477: fix 3.x test regressions. 2019-01-25 16:17:12 +00:00
David Wilson 01db198122 issue #477: fix new KwargsTest on Python 3.x. 2019-01-25 16:02:26 +00:00
David Wilson d4897d37bb issue #477: ModuleFinder now returns Unicode module names. 2019-01-25 15:56:06 +00:00
David Wilson 4c1ddf6fc1 issue #477: Python3 does not have Pickler.dispatch. 2019-01-25 15:55:21 +00:00
David Wilson 7ecd5d8ba3 issue #477: ModuleFinder test fixes. 2019-01-25 15:46:12 +00:00
David Wilson c443244986 issue #477: Ansible 2.3 compatible regression/all.yml. 2019-01-24 20:00:44 +00:00
David Wilson 532ae92029 issue #477: Ansible 2.3 requires placeholder module for assert_equals 2019-01-24 19:58:42 +00:00
David Wilson 572db1a385 issue #477: build a CentOS 5/Py2.4 container + playbook compat fixes. 2019-01-24 19:57:24 +00:00
David Wilson a31718a6bc issue #477: use PY24 constant rather than explicit test. 2019-01-24 17:27:32 +00:00
David Wilson bc434a4f99 issue #477: backport mitogen.master to Python 2.4. 2019-01-24 17:27:10 +00:00
David Wilson ffd46e9f1c issue #477: parent: make iter_read() log disconnect reason. 2019-01-24 17:26:23 +00:00
David Wilson 81f15028a7 issue #477: backport ansible_mitogen.runner to 2.4. 2019-01-24 17:24:56 +00:00
David Wilson 0b0ae5c971 issue #477: backport various test modules to Python 2.4. 2019-01-24 17:21:07 +00:00
David Wilson 256628c149 issue #477: backport ansible_mitogen/target.py to Python2.4 2019-01-24 17:15:13 +00:00
David Wilson 462a8567e5 issue #477: add all() polyfill to custom_python_detect_environmnet 2019-01-24 17:13:42 +00:00
David Wilson 87d2af4c6e issue #477: polyfill partition() use in mitogen.parent. 2019-01-24 17:12:49 +00:00
David Wilson dd86a157ff issue #477: polyfill partition() use in mitogen.service. 2019-01-24 17:12:15 +00:00
David Wilson d6da84c38f issue #477: polyfill partition() use in mitogen.ssh. 2019-01-24 17:11:59 +00:00
David Wilson a48ee3a536 issue #477: vendorize the last 2.4-compatible simplejson
This is in part so image_prep can run against an ancient CentOS 5 image
without any upfront help, and in part simply because it's very easy to
support.
2019-01-24 17:10:27 +00:00
David Wilson e9706a4a09 issue #477: _update_linecache() must append newlines. 2019-01-24 16:59:24 +00:00
David Wilson 19b708e141 issue #415, #477: Poller must handle POLLHUP too.
Linux will fire poll() with simply the POLLHUP bit set even though it
was not requested, resulting in an infinite loop.
2019-01-24 15:04:56 +00:00
David Wilson 07f1b9bdd0 issue #477: Python 2.5 needs next() polyfill too. 2019-01-24 14:33:07 +00:00
David Wilson 3afd667136 issue #477: explicitly populate Py2.4 linecache from Importer. 2019-01-24 13:51:14 +00:00
David Wilson 97a96f5dd8 issue #477: rename and add tests for polyfill functions. 2019-01-24 13:27:05 +00:00
David Wilson da13415b00 issue #477: various core.py docstring cleanups. 2019-01-24 12:57:25 +00:00
David Wilson dc01f9e47e issue #477: Ansible 2.3 module output format difference.
Don't test for keys it doesn't set.
2019-01-24 04:21:44 +00:00
David Wilson b6062afe24 issue #477: Ansible 2.3 cannot use when: on an include.
So just use our magic action module to reset the connection instead.
2019-01-24 04:21:02 +00:00
David Wilson c1a4597e32 issue #477: tests: use Ansible 2.3-compatible include rather than import
This will break with Ansible 2.8. Probably going to end up with a regex
hack for CI.
2019-01-24 04:17:07 +00:00
David Wilson 59dd0dc814 issue #477: serve up junk ansible/__init__.py just like Ansible. 2019-01-24 03:43:09 +00:00
David Wilson 83aff538b3 issue #477: testlib: Py2.4 did not have BaseException. 2019-01-24 03:40:59 +00:00
David Wilson 5135ff9068 issue #477: master: ability to override ModuleResponder output.
This is needed to cope Ansible 2.3 doing weird stuff as usual. It serves
up __init__.py for ansible and ansible.module_utils as hard-coded
namespace packages, the real ansible/__init__.py on disk is not 2.4
compatible.
2019-01-24 03:38:36 +00:00
David Wilson dd36450daf issue #477: yet another bug in core._partition(). 2019-01-24 03:35:51 +00:00
David Wilson d8490bc90a issue #477: 2.4.x compat fixes for mitogen.service. 2019-01-24 03:35:28 +00:00
David Wilson 58d8813c03 issue #477: Py2.4 lacks all(). 2019-01-24 03:35:10 +00:00
David Wilson be8562ce09 issue #477: Ansible 2.3 had stricter arg spec format. 2019-01-24 03:29:49 +00:00
David Wilson 1f17422598 issue #477: make CallError serializable on 2.4.
Making CallError inherit from object broke 'raise CallError()'.

Instead use pure-Python pickler on 2.4 (grmbl) and force it to emit
new-style-alike output for what is otherwise a classic class.

Remove needless complexity from _unpickle_call_error() that only worked
for new-style classes.
2019-01-24 01:33:23 +00:00
David Wilson 4b89dc4813 issue #477: log full module name when SyntaxError occurs. 2019-01-24 01:01:00 +00:00
David Wilson d4afa102c7 issue #477: more Py2.4 (str|unicode).partition(). 2019-01-23 23:49:43 +00:00
David Wilson 0ee8ee78b8 issue #477: Py2.4 cannot tolerate unicode kwargs. 2019-01-23 23:48:09 +00:00
David Wilson 08cecb92f6 issue #477: Py2.4 lacks BaseException. 2019-01-23 23:47:30 +00:00
David Wilson 4388e794ce issue #477: Py2.4: enumerate() may return stopped threads. 2019-01-23 21:28:50 +00:00
David Wilson 51a07dce70 issue #477: Py2.4: more unicode.rpartition() usage. 2019-01-23 18:57:44 +00:00
David Wilson 07401d767a issue #477: Python 2.4 type(exc) returns old-style instance. 2019-01-23 18:45:46 +00:00
David Wilson 2ead451277 issue #477: Python 2.4 lacked str.partition. 2019-01-23 16:37:35 +00:00
David Wilson 2ec19f2374 issue #477: Python 2.4 lacked Thread.name. 2019-01-23 16:37:22 +00:00
David Wilson 2f016b5c7b issue #477: Python 2.4 lacked context managers. 2019-01-23 16:37:00 +00:00