Skip to content

Commit e0e803e

Browse files
committed
feat: compress test_results for CI uploads
Now test_results will contain a lot of files and directories with all test metrics and data files. To speed up upload and download of test_results, compress it's content if tests are run in CI. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
1 parent 7cd5cd6 commit e0e803e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/devtool

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,14 @@ cmd_test() {
802802
# do not leave behind env.list file
803803
rm env.list
804804

805+
# archive everything in the `test_result` to speed up upload/download
806+
# to s3 if we are in CI
807+
if [ -n "$BUILDKITE" ] && [ "$BUILDKITE" = "true" ]; then
808+
tar -czf data.tar -C test_results .
809+
rm -r test_results/*
810+
mv data.tar test_results
811+
fi
812+
805813
return $ret
806814
}
807815

0 commit comments

Comments
 (0)