From 9c01783dbc379a51150104f31d5e6f5b6dcef680 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 21 Feb 2013 15:36:07 -0800 Subject: [PATCH] Gzip testr result files before archiving. Gzip testr result files before archiving them to static.o.o as the subunit log files may be quite large. This will speed jobs up and reduce the space needed on static.o.o to archive logs. Change-Id: I3c9570a79c8c348c9b70b7c6a98ba5c207f97825 Reviewed-on: https://review.openstack.org/22636 Reviewed-by: James E. Blair Approved: Jeremy Stanley Reviewed-by: Jeremy Stanley Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/run-tox.sh | 2 ++ .../files/jenkins_job_builder/config/python-jobs.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/run-tox.sh b/modules/jenkins/files/slave_scripts/run-tox.sh index f969686edf..4bbfc2c39b 100755 --- a/modules/jenkins/files/slave_scripts/run-tox.sh +++ b/modules/jenkins/files/slave_scripts/run-tox.sh @@ -44,6 +44,8 @@ if [ -f ".testrepository/0" ] then cp .testrepository/0 ./subunit_log.txt /usr/local/jenkins/slave_scripts/subunit2html.py ./subunit_log.txt testr_results.html + gzip -9 ./subunit_log.txt + gzip -9 ./testr_results.html fi sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh post diff --git a/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml b/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml index fb3f6880ac..2a03b9ce91 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml @@ -81,7 +81,7 @@ keep-hierarchy: false copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' - source: '**/*testr_results.html' + source: '**/*testr_results.html.gz' keep-hierarchy: false copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' @@ -89,7 +89,7 @@ keep-hierarchy: false copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' - source: '**/*subunit_log.txt' + source: '**/*subunit_log.txt.gz' keep-hierarchy: false copy-after-failure: true - console-log @@ -154,7 +154,7 @@ keep-hierarchy: false copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' - source: '**/*testr_results.html' + source: '**/*testr_results.html.gz' keep-hierarchy: false copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' @@ -162,7 +162,7 @@ keep-hierarchy: false copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' - source: '**/*subunit_log.txt' + source: '**/*subunit_log.txt.gz' keep-hierarchy: false copy-after-failure: true - console-log