Include *.{html,xml} file extensions to compress 93/15793/7
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 6 Jun 2019 14:05:51 +0000 (00:05 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 6 Jun 2019 21:12:07 +0000 (07:12 +1000)
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 <abelur@linuxfoundation.org>
lftools/deploy.py
releasenotes/notes/add-files-to-compress-dcba892e04a7672a.yaml [new file with mode: 0644]

index 6266590..93a77a7 100644 (file)
@@ -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 (file)
index 0000000..73ae5b4
--- /dev/null
@@ -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.