Commit Graph

62 Commits (adfd4e17f3f378c859cfb49feebcd8a721f62bb0)

Author SHA1 Message Date
Nerijus Baliūnas 4089e875a9 Add Python 3.11 support
Co-authored-by: Alex Willmer <alex@moreati.org.uk>
1 year ago
Alex Willmer 39dfd2dfe8 ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04 2 years ago
Alex Willmer e8ad12e881 Ansible 6 support
fixes #929
2 years ago
Alex Willmer 195b400087 ci: Drop Ansible 3 tests to free up CI capacity 2 years ago
Alex Willmer 63e39c1ac5 ci: Remove traces of Ansible < 2.10 (not supported in 0.3.x) 2 years ago
Alex Willmer 2a95d039ab Python 3.10 support 3 years ago
Alex Willmer d424895344 ci: Drop Mac1014 jobs
The VM Image has been retired by Azure Pipelines.
3 years ago
Alex Willmer 77c306199c ci: Explicitly test on macOS-11 VM Image
As of writing this macOS-latest isn't quite yet upgraded, but warnings about
it are spewing out.
3 years ago
Klaus Zerwes b0610cb63c issue #874 ansible 2.12 requires min python 3.8 on the controller 3 years ago
Klaus Zerwes 40fc1f8a25 issue #874 try to implement the testst for ansible 2.12 3 years ago
Alex Willmer cadd393cd7 ci: Expand macOS coverage to 10.14, latest release on Azure Pipelines
10.14 will be retired on Azure mid December 2021. I want to get so test runs
while we can.
3 years ago
Alex Willmer 7bdec56a70 ci: One Tox environment per Azure job
Should result in
- better isolation of faults
- easier retries of failed jobs
- quicker test completion, to to more efficient queueing.

This does not expand test coverage, merely rearranges the tests already run.
3 years ago
Alex Willmer c61c063b4f Support for Ansible 3 & 4
fixes #834

Co-authored-by: Claude Becker (@upekkha)
Co-authored-by: Dolph Mathews (@dolph)
3 years ago
Alex Willmer c5c65ab0d2 ci: Switch Continuous Integration to Tox
Also
 - Simplifies adding support for additional Ansible versions
 - Unifies Python package versioning in CI and local test environments
 - Matches Python versions tested, with those declared in setup.py
 - Expands targets covered by automated Ansible tests to
    - centos6, centos8
    - debian9, debian11
    - ubuntu1604, ubuntu2004
3 years ago
Alex Willmer 3ba1625a99 ci: Reduce verbosity of Ansible integration tests 3 years ago
Alex Willmer a8e8cf91cb tests: Rebuild Docker containers
A few changes are bundled in this
 - Ansible 2.10.x and Mitogen 0.3.x are used to build nearly all images
   (Ansile 2.3.x is retained for CentOS 5, because it uses Python 2.4).
 - Tox is used to install/run Ansible, replacing build_docker_images.py
 - A static inventory, identifying containers by name rather than ID.
 - debian-test image is renamed to debian9-test
 - debian9-test image is now based on debian:9
 - centos6-test image is now based on moreati/centos6-vault
   following the same scheme as centos5-test.
 - Images are now uploaded to Amazon Elastic Container Registry (ECR).
   See #809.
 - Debian recommended packages aren't installed (e.g. build-essential)
 - Python 2.x and Python 3.x are installed wherever available.
 - Python Virtualenv is installed wherever available.
4 years ago
Alex Willmer b71fbe528c
Merge branch 'master' into distro-vs-distros 4 years ago
Alex Willmer 1e72ebaf8b tests: Update test coverage to Python 3.9
The Travis Linux distribution must be upgraded because the Trusty
(Ubuntu 14.04) image does not have Python 3.9. Xenial (Ubuntu 16.04) is
the earliest version that offers Python 3.9.

I have not chosen a later release, in order to aid restoration of Python
2.4 - 2.6 tests.
4 years ago
Alex Willmer bb271d8d00 tests: Tag resource intensive tasks, to skip when strategy=linear
The ansible_mitogen test suite takes over an hour when Ansible is not
accelerated by Mitogen. This change aims to reduce that by skipping
tests with a large number of iterations when the linear strategy is
chosen.

The tagged tests are intended to uncover Mitogen resource leaks. Since
Mitogen is not invoked when strategy=linear, the slight reduction in
test coverage is an acceptable trade off.
4 years ago
Alex Willmer 9dce5fe056 tests: Correct DISTRO vs DISTROS usage in CI configurations
The environment variable DISTRO is used to set the target Docker image
used when running the Mitogen unit tests. DISTROS is used for the
Ansible integration tests. VER sets the version of Ansible that is
installed on the controller.

When MODE=Mitogen
- there is no need to set VER, because nothing that installs Ansible
- it does not make sense to set DISTROS.
4 years ago
Steven Robertson 91f55a60bc vanilla ansible is now running but is really slow; bump timeout 4 years ago
Steven Robertson 90f40ada6c try vanilla ansible 2.10 on Mac 4 years ago
Steven Robertson ef029726e2 travis is having trouble running vanilla Ansible so migrating to Azure 4 years ago
Steven Robertson a561a8bad2 something broke with Mac 10.14 with dscl, before trying a hack see if OS upgrade works 4 years ago
Steven Robertson 33e176d62e add support for ansible_collections site-package (from pip ansible==2.10.0 install) + switch to ansible 2.10.0 rather than github tag 4 years ago
Steven Robertson 3404654ab4 python3 tests are broken... 4 years ago
Steven Robertson 7507b88255 clean up azure python version used 4 years ago
Steven Robertson a6c293d100 try running ansible_mitogen 2.10 tests with python3 4 years ago
Steven Robertson a7705a3435 add back in ansible tests but don't run synchronize 4 years ago
Steven Robertson ff8a276186 turn off failing Ansible-only tests for now, also raising errors to see what Azure is gonna do with collections 4 years ago
Steven Robertson 140406342b fixed installing into python2 container by specifying encoding 4 years ago
Steven Robertson 371f0a6657 ansible 2.10 installed in python 2.7.16 locally, see if it's the python version or pip that's the issue 4 years ago
Steven Robertson 130e111f21 rename test and add VER to mito27_27 4 years ago
Steven Robertson fa1269bca8 see what happens with only ansible 2.10 tests, still need to install collections tho 4 years ago
Steven Robertson cc8febb841 use new released 2.10 4 years ago
Steven Robertson e34cf8667f
Merge branch 'master' into collectionsSupport 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 b20aa982c7 use a commit that actually exists 5 years ago
Steven Robertson c2ee512a99 fix duplicate test name 5 years ago
Steven Robertson 40183138b4 add some tests pointing to almost-devel version of Ansible for collection preparation 5 years ago
Steven Robertson db386a0350 enable ansible 2.9.6 tests 5 years ago
Steven Robertson a94e3d08f9 didn't need to update all the way to 10.15; since tests pass locally on 10.14.4 will switch to 10.14 5 years ago
Steven Robertson faf7798c16 revert python3 setup + add TODO; python3 tests aren't working now but python2 is EOL so they should work soon 5 years ago
Steven Robertson f8c8889009 mac's SIP prevents symlinking so python3 wasn't used ever 5 years ago
Steven Robertson ccabb46b37 upgrade ansible to latest 2.8 version + bump python version in attempt to get test passing 5 years ago
Steven Robertson bb1cdb1ed5 making commit to retrigger tests; I don't have perms to enable the rebuild preview feature 5 years ago
Steven Robertson 1142b1bc7e bump ubuntu image for azure to avoid hash mismatch sometimes when apt-get update-ing 5 years ago
Steven Robertson 398e292536 noticed Ans280_27 was actually running ans 2.6.2, so setting VER explicitly 5 years ago
Steven Robertson daf2e2f2e2 bump mac test version again 5 years ago
Steven Robertson 79b8814142 bump macOS test vm to replicate what passes locally 5 years ago