From aefc0111a4b5b9ede4347c8e3b75536b6598f296 Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Fri, 26 Jun 2015 11:55:05 +0200 Subject: provider:checkbox: gzip the firmware/fwts_desktop_diagnosis_results.log attachment This job produces a huge attachment. In a real-world submission it resulted in a 5MB xml file (usually submissions are around 1MB). Of this, 4.3 MB were from this attachment. With gzip, the attachment was reduced to about 400KB so it's much more manageable (though still quite big). Fixes: https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1460095 --- jobs/firmware.txt.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/firmware.txt.in b/jobs/firmware.txt.in index 277c3f2..bee0e52 100644 --- a/jobs/firmware.txt.in +++ b/jobs/firmware.txt.in @@ -51,7 +51,7 @@ plugin: attachment estimated_duration: 0.5 id: firmware/fwts_desktop_diagnosis_results.log command: - [ -e ${PLAINBOX_SESSION_SHARE}/fwts_desktop_diagnosis_results.log ] && cat ${PLAINBOX_SESSION_SHARE}/fwts_desktop_diagnosis_results.log + [ -e ${PLAINBOX_SESSION_SHARE}/fwts_desktop_diagnosis_results.log ] && gzip -c ${PLAINBOX_SESSION_SHARE}/fwts_desktop_diagnosis_results.log _description: Attaches the FWTS desktop diagnosis results log to the submission _summary: Attach FWTS desktop diagnosis log to submission -- cgit v1.2.3