summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2015-06-26 11:55:05 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2015-06-26 11:55:05 +0200
commitaefc0111a4b5b9ede4347c8e3b75536b6598f296 (patch)
treee35a3bea97a1cf63bdad0f83bf825aee2376c7ea /jobs
parent28ac0eea95f44c03126f990596aafd6ea05243d8 (diff)
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
Diffstat (limited to 'jobs')
-rw-r--r--jobs/firmware.txt.in2
1 files changed, 1 insertions, 1 deletions
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