zuul-jobs/zuul-tests.d/python-jobs.yaml
Ian Wienand 5068744eff ensure-pip: Add role
This role is intended to ensure that the `pip:` module, and jobs that
may wish to use `pip` from the shell, have the necessary requirements.

It is intended as a partial replacement for the pip-and-virtualenv
element in diskimage-builder, which currently pre-installs pip on our
infra CI images during image build.

We wish to remain broady compatible with this element, but not
replicate some of the more problematic areas of its implementation.

By default, this installs the system packages for pip and setuptools
(the latter being a requirement of the Ansible pip module, which
imports it directly, despite pip itself not requiring it).

In this role, we ensure the libraries for the currently running
ansible_python_interpreter version are installed.

There is provision to provide a flag to install the packages directly
from upstream via get-pip.py, although this is not recommended.

Story: #2007386
Task: #39309

Change-Id: Iac2d518a66caf1b801273225f75a0a748412903c
2020-04-14 10:20:33 +10:00

339 lines
9.8 KiB
YAML

- job:
name: zuul-jobs-test-ensure-pip
description: Test the ensure-pip role
files:
- roles/ensure-pip/.*
run: test-playbooks/ensure-pip.yaml
tags: all-platforms
- job:
name: zuul-jobs-test-ensure-pip-centos-7
description: Test the ensure-pip role on centos-7
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: centos-7
label: centos-7
- job:
name: zuul-jobs-test-ensure-pip-centos-8
description: Test the ensure-pip role on centos-8
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: centos-8
label: centos-8
- job:
name: zuul-jobs-test-ensure-pip-debian-stretch
description: Test the ensure-pip role on debian-stretch
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: debian-stretch
label: debian-stretch
- job:
name: zuul-jobs-test-ensure-pip-fedora-30
description: Test the ensure-pip role on fedora-30
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: fedora-30
label: fedora-30
- job:
name: zuul-jobs-test-ensure-pip-gentoo-17-0-systemd
description: Test the ensure-pip role on gentoo-17-0-systemd
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: gentoo-17-0-systemd
label: gentoo-17-0-systemd
- job:
name: zuul-jobs-test-ensure-pip-opensuse-15
description: Test the ensure-pip role on opensuse-15
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: opensuse-15
label: opensuse-15
- job:
name: zuul-jobs-test-ensure-pip-opensuse-tumbleweed-nv
voting: false
description: Test the ensure-pip role on opensuse-tumbleweed
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: opensuse-tumbleweed
label: opensuse-tumbleweed
- job:
name: zuul-jobs-test-ensure-pip-ubuntu-bionic
description: Test the ensure-pip role on ubuntu-bionic
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-bionic
label: ubuntu-bionic
- job:
name: zuul-jobs-test-ensure-pip-ubuntu-bionic-plain-nv
voting: false
description: Test the ensure-pip role on ubuntu-bionic-plain
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-bionic-plain
label: ubuntu-bionic-plain
- job:
name: zuul-jobs-test-ensure-pip-ubuntu-xenial
description: Test the ensure-pip role on ubuntu-xenial
parent: zuul-jobs-test-ensure-pip
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-xenial
label: ubuntu-xenial
- job:
name: zuul-jobs-test-ensure-sphinx
description: Test the ensure-sphinx role
files:
- roles/ensure-sphinx/.*
run: test-playbooks/simple-role-test.yaml
vars:
role_name: ensure-sphinx
- job:
name: zuul-jobs-test-ensure-tox
description: Test the ensure-tox role
files:
- roles/ensure-tox/.*
- test-playbooks/ensure-tox.yaml
run: test-playbooks/ensure-tox.yaml
tags: all-platforms
- job:
name: zuul-jobs-test-ensure-tox-centos-7
description: Test the ensure-tox role on centos-7
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: centos-7
label: centos-7
- job:
name: zuul-jobs-test-ensure-tox-centos-8
description: Test the ensure-tox role on centos-8
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: centos-8
label: centos-8
- job:
name: zuul-jobs-test-ensure-tox-debian-stretch
description: Test the ensure-tox role on debian-stretch
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: debian-stretch
label: debian-stretch
- job:
name: zuul-jobs-test-ensure-tox-fedora-30
description: Test the ensure-tox role on fedora-30
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: fedora-30
label: fedora-30
- job:
name: zuul-jobs-test-ensure-tox-gentoo-17-0-systemd
description: Test the ensure-tox role on gentoo-17-0-systemd
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: gentoo-17-0-systemd
label: gentoo-17-0-systemd
- job:
name: zuul-jobs-test-ensure-tox-opensuse-15
description: Test the ensure-tox role on opensuse-15
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: opensuse-15
label: opensuse-15
- job:
name: zuul-jobs-test-ensure-tox-opensuse-tumbleweed-nv
voting: false
description: Test the ensure-tox role on opensuse-tumbleweed
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: opensuse-tumbleweed
label: opensuse-tumbleweed
- job:
name: zuul-jobs-test-ensure-tox-ubuntu-bionic
description: Test the ensure-tox role on ubuntu-bionic
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-bionic
label: ubuntu-bionic
- job:
name: zuul-jobs-test-ensure-tox-ubuntu-bionic-plain-nv
voting: false
description: Test the ensure-tox role on ubuntu-bionic-plain
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-bionic-plain
label: ubuntu-bionic-plain
- job:
name: zuul-jobs-test-ensure-tox-ubuntu-xenial
description: Test the ensure-tox role on ubuntu-xenial
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-xenial
label: ubuntu-xenial
- job:
name: zuul-jobs-test-tox-siblings
description: Test the tox role's sibling functionality
files:
- roles/tox/.*
run: test-playbooks/tox-siblings.yaml
required-projects:
- zuul/zuul
- zuul/nodepool
# -* AUTOGENERATED *-
# The following project section is autogenerated by
# tox -e update-test-platforms
# Please re-run to generate new job lists
- job:
name: zuul-jobs-test-fetch-tox-output
description: Test the fetch-tox-output
files:
- roles/ensure-output-dirs/.*
- roles/fetch-tox-output/.*
- roles/fetch-output/.*
run: test-playbooks/python/fetch-tox-output.yaml
vars:
zuul_use_fetch_output: true
- job:
name: zuul-jobs-test-fetch-tox-output-synchronize
description: Test the fetch-tox-output
files:
- roles/fetch-tox-output/.*
run: test-playbooks/python/fetch-tox-output.yaml
vars:
zuul_use_fetch_output: false
- job:
name: zuul-jobs-test-fetch-subunit-output
description: Test the fetch-subunit-output
files:
- roles/ensure-output-dirs/.*
- roles/fetch-subunit-output/.*
- roles/fetch-output/.*
run: test-playbooks/python/fetch-subunit-output.yaml
vars:
zuul_use_fetch_output: true
- job:
name: zuul-jobs-test-fetch-subunit-output-synchronize
description: Test the fetch-subunit-output
files:
- roles/fetch-subunit-output/.*
run: test-playbooks/python/fetch-subunit-output.yaml
vars:
zuul_use_fetch_output: false
- project:
check:
jobs:
- zuul-jobs-test-ensure-pip-centos-7
- zuul-jobs-test-ensure-pip-centos-8
- zuul-jobs-test-ensure-pip-debian-stretch
- zuul-jobs-test-ensure-pip-fedora-30
- zuul-jobs-test-ensure-pip-gentoo-17-0-systemd
- zuul-jobs-test-ensure-pip-opensuse-15
- zuul-jobs-test-ensure-pip-opensuse-tumbleweed-nv
- zuul-jobs-test-ensure-pip-ubuntu-bionic
- zuul-jobs-test-ensure-pip-ubuntu-bionic-plain-nv
- zuul-jobs-test-ensure-pip-ubuntu-xenial
- zuul-jobs-test-ensure-sphinx
- zuul-jobs-test-ensure-tox-centos-7
- zuul-jobs-test-ensure-tox-centos-8
- zuul-jobs-test-ensure-tox-debian-stretch
- zuul-jobs-test-ensure-tox-fedora-30
- zuul-jobs-test-ensure-tox-gentoo-17-0-systemd
- zuul-jobs-test-ensure-tox-opensuse-15
- zuul-jobs-test-ensure-tox-opensuse-tumbleweed-nv
- zuul-jobs-test-ensure-tox-ubuntu-bionic
- zuul-jobs-test-ensure-tox-ubuntu-bionic-plain-nv
- zuul-jobs-test-ensure-tox-ubuntu-xenial
- zuul-jobs-test-tox-siblings
- zuul-jobs-test-fetch-tox-output
- zuul-jobs-test-fetch-tox-output-synchronize
- zuul-jobs-test-fetch-subunit-output
- zuul-jobs-test-fetch-subunit-output-synchronize
gate:
jobs:
- zuul-jobs-test-ensure-pip-centos-7
- zuul-jobs-test-ensure-pip-centos-8
- zuul-jobs-test-ensure-pip-debian-stretch
- zuul-jobs-test-ensure-pip-fedora-30
- zuul-jobs-test-ensure-pip-gentoo-17-0-systemd
- zuul-jobs-test-ensure-pip-opensuse-15
- zuul-jobs-test-ensure-pip-ubuntu-bionic
- zuul-jobs-test-ensure-pip-ubuntu-xenial
- zuul-jobs-test-ensure-sphinx
- zuul-jobs-test-ensure-tox-centos-7
- zuul-jobs-test-ensure-tox-centos-8
- zuul-jobs-test-ensure-tox-debian-stretch
- zuul-jobs-test-ensure-tox-fedora-30
- zuul-jobs-test-ensure-tox-gentoo-17-0-systemd
- zuul-jobs-test-ensure-tox-opensuse-15
- zuul-jobs-test-ensure-tox-ubuntu-bionic
- zuul-jobs-test-ensure-tox-ubuntu-xenial
- zuul-jobs-test-tox-siblings
- zuul-jobs-test-fetch-tox-output
- zuul-jobs-test-fetch-tox-output-synchronize
- zuul-jobs-test-fetch-subunit-output
- zuul-jobs-test-fetch-subunit-output-synchronize