windmill/tests/playbooks/post.yaml

35 lines
1.1 KiB
YAML

---
- hosts: all
tasks:
- name: Collect tox logs
synchronize:
dest: "{{ zuul.executor.log_root }}/tox"
mode: pull
src: "{{ windmill_src_dir }}/.tox/venv/log/"
verify_host: true
- name: Collect logs from hosts
block:
- name: Run ansible-playbook for collect-logs.yaml
args:
chdir: "{{ windmill_src_dir }}"
shell: "tox -evenv -- ansible-playbook -v -f1 -ezuul_output_dir={{ zuul_output_dir }} tests/collect-logs.yaml"
always:
- name: Ensure ara-report directory exists
file:
path: "{{ zuul_output_dir }}/logs/logs/ara-report"
state: directory
- name: Copy ARA database to ara-report directory
shell: "cp ~/.ara/ansible.sqlite {{ zuul_output_dir }}/logs/logs/ara-report"
# TODO: Migrate to fetch-zuul-logs when
# https://review.opendev.org/#/c/583346/ is merged.
- name: Collect log output
synchronize:
dest: "{{ zuul.executor.log_root }}/"
mode: pull
src: "{{ zuul_output_dir }}/logs/"
verify_host: true