From 8b5d081995cc6e048c5794ccd0ba2bf3c42d2e1b Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Tue, 20 Jul 2021 13:46:12 +0000 Subject: round-robin.sh: Parallelize compression of logs Change-Id: I9791c7cd0c539d455124de1c24f393a0ce2bebdf --- round-robin.sh | 9 +++++++-- 1 file 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 ) } -- cgit v1.2.3