From 63043520192531b2b76be335067839bd606a3a7d Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Fri, 7 Jun 2019 00:05:51 +1000 Subject: [PATCH] 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 --- lftools/deploy.py | 2 ++ releasenotes/notes/add-files-to-compress-dcba892e04a7672a.yaml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/add-files-to-compress-dcba892e04a7672a.yaml 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. -- 2.16.6