From: Anil Belur Date: Thu, 6 Jun 2019 14:05:51 +0000 (+1000) Subject: Include *.{html,xml} file extensions to compress X-Git-Tag: v0.24.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F15793%2F7;p=releng%2Flftools.git Include *.{html,xml} file extensions to compress Add file extensions `*.{html,xml}` to ensure they are compressed. `*.xml` files can be quite large on log server and this ensures that log files are compressed on Nexus have a smaller foot print. Issue: RELENG-2072 Change-Id: I64bcf7f75f45ba22d0fca50d5df55fa156193580 Signed-off-by: Anil Belur --- diff --git a/lftools/deploy.py b/lftools/deploy.py index 62665906..93a77a74 100644 --- a/lftools/deploy.py +++ b/lftools/deploy.py @@ -38,8 +38,10 @@ def _compress_text(dir): os.chdir(dir) compress_types = [ + '**/*.html', '**/*.log', '**/*.txt', + '**/*.xml', ] paths = [] for _type in compress_types: diff --git a/releasenotes/notes/add-files-to-compress-dcba892e04a7672a.yaml b/releasenotes/notes/add-files-to-compress-dcba892e04a7672a.yaml new file mode 100644 index 00000000..73ae5b46 --- /dev/null +++ b/releasenotes/notes/add-files-to-compress-dcba892e04a7672a.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Add file extensions `.html` and `.xml` to ensure they are compressed. + `.xml` files pushed to the log server can be quite large, so the fix + ensures that the logs uploaded to Nexus have a smaller foot print.