From d7c1ba0bce57591e5ec9f147217b7882ecad7903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Roukala=20=28n=C3=A9=20Peres=29?= Date: Thu, 12 Jan 2023 14:08:01 +0200 Subject: [PATCH] ci/piglit: compress results.csv before uploading it to GitLab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The results.csv file of a full piglit run is about 6 MB. Given how seldomly this file is being used, and the fact that it cannot be viewed directly in gitlab's artifact page anyway. Let's compress the file using zstd, and enjoy a ~90% reduction in size at the cost of probably less than 500ms of compression time on a slow device, and 55ms on the CI machines in the valve farm. Acked-by: David Heidelberg Signed-off-by: Martin Roukala (né Peres) Part-of: --- .gitlab-ci/piglit/piglit-runner.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci/piglit/piglit-runner.sh b/.gitlab-ci/piglit/piglit-runner.sh index ad5445c64ff..bb24376f3f1 100755 --- a/.gitlab-ci/piglit/piglit-runner.sh +++ b/.gitlab-ci/piglit/piglit-runner.sh @@ -114,4 +114,9 @@ if [ -n "$FLAKES_CHANNEL" ]; then --branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}" fi +# Compress results.csv to save on bandwidth during the upload of artifacts to +# GitLab. This reduces a full piglit run to 550 KB, down from 6 MB, and takes +# 55ms on my Ryzen 5950X (with or without parallelism). +zstd --rm -T0 -8qc $RESULTS/results.csv -o $RESULTS/results.csv.zst + exit $PIGLIT_EXITCODE