Commit Graph

3091 Commits (6a2d9ec550ba9e5063ccf1dd1782b53132f3bcae)
 

Author SHA1 Message Date
Alex Willmer 6a2d9ec550 tests: Fix throttling of Docker pulls
fixes #809

(cherry picked from commit e67e4b83b4)
3 years ago
Alex Willmer 9d404e0b32
Merge pull request #800 from moreati/0.2-backport
Prepare 0.2.10rc1
4 years ago
Alex Willmer f8062f21d6 Bump version to 0.2.10rc1 4 years ago
Steven Robertson 126dd7ed1f don't run sshpass install through run
(cherry picked from commit 86e63fda85)
4 years ago
Steven Robertson 835f7d7dad azure tests don't like sshpass v1.06 so pegging to 1.05
(cherry picked from commit ddb87f6b0c)
4 years ago
Steven Robertson 6cdacd40bf fix Error: Calling Non-checksummed download of sshpass formula file from an arbitrary URL is disabled
(cherry picked from commit b68d4e9a7f)
4 years ago
Alex Willmer 6a4773ac93 tests: Fix virtualenv creation on MacOS/OSX 4 years ago
Alex Willmer 00e5c9ca81 Backport 0.3.x CI fixes and unofficial tox tests 4 years ago
Alex Willmer c547eb93eb setup: Add long_description, based on README
(cherry picked from commit 28ea0067c6)
4 years ago
Alex Willmer 917a38dce0 setup: Declare MacOS/OSX support
(cherry picked from commit a6387f69a8)
4 years ago
Alex Willmer 55221aef61 setup: Declare supported Python versions (2.4-2.7, 3.6+)
(cherry picked from commit 0a28549c47)
4 years ago
Alex Willmer 705314c5b7 setup: Update project URL
(cherry picked from commit 737e712024)
4 years ago
Alex Willmer 2da5cd7aff Declare universal wheel support
This mean the package is single source compatible with Python 2.x and
3.x. There is no need to build separate wheels.

(cherry picked from commit f0ffd1616c)
4 years ago
Alex Willmer 7878bedff0 Add 0.2.10 changelog entries
From commit f489478127
4 years ago
Alex Willmer 8816ecaff0 Add the msvcrt moduleto the default module deny list
Commit https://github.com/python/cpython/commit/880d42a3b247 (first
released in Python 3.8a0) moved an import of msvcrt from an if <win32>
block, into a try/except block. So now the import is tried even on Linux
or MacOS.

https://docs.python.org/3/library/msvcrt.html is a Windows specific
builtin.

(cherry picked from commit bce3bab3e8)
4 years ago
Alex Willmer 965f9d6311 Explain why the Python 2.x thread module is blacklisted
Based on the original commit I believe it is only an optimization.
However I could be wrong. I intend to request review of this part.

(cherry picked from commit ceb0a94467)
4 years ago
Alex Willmer 6c1585de77 tests: Compatiblity shim for threading.Thread.is_alive()
On Python >= 3.8 thread.isAlive() is deprecated (removed in Python 3.9.
On Python <= 2.5 thread.is_alive() isn't present (added in Python 2.6).

(cherry picked from commit 4b39013ef4)
4 years ago
Michael Weigle 01dc412599 Fixes RuntimeWarning for improper bufferring on local connection
(cherry picked from commit 6b5a46ccd0)
4 years ago
Alex Willmer 77f95b1e7a tests: Disable code coverage 4 years ago
Alex Willmer b250a5756c tests: Throttle docker pulls for Ansible tests
I hope this will prevent AWS Elastic Container Registry returning 429:
Too Many Requests error, due to the burst of activity from multiple VMs,
when a CI build begins.

(cherry picked from commit 25446cd698)
4 years ago
Alex Willmer dd3a6f18d1 tests: docstrings for ci_lib
(cherry picked from commit 99235071a3)
4 years ago
Alex Willmer eabb7e37b6 tests: Use AWS Elastic Container registry for test images
This replaces use of Docker Hub, which now rate limits API calls and
causing CI builds to fail.

refs #791

(cherry picked from commit 1c7e107809)
4 years ago
Alex Willmer eee5006a68 tests: Avoid double docker pull on Azure Pipes
(cherry picked from commit adbed36dd9)
4 years ago
Alex Willmer 642bb35973 Fix DjangoMixin test imports for setuptools >= 50.0
(cherry picked from commit f162a8a7c5)
4 years ago
Alex Willmer af987b481b Update badges for new mitogen-hq organisation
Moving the repository from dw/mitogen to mitogen-hq/mitogen has confused a few external services. This is part of the cleanup

(cherry picked from commit 5b56f9a33a)
4 years ago
David Wilson 285ca85cad Bump copyright year and use generic author name (testing Travis)
(cherry picked from commit fad6eb1b47)
4 years ago
Scott Buchanan b7d5c745fd correct latest ansible version supported
(cherry picked from commit fa7c0191ee)
4 years ago
Steven Robertson 27ad214a92
Merge pull request #759 from moreati/callback_me_maybe
tests: Fix AttributeError in callback plugins used by test suite
4 years ago
Alex Willmer 79b4c0f815 tests: Fix AttributeError in callback plugins used by test suite
CALLBACK_VERSION et al are documented as required in
https://docs.ansible.com/ansible/2.10/dev_guide/developing_plugins.html#callback-plugins.
The need for document_fragment is noted in
cfa8075537/lib/ansible/plugins/callback/default.py (L28-L32)

Fixes #758

This addresses the following error, seen while running
`ansible_tests.py`.

```
TASK [Gathering Facts gather_timeout=10, gather_subset=['all']]
****************
task path:
/home/alex/src/mitogen/tests/ansible/regression/issue_109__target_has_old_ansible_installed.yml:4
[WARNING]: Failure using method (v2_runner_on_start) in callback plugin
(<ansible.plugins.callback.nice_stdout.CallbackModule object at
0x7f76b3dad090>): 'show_per_host_start'
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
[task 339882] 00:00:08.172036 D ansible_mitogen.affinity: CPU mask for
WorkerProcess: 0x000004
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
```
4 years ago
Steven Robertson 5942bfb7d5
Merge pull request #757 from moreati/issue756
ssh: Match newer ssh host key prompt that accepts the fingerprint
4 years ago
Alex Willmer b0ce29dcfd ssh: Match newer ssh host key prompt that accepts the fingerprint
This fixes an ERROR in test_accept_enforce_host_keys() while running the
test suite.

Fixes #756
4 years ago
Steven Robertson a60c6c14a2
Merge pull request #723 from s1113950/fixTests
Fixes tests
4 years ago
Steven Robertson bacc752ff2 Pegs python 2 version, removes unused imports, fixes sudden ssh dir with bad perms, generates key for sudo user as well in tests 4 years ago
Steven Robertson a18be5afef
Merge pull request #728 from nmattia/nm-fix-typo
Fix typo in Ansible documentation
4 years ago
Nicolas Mattia 4d48f140a8 Fix typo in Ansible documentation 4 years ago
Steven Robertson 3a52b44b6b
Merge pull request #719 from s1113950/issue672
Resolves ansible 2.9+, Mitogen, and Python 3.5 setup module issue
5 years ago
Steven Robertson 81076c9da8 fixes setup module relative import fail on some pythons 5 years ago
Steven Robertson 67f1ca97c4
Merge pull request #722 from luizribeiro/patch-1
Fix mitogen_ssh_keepalive_interval documentation
5 years ago
Luiz Ribeiro 0e47280e43
Fix mitogen_ssh_keepalive_interval documentation 5 years ago
Steven Robertson 921f3aa98c
Merge pull request #717 from s1113950/issue716
Handles no tmpdir in fetch command for old ansible versions
5 years ago
Steven Robertson e632310fc4 no tmpdir to remove for old ansible versions in fetch command 5 years ago
Steven Robertson 74b7934e37
Merge pull request #710 from s1113950/issue655
Handles a `wait_for_connection` call right after a task caused a shutdown
5 years ago
Steven Robertson acde13f9d6 handles a 'wait_for_connection' call right after a task caused a shutdown 5 years ago
Steven Robertson cee088fa80
Merge pull request #705 from s1113950/ansible2.9.6
Adds basic Ansible 2.9.6 support, tests use desired Ansible version now, and disabled flaky test on py3.6
5 years ago
Steven Robertson c12e3d0f92 disable flaky test on py3.6 5 years ago
Steven Robertson 9b1b5c5fb6 fix comment 5 years ago
Steven Robertson 573a3c6161 have to number format option for python2.6 5 years ago
Steven Robertson 54f1b9ca39 bionic doesn't have python2.6... sticking with trusty and downgrading to python3.6 5 years ago
Steven Robertson 6bdcbff7b2 upgrade to ubuntu 18 might fix keyserver thing 5 years ago
Steven Robertson 070fde16f3 upgrade to ubuntu bionic for python3.7 support 5 years ago