summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-20 13:46:12 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-21 14:13:54 +0000
commit8b5d081995cc6e048c5794ccd0ba2bf3c42d2e1b (patch)
tree78f50760f539c518cc5e412425a5164dd656bdd9
parent4f95d7607feab5f25eedbeb9ffd0b630e30a5f4b (diff)
downloadjenkins-scripts-8b5d081995cc6e048c5794ccd0ba2bf3c42d2e1b.tar.gz
round-robin.sh: Parallelize compression of logs
Change-Id: I9791c7cd0c539d455124de1c24f393a0ce2bebdf
-rw-r--r--round-robin.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 1c27287f..a0e7d21d 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -425,6 +425,7 @@ build_abe ()
rm -rf ${rr[top_artifacts]}/sumfiles
mkdir -p ${rr[top_artifacts]}/sumfiles
while IFS= read -r -d '' sum; do
+ cp "$sum" ${rr[top_artifacts]}/sumfiles/
log="${sum%.sum}.log"
# Testsuite logs grow 50-400MB in size, so compress them to save
# disk space on ci.linaro.org.
@@ -432,9 +433,13 @@ build_abe ()
# QEMU and not rebuilding compiler (therefore not cleaning compiler
# build/test directory).
rm -f "$log.xz"
- xz "$log"
- cp -t ${rr[top_artifacts]}/sumfiles/ "$sum" "$log.xz"
+ (
+ xz "$log"
+ cp "$log.xz" ${rr[top_artifacts]}/sumfiles/
+ ) &
done < <(find builds/ -name "*.sum" -print0)
+ # Wait for logs to compress
+ wait
fi
)
}