zuul/playbooks/zuul-stream/pre.yaml
Monty Taylor 1f7c6fef9c Create virtualenvs in series to avoid cache race
virtualenv 20.0.24 creates ~/.local/share/virtualenv with the
seed packages needed for making virtualenvs per-python version.
Creating empty virtualenvs is quick, so run those in sequence
to avoid race possibilities. Then, we can still run the
installs into the virtualenvs in parallel.

We also fix a bug in the console stream functional jobs and install pip
with the use of ensure-pip. This is necessary because the virtualenv
fix runs the stream functional jobs and the update to the stream
functional jobs relies on working docker images.

Change-Id: I3dec251d19dd7b3807848a54e6a20a8e89d30a4e
2020-06-23 10:08:06 -07:00

35 lines
871 B
YAML

- hosts: controller
roles:
- role: ensure-pip
- role: bindep
bindep_profile: test
bindep_dir: src/opendev.org/zuul/zuul
- role: bindep
bindep_dir: src/opendev.org/recordsansible/ara
post_tasks:
- name: Install software
command: python3 -m pip install src/opendev.org/zuul/zuul
become: yes
- name: Install managed ansible versions
command: /usr/local/bin/zuul-manage-ansible -v
become: yes
- name: Copy inventory
copy:
src: "{{ zuul.executor.log_root }}/zuul-info/inventory.yaml"
dest: "{{ ansible_user_dir }}/inventory.yaml"
- name: Copy ansible.cfg
template:
src: templates/ansible.cfg.j2
dest: "{{ ansible_user_dir }}/ansible.cfg"
- name: Generate logging config
command: python3 src/opendev.org/zuul/zuul/zuul/ansible/logconfig.py