Remove log compression before upload

From #openstack-infra:
fungi> jrosser: there was a necessary change in handling of
compressed log files, jobs should not compress logs on their
own now if you want them to be viewable in a browser (this
was to solve a problem where tarballs were getting silently
decompressed on download without changing their filenames to
drop the .gz extension)

Change-Id: I81211e8c1d767ce55fc41fe37babe52d19de36e0
This commit is contained in:
Jonathan Rosser 2020-01-15 15:45:45 +00:00
parent 11112b4085
commit 75879a02d3
1 changed files with 0 additions and 12 deletions

View File

@ -156,15 +156,6 @@ function rename_files {
done
}
function compress_files {
# We use 'command' to ensure that we're not executing with an alias.
GZIP_CMD="command gzip --force --best"
find_files |\
while read filename; do \
${GZIP_CMD} ${filename} || echo "WARNING: Could not gzip ${filename}"; \
done
}
## Main ----------------------------------------------------------------------
echo "#### BEGIN LOG COLLECTION ###"
@ -279,9 +270,6 @@ else
echo "No ethtool available" | tee -a "${WORKING_DIR}/logs/ethtool-${TS}-${interface}-cfg.txt"
fi
# Compress the files gathered so that they do not take up too much space.
compress_files
# Ensure that the files are readable by all users, including the non-root
# OpenStack-CI jenkins user.
sudo chmod -R ugo+rX "${WORKING_DIR}/logs"