zuul-jobs/roles/fetch-subunit-output/tasks/process.yaml
Clark Boylan bbca430417 Stop compressing files during intermediate steps part 1
Stop compressing files that would otherwise be handled uncompressed in
intermediate log handling. The reason for this is final log/artifact
upload should decide if a file need to be compressed or not as some file
hosting services (like swift) may not return the expected data if we get
this wrong.

This was noticed when we used swift to store intermediate tar.gz
tarballs before final upload to permanent storage. When retrieving the
tar.gz files from swift we got them back as uncompressed .tar files
(because swift was being helpful) and then later when we try to
uncompress these files we break.

Instead we'll let the upload to swift (or other storage) decide if files
should be compressed further than their existing state.

This is the first change in the stack that updates this behavior for
fetch-subunit-output.

Change-Id: I5727b270d6d34c256fe78a443baa1ad6c3474108
2020-01-08 09:24:43 -08:00

26 lines
634 B
YAML

- name: Find subunit2html
include: find-subunit-html.yaml
- name: Generate testr_results.html file
command: "{{ subunit_html_command }} ./testrepository.subunit testr_results.html"
args:
chdir: "{{ zuul_work_dir }}"
when: subunit_html_command is defined
- name: Find subunit files
find:
paths:
- "{{ zuul_work_dir }}"
patterns:
- testr_results.html
- testrepository.subunit
register: subunit_files
- name: Collect test-results
synchronize:
dest: "{{ zuul.executor.log_root }}"
mode: pull
src: "{{ item.path }}"
verify_host: true
with_items: "{{ subunit_files.files }}"