Commit Graph

21 Commits (84a4fcdf008cd2b90506b5ae4762826c524030bf)

Author SHA1 Message Date
Alex Willmer 8613f685ab tests: Skip AWS ECR login outside of CI jobs
To avoid rate limiting errors, CI (currently Azure Devops) logs into the
container registry (currently AWS ECR). Outside CI this is unnnecessary and
makes it harder to run the tests, because very few people have access to a
suitable AWS secret token.

Following this change `aws ecr-public get-login-password` will only be run if
the environment variable $TF_BUILD==True. This is set by Azure Pipelines
jobs. If the CI platform is changed then another indicator should be used.

https://adamj.eu/tech/2020/03/09/detect-if-your-tests-are-running-on-ci/
4 months ago
Alex Willmer c9318a26f6 tests: Suppress pip version warnings 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 39d02e9d59 ci: Don't install pycparser and idna seperately
AFAICT no longer necessary. These install fine as part of requirements.txt.
3 years ago
Alex Willmer 9e9161cbb9 CI: Clamp ansible-base to < 2.10.14
refs #861
3 years ago
Alex Willmer 0db7467e4a tests: Authenticate to AWS Elastic Container Registry for `docker pull`
This should increase the rate limit from 1/s to 10/s. AWS
credentials are obtained from environment variables in Azure
pipelines, or the default AWS CLI profile.

https://docs.aws.amazon.com/AmazonECR/latest/public/public-service-quotas.html
https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html#public-registry-auth
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
3 years ago
Steven Robertson 855750a71f install all required debops extras for ansible 4 years ago
Steven Robertson 8b845974fb netaddr needs to be on the Ansible controller, not in target nodes 4 years ago
Steven Robertson 428f4d8703 turn off host key checking with ad-hoc python-netaddr install and add back in debops command line 4 years ago
Steven Robertson db5e7032c8 need python-netaddr in docker target containers for debops 4 years ago
Steven Robertson ce91d5ee25 make sure to apt-get update first before install 4 years ago
Steven Robertson c96dddae28 apt needs sudo 4 years ago
Steven Robertson 1dadae03a9 install missing python-netaddr for debops 4 years ago
Steven Robertson cf3d646613 fix custom_python_new_style_missing_interpreter, looks like Ansible 2.10 changed how new-style module detection works 4 years ago
Steven Robertson ce57e81b22 remove ansible from github tag install setup in test config files 4 years ago
Steven Robertson 5aedb5f157 add missing collections 🤦 4 years ago
Steven Robertson 069d7da79f perhaps a modern debops version will work 4 years ago
Steven Robertson 55c5a274cc install community.general collection 4 years ago
Steven Robertson 437761ebef more test scripts 4 years ago
David Wilson c84f36e809 issue #426: teach .ci/ Docker pulls to ignore -py3 image suffix. 6 years ago
David Wilson 2a6dbb038f Pythonize, split out and parallelize all jobs. 6 years ago