diff options
| author | Jan Gutter <github@jangutter.com> | 2023-08-10 19:29:33 +0100 |
|---|---|---|
| committer | Jan Gutter <github@jangutter.com> | 2023-09-03 16:43:13 +0100 |
| commit | 73dcad3263b846318d684d717f9238a752158aee (patch) | |
| tree | 3adf69b58a6c12deac49873bc76cf708cbdb83e8 /tests/post.yml | |
| parent | 26ba26cd1832eedd2022c6fec04093e483574a4a (diff) | |
| download | kolla-ansible-73dcad3263b846318d684d717f9238a752158aee.tar.gz kolla-ansible-73dcad3263b846318d684d717f9238a752158aee.zip | |
CI: Add back ARA logging
Up till now the ARA plugin has been pinned to a very old version,
and is no longer functional.
This installs a much newer version of ARA and adds a README file
to guide developers on how to view the sqlite file.
The ARA plugin is installed by default, but not activated. This
is intended to catch a small amount of regressions and
integration failures.
Developers can enable the plugin by adding the string `#ara`
to their commit message. This avoids extra load on the CI.
Change-Id: Id8328e374c9590b1363026fa2b2b24e191183987
Diffstat (limited to 'tests/post.yml')
| -rw-r--r-- | tests/post.yml | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/tests/post.yml b/tests/post.yml index 206958701..750413d9e 100644 --- a/tests/post.yml +++ b/tests/post.yml @@ -52,25 +52,52 @@ - hosts: primary environment: - PATH: "{{ ansible_env.HOME + '/.local/bin:' + ansible_env.PATH }}" + PATH: >- + {{ ansible_env.HOME + '/kolla-ansible-venv/bin:' + + ansible_env.PATH }} + vars: + ara_report_local_dir: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report" + kolla_ansible_local_src_dir: "{{ zuul.executor.work_root }}/src/{{ zuul.project.canonical_hostname }}/openstack/kolla-ansible" tasks: - name: check for existence of ara sqlite stat: - path: "{{ ansible_env.HOME }}/.ara/ansible.sqlite" + path: "{{ ansible_env.HOME }}/.ara/server/ansible.sqlite" register: ara_stat_result - block: - name: ensure ara-report folder existence file: - path: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report" + path: "{{ ara_report_local_dir }}" state: directory delegate_to: localhost - run_once: true - name: download ara sqlite synchronize: - src: "{{ ansible_env.HOME }}/.ara/ansible.sqlite" - dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/" + src: "{{ ansible_env.HOME }}/.ara/server/ansible.sqlite" + dest: "{{ ara_report_local_dir }}/" mode: pull + - name: get ara version + command: "ara --version" + register: ara_version + + - name: template ara readme + template: + src: "{{ kolla_ansible_local_src_dir }}/tests/ara-readme.md.j2" + dest: "{{ ara_report_local_dir }}/README.md" + mode: '0644' + delegate_to: localhost + + - name: Generate HTML from ARA database + command: "ara-manage generate {{ ansible_env.HOME }}/ara-html" + when: (zuul.change_message | default('')) is search('#ara_verbose') + + - name: Download ARA HTML + synchronize: + src: "{{ ansible_env.HOME }}/ara-html" + dest: "{{ ara_report_local_dir }}/" + mode: pull + rsync_opts: + - "--quiet" + when: (zuul.change_message | default('')) is search('#ara_verbose') when: ara_stat_result.stat.exists |
