requirements/playbooks/requirements-check.yaml
Sean McGinnis 74a5bed896
Ensure pip is installed locally
Recent changes to the base nodepool images removed the system-wide
installation of pip and virtualenv. As a result of this, some
requirements-check jobs are failing with an error that pip could not be
found.

This adds the ensure-pip role as part of pre_tasks in our
requirements-check playbook.

Change-Id: Id4969156383545eb94462677e3321b89c1160b48
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-17 16:19:06 -05:00

17 lines
721 B
YAML

- hosts: all
pre_tasks:
- name: Ensure pip
include_role:
name: ensure-pip
tasks:
- name: Install openstack_requirements
command: "pip3 install --user {{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}"
- name: Run requirements check script
# Use command module here instead of script since Zuul gets output
# with command into job-output.txt file.
# Command expects the file to be at the remote system - the system
# running the tests. Ask zuul variables for the path.
command: "{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/playbooks/files/project-requirements-change.py {{ zuul.project.src_dir }} {{ zuul.branch }}"