Alex Willmer
3ba1625a99
ci: Reduce verbosity of Ansible integration tests
2021-11-09 19:22:37 +00:00
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.
2021-02-21 20:23:41 +00:00
Alex Willmer
b71fbe528c
Merge branch 'master' into distro-vs-distros
2021-02-02 23:05:57 +00:00
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.
2021-01-25 22:18:25 +00:00
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.
2021-01-20 20:58:35 +00:00
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.
2021-01-10 20:20:45 +00:00
Steven Robertson
91f55a60bc
vanilla ansible is now running but is really slow; bump timeout
2020-10-31 21:35:13 -07:00
Steven Robertson
90f40ada6c
try vanilla ansible 2.10 on Mac
2020-10-31 20:30:17 -07:00
Steven Robertson
ef029726e2
travis is having trouble running vanilla Ansible so migrating to Azure
2020-10-30 20:57:11 -07:00
Steven Robertson
a561a8bad2
something broke with Mac 10.14 with dscl, before trying a hack see if OS upgrade works
2020-10-24 16:35:33 -07:00
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
2020-10-03 15:31:25 -07:00
Steven Robertson
3404654ab4
python3 tests are broken...
2020-09-27 10:15:39 -07:00
Steven Robertson
7507b88255
clean up azure python version used
2020-09-22 20:44:46 -07:00
Steven Robertson
a6c293d100
try running ansible_mitogen 2.10 tests with python3
2020-09-22 19:47:18 -07:00
Steven Robertson
a7705a3435
add back in ansible tests but don't run synchronize
2020-09-22 19:26:33 -07:00
Steven Robertson
ff8a276186
turn off failing Ansible-only tests for now, also raising errors to see what Azure is gonna do with collections
2020-09-20 22:10:00 -07:00
Steven Robertson
140406342b
fixed installing into python2 container by specifying encoding
2020-09-06 14:19:52 -07:00
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
2020-09-06 14:05:45 -07:00
Steven Robertson
130e111f21
rename test and add VER to mito27_27
2020-09-03 21:47:14 -07:00
Steven Robertson
fa1269bca8
see what happens with only ansible 2.10 tests, still need to install collections tho
2020-09-03 21:44:08 -07:00
Steven Robertson
cc8febb841
use new released 2.10
2020-08-15 23:39:37 -07:00
Steven Robertson
e34cf8667f
Merge branch 'master' into collectionsSupport
2020-07-30 22:15:45 -07:00
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
2020-07-30 19:44:29 -07:00
Steven Robertson
b20aa982c7
use a commit that actually exists
2020-05-25 17:35:05 -07:00
Steven Robertson
c2ee512a99
fix duplicate test name
2020-05-25 17:23:46 -07:00
Steven Robertson
40183138b4
add some tests pointing to almost-devel version of Ansible for collection preparation
2020-05-25 17:22:43 -07:00
Steven Robertson
db386a0350
enable ansible 2.9.6 tests
2020-03-26 22:08:17 -07:00
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
2020-02-25 17:11:33 -08:00
Steven Robertson
faf7798c16
revert python3 setup + add TODO; python3 tests aren't working now but python2 is EOL so they should work soon
2020-02-25 12:57:01 -08:00
Steven Robertson
f8c8889009
mac's SIP prevents symlinking so python3 wasn't used ever
2020-02-21 17:57:35 -08:00
Steven Robertson
ccabb46b37
upgrade ansible to latest 2.8 version + bump python version in attempt to get test passing
2020-02-21 16:45:51 -08:00
Steven Robertson
bb1cdb1ed5
making commit to retrigger tests; I don't have perms to enable the rebuild preview feature
2020-02-21 12:27:23 -08:00
Steven Robertson
1142b1bc7e
bump ubuntu image for azure to avoid hash mismatch sometimes when apt-get update-ing
2020-02-20 15:42:30 -08:00
Steven Robertson
398e292536
noticed Ans280_27 was actually running ans 2.6.2, so setting VER explicitly
2020-02-19 14:20:47 -08:00
Steven Robertson
daf2e2f2e2
bump mac test version again
2020-02-19 14:14:10 -08:00
Steven Robertson
79b8814142
bump macOS test vm to replicate what passes locally
2020-02-19 11:25:20 -08:00
Steven Robertson
3e6e99eeb7
correctly renaming azure mac pipeline
2020-02-15 15:16:33 -08:00
Steven Robertson
188acd7c5c
bumping ansible version on Mac
2020-02-14 16:39:43 -08:00
David Wilson
1cad04185b
ci: try removing exclude: to make Azure jobs work again
2019-08-09 22:21:11 +01:00
David Wilson
351aca62c9
Disable Azure pipelines build for docs-master too.
2019-08-04 21:21:20 +01:00
David Wilson
57203aef53
issue #543 : add Ansible job to Azure matrix
2019-07-30 22:12:06 +01:00
David Wilson
c1d763f929
ci: Ansible 2.8 jobs aren't running against all host types.
2019-06-02 19:53:12 +01:00
David Wilson
167d0eff32
azure: try enabling Ansible 2.8/Py3.5 job
2019-05-27 23:57:47 +01:00
David Wilson
ea718081d8
issue #587 : Add 2.8.0/Py2.7 job to Azure
2019-05-27 22:16:58 +01:00
David Wilson
0aa4c9d8fc
issue #542 : .ci: move some tests to Azure and enable Mac job.
2019-02-14 12:49:56 +00:00
David Wilson
2a6dbb038f
Pythonize, split out and parallelize all jobs.
2018-11-06 18:16:20 +00:00
David Wilson
0b86c4e45f
tests: basic (incomplete) Azure Pipelines config
2018-11-06 03:40:56 +00:00
David Wilson
3f414d5967
tests: rename .travis -> .ci, move Azure config into .ci
2018-11-06 01:50:11 +00:00