Ansible job definitions for Zuul
Go to file
Ian Wienand 67f223b53a Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip
This partially reverts commit
3f961ce202.

This alternative installs wheel with the ensure-pip role instead of in
a separate role.  wheel is very closely linked with pip install
operations so this isn't a large overreach of the role.

I suggest this for several reasons; firstly the python-wheel role
doesn't try to install packages, so we end up with mixed system pip
and upstream versions of wheel most of the time.  This is the type of
thing that has proven problematic in the past.  It also installs via
pip --user; something we've already had problems with tox when for
various reasons roles want to run this as non-zuul user.  Using
ensure-pip we keep the packaged versions together.

[1] did try to install wheel with root, but during runtime which
didn't work due to sudo being revoked.  This should work for the
existing build-python-release job, because it already includes
ensure-pip in pre-run via playbooks/python/pre.yaml

I believe our conclusion on the ensure-* roles was that requiring
root/become: for installation is OK, but we should have a no-op path
if the tools are found.  This is consistent with that approach
(i.e. if you want wheel and can't do sudo, you should pre-install it
on your image using whatever you build that with).

This adds a check to the existing "is pip installed" check to also
check if wheel packages are available.  If not we trigger the install
path.

This revealed some issues with RedHat.yaml -- we can always install
Python 3 (packages available for CentOS 7) so remove that check, and
if Ansible is running under Python 2; ensure we install the
dependencies too (not only if it is forced).

Update the documentation to describe that it will enable support for
bdist_wheel, and add a basic sanity test that wheels are produced by
pip.  The existing build-python-release job is kept; although it is
modified to use the playbooks/python/pre.yaml playbook as the build
job does.

Change-Id: I2ab11bb45b6b2a49d54db39195228ab40141185c
[1] https://review.opendev.org/#/c/736001/5/roles/build-python-release/tasks/main.yaml
2020-06-18 12:51:56 +00:00
.rules Policy rule for ownership between remote and executor 2020-05-13 09:41:38 +02:00
doc Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
playbooks Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
roles Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
test-playbooks Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
tests Add test cases for tox line comment parsing 2020-04-03 19:34:24 +02:00
tools Remove the -plain job variants 2020-06-17 11:47:54 +10:00
zuul-tests.d Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
zuul.d Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
.ansible-lint Bump ansible-lint to 4.3.0 2020-05-28 16:48:14 +01:00
.gitignore Ensure wheel exists for build-release-python 2020-06-17 16:59:24 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:25:30 +00:00
.stestr.conf Add a python unit test framework 2018-07-25 09:11:25 -07:00
.yamllint yamlint: EOF newlines and comments indent 2020-05-14 08:42:17 +00:00
bindep.txt Fix py27 tox 2020-05-27 17:12:32 +02:00
CONTRIBUTING.rst Link the policy to the CONTRIBUTING.rst file 2020-01-28 07:21:08 -05:00
LICENSE Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
linters-requirements.txt Bump ansible-lint to 4.3.0 2020-05-28 16:48:14 +01:00
README.rst Add installation/deprecation documentation 2018-04-11 08:03:57 -07:00
setup.cfg Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
setup.py Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
test-constraints.txt Fix py27 tox 2020-05-27 17:12:32 +02:00
test-requirements.txt Return upload_results in test-upload-logs-swift role 2020-06-15 08:19:11 +02:00
tox.ini Bump ansible-lint to 4.3.0 2020-05-28 16:48:14 +01:00

Zuul Jobs

This repo contains a set of Zuul jobs and Ansible roles suitable for use by any Zuul system.