From 3d935485dd2d7e509a8ba2a7375a43a6569e0520 Mon Sep 17 00:00:00 2001 From: Roland Rossgotterer Date: Mon, 6 May 2019 14:59:49 +0200 Subject: [PATCH] Don't generate symbols if they aren't uploaded Since the change to native symbol formats, the archived packages are huge and are occupying too much disk space in Jenkins master. Therefore limit it to the case in which they are really uploaded to backtrace and products released. --- scripts/jenkins.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/jenkins.py b/scripts/jenkins.py index 9b0b6801b..7ebe9e2cf 100644 --- a/scripts/jenkins.py +++ b/scripts/jenkins.py @@ -145,6 +145,10 @@ class Builder: """ Generates the binary symbols and archives them into a gzip archive, located in the swift source root. """ + # Do not even generate symbols if they aren't used. They got so big now, that we cannot afford to archive them in Jenkins + if not upload_symbols: + return + if self._should_create_symbols(): build_path = self._get_swift_build_path() os.chdir(build_path) @@ -188,9 +192,7 @@ class Builder: print('Adding ' + symbol_path) tar.add(symbol_path, f) tar.close() - - if upload_symbols: - self.__upload_symbol_files(tar_path) + self.__upload_symbol_files(tar_path) def _get_swift_source_path(self): return self.__source_path