diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index 3672e73f52..79b9dfadbd 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -72,6 +72,11 @@ fi # Bootstrap Ansible source "$(dirname "${0}")/bootstrap-ansible.sh" +# Install ARA and add it to the callback path provided by bootstrap-ansible.sh/openstack-ansible.rc +# This is added *here* instead of bootstrap-ansible so it's used for CI purposes only. +/opt/ansible-runtime/bin/pip install ara +export ANSIBLE_CALLBACK_PLUGINS="/etc/ansible/roles/plugins/callback:/opt/ansible-runtime/lib/python2.7/site-packages/ara/plugins/callbacks" + # Log some data about the instance and the rest of the system log_instance_info diff --git a/scripts/scripts-library.sh b/scripts/scripts-library.sh index 325ba54cdb..68ff703854 100755 --- a/scripts/scripts-library.sh +++ b/scripts/scripts-library.sh @@ -143,6 +143,8 @@ function gate_job_exit_tasks { # Rename all files gathered to have a .txt suffix so that the compressed # files are viewable via a web browser in OpenStack-CI. find "${GATE_LOG_DIR}/" -type f -exec mv {} {}.txt \; + # Generate the ARA report + /opt/ansible-runtime/bin/ara generate html "${GATE_LOG_DIR}/ara" || true # Compress the files gathered so that they do not take up too much space. # We use 'command' to ensure that we're not executing with some sort of alias. command gzip --best --recursive "${GATE_LOG_DIR}/"