Commit Graph

163 Commits

Author SHA1 Message Date
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 7cc9145360
Merge branch 'master' into tests-resource_intensive-tag 2021-01-24 09:17:10 +00:00
Alex Willmer f5b3fab04c
Merge branch 'master' into docstrings 2021-01-24 02:38:23 +00:00
Alex Willmer 1a0951c664
Merge branch 'master' into tests-resource_intensive-tag 2021-01-24 01:00:11 +00:00
Alex Willmer 9111778823
Merge branch 'master' into docker-diet 2021-01-23 23:32:34 +00:00
Alex Willmer 25446cd698 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.
2021-01-22 23:46:24 +00:00
Alex Willmer 99235071a3 tests: docstrings for ci_lib 2021-01-22 23:16:25 +00:00
Alex Willmer 1c7e107809 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
2021-01-22 00:31:19 +00:00
Alex Willmer adbed36dd9 tests: Avoid double docker pull on Azure Pipes 2021-01-21 19:34:47 +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 a64e966ab9 tests: Add unofficial Tox environments for Ansible tests
These are not part of the official testing regime (tests run for pull
requests). I find them convenient for local development.

Limitations
- Python 2.7+ only. No Python 2.4, 2.5, or 2.6.
- Requires Pythons pre-installed (e.g. DeadSnakes, pyenv)
- No coverage of alternate controller OS (e.g. MacOS)

The environments tested by default are

py27-mode_ansible-ansible2.10
py36-mode_ansible-ansible2.10
py39-mode_ansible-ansible2.10
py27-mode_mitogen
py36-mode_mitogen
py39-mode_mitogen
py27-mode_mitogen-distro_centos7
py36-mode_mitogen-distro_centos7
py39-mode_mitogen-distro_centos7
2021-01-18 21:52:22 +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 855750a71f install all required debops extras for ansible 2020-10-25 23:07:29 -07:00
Steven Robertson 8b845974fb netaddr needs to be on the Ansible controller, not in target nodes 2020-10-25 22:27:45 -07:00
Steven Robertson 4721334dc9 forgot to update apt cache 2020-10-25 22:19:01 -07:00
Steven Robertson 428f4d8703 turn off host key checking with ad-hoc python-netaddr install and add back in debops command line 2020-10-25 22:09:53 -07:00
Steven Robertson 550265d426 don't need to ci_lib run setting up python-netaddr 2020-10-25 17:12:22 -07:00
Steven Robertson 88dde70b5c need to specify strategy plugin for ansible ad-hoc 2020-10-25 16:51:39 -07:00
Steven Robertson db5e7032c8 need python-netaddr in docker target containers for debops 2020-10-25 16:33:14 -07:00
Steven Robertson ce91d5ee25 make sure to apt-get update first before install 2020-10-25 16:12:08 -07:00
Steven Robertson c96dddae28 apt needs sudo 2020-10-25 16:06:14 -07:00
Steven Robertson 1dadae03a9 install missing python-netaddr for debops 2020-10-25 15:53:42 -07:00
Steven Robertson cf3d646613 fix custom_python_new_style_missing_interpreter, looks like Ansible 2.10 changed how new-style module detection works 2020-10-25 13:48:54 -07:00
Steven Robertson ae4f6ece41 add workaround for TravisCI 4MB log limit job termination 2020-10-25 12:52:14 -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 86e63fda85 don't run sshpass install through run 2020-10-20 23:30:07 -07:00
Steven Robertson ddb87f6b0c azure tests don't like sshpass v1.06 so pegging to 1.05 2020-10-20 22:16:28 -07:00
Steven Robertson b68d4e9a7f fix Error: Calling Non-checksummed download of sshpass formula file from an arbitrary URL is disabled 2020-10-20 21:27:07 -07:00
Steven Robertson b469da399b localhost_ansible tests now pass, adding -vvv to ansible_tests to get more debug info there 2020-10-18 23:25:24 -07:00
Steven Robertson 4b37699b45 missed a format call var 2020-10-03 15:39:53 -07:00
Steven Robertson ce57e81b22 remove ansible from github tag install setup in test config files 2020-10-03 15:35:28 -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 207e36194d try and get some visibility into test failures 2020-09-27 12:36:34 -07:00
Steven Robertson e1e28f14e3 fix venv install 2020-09-27 12:28:15 -07:00
Steven Robertson 2a06d493de python3 needs python3-venv 2020-09-27 11:10:35 -07:00
Steven Robertson d7d29ad9c1 tests are in a bad state...somehow both apt and brew can exist on azure using a linux job with an ubuntu vm image??? 2020-09-27 10:52:28 -07:00
Steven Robertson be70dc9e5d need to group all python install commands together 2020-09-27 10:32:08 -07:00
Steven Robertson 3404654ab4 python3 tests are broken... 2020-09-27 10:15:39 -07:00
Steven Robertson 7f58af6977 try a different psycopg2 package as well 2020-09-23 20:54:59 -07:00
Steven Robertson 9a34d5c2c9 need to install psycopg2-binary in the created venv 2020-09-23 20:47:48 -07:00
Steven Robertson 9bef6fe784 fix 'struct _is' error hopefully 2020-09-23 20:38:04 -07:00
Steven Robertson ed2473400b brew is missing postgresql 2020-09-23 20:27:41 -07:00
Steven Robertson 24c0737d37 awesome, /usr/local/bin/python2.7 already exists 2020-09-22 21:46:47 -07:00
Steven Robertson 3831f691c1 missed a format 2020-09-22 21:36:56 -07:00
Steven Robertson af08fb1276 wrong letter 🤦 what am I doing 2020-09-22 21:34:35 -07:00
Steven Robertson 1154a979b1 missed a ) 2020-09-22 21:24:24 -07:00
Steven Robertson c73f19f276 missed a , 2020-09-22 21:14:40 -07:00
Steven Robertson 7507b88255 clean up azure python version used 2020-09-22 20:44:46 -07:00