zuul-jobs/zuul-tests.d
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
..
ansible-lint-rules.yaml ansible-lint-rules: Fix bad path and filename 2020-05-08 19:38:58 +02:00
build-roles-jobs.yaml Only run tests for ensure-bazel when it is updated 2020-05-01 23:15:18 +02:00
cloud-roles-jobs.yaml Rename install-devstack to ensure-devstack for consistency 2020-04-04 15:41:29 -04:00
container-roles-jobs.yaml Add test-build-container-image-release job 2020-06-12 08:41:48 -07:00
dhall.yaml dhall-diff: add new job 2020-05-03 19:06:37 +00:00
general-roles-jobs.yaml Remove the -plain job variants 2020-06-17 11:47:54 +10:00
go-jobs.yaml Remove the -plain job variants 2020-06-17 11:47:54 +10:00
haskell.yaml haskell-stack-test: add haskell tool stack test 2020-05-01 15:35:33 +00:00
java-jobs.yaml Add ensure-java role 2020-02-21 06:55:47 -06:00
jobs.yaml Add tox env for update-test-platforms 2020-02-07 09:58:10 +11:00
js-roles-jobs.yaml ensure-yarn: run ensure-nodejs before 2020-05-01 17:07:48 +02:00
launchpad-roles-jobs.yaml Add tox env for update-test-platforms 2020-02-07 09:58:10 +11:00
logs-jobs.yaml local-log-download : role with script to download all log files 2020-04-01 07:41:26 +11:00
packer-jobs.yaml Remove the -plain job variants 2020-06-17 11:47:54 +10:00
project.yaml Add py38 testing 2020-05-05 20:02:16 +02:00
puppet-roles-jobs.yaml Rename install-pdk-dependencies to ensure-pdk-dependencies for consistency 2020-04-04 15:41:29 -04:00
python-jobs.yaml Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
python-roles-jobs.yaml Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
terraform-jobs.yaml Remove the -plain job variants 2020-06-17 11:47:54 +10:00
test-constraints.txt Fix python3 compat in tox siblings handling 2019-12-10 15:27:41 -08:00