
tobiko-infrared-ubuntu is removed. It always fails because infrared is not compatible with ubuntu-focal. Former tobiko-infrared is removed. It did not really test anything because there was no "primary" host in the inventory and essential ansible plays from this job need to be run on the "primary" host. Former tobiko-infrared-centos-9 is renamed to tobiko-infrared and it will only use one node. The aim of this job is just to validate the the tobiko infrared plugin works (it just executes tobiko unit and functional tests). Existing tobiko-check-collected-files ansible role has been removed. It was only used to test that results where properly generated when the tobiko infrared plugin was used, but it only work when no workflow was specify. Change-Id: I6e334014420757aafa436f42b189c932ed02ae56
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
---
|
|
|
|
- hosts: primary
|
|
vars:
|
|
test_collect_dir: '{{ test_dir }}/test_results'
|
|
|
|
roles:
|
|
- role: tobiko-bindep
|
|
vars:
|
|
bindep_file: '{{ test_dir }}/bindep.txt'
|
|
- tobiko-ensure-tox
|
|
|
|
tasks:
|
|
- name: "remove '{{ test_collect_dir }}' dir"
|
|
file:
|
|
path: '{{ test_collect_dir }}'
|
|
state: absent
|
|
|
|
- name: "show ansible distro variables"
|
|
debug:
|
|
msg:
|
|
ansible_distribution: '{{ ansible_distribution }}'
|
|
ansible_distribution_major_version: '{{ ansible_distribution_major_version }}'
|
|
ansible_distribution_version: '{{ ansible_distribution_version }}'
|
|
ansible_os_family: '{{ ansible_os_family }}'
|
|
|
|
- name: "include platform variables"
|
|
include_vars: "{{ item }}"
|
|
ignore_errors: yes
|
|
with_first_found:
|
|
- "test-{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
|
|
- "test-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "test-{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "test-{{ ansible_distribution }}.yaml"
|
|
- "test-{{ ansible_os_family }}.yaml"
|
|
register: include_platform_vars
|
|
|
|
- name: "run Tox InfraRed plugin"
|
|
shell:
|
|
cmd: >
|
|
{{ tox_executable }} -e infrared -- --collect-dir '{{ test_collect_dir }}'
|
|
chdir: '{{ test_dir }}'
|
|
ignore_errors: yes
|
|
register: run_tox
|
|
|
|
- name: "show Tox InfraRed plugin output"
|
|
debug: var=run_tox.stdout_lines
|
|
|
|
- name: "show Tox InfraRed plugin errors"
|
|
debug: var=run_tox.stderr_lines
|
|
when: run_tox is failed
|
|
failed_when: yes
|