From c0abe8ab8fb155c886ccc73afabf7ecb6062e780 Mon Sep 17 00:00:00 2001 From: Arnstein Ressem Date: Sun, 17 Oct 2021 22:53:21 +0200 Subject: Add cache compression. Allow 2.2GB cache. --- screwdriver.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'screwdriver.yaml') diff --git a/screwdriver.yaml b/screwdriver.yaml index 083590d6cc9..117249bac7c 100644 --- a/screwdriver.yaml +++ b/screwdriver.yaml @@ -42,7 +42,7 @@ shared: (cd /tmp && tar cf $MAIN_CACHE_FILE vespa) # Wipe the cache if we exceed 2GB to avoid pulling and pusing too large files - if (( $(stat --format='%s' $MAIN_CACHE_FILE) > $(( 2*1000*1000*1000 )) )); then + if (( $(stat --format='%s' $MAIN_CACHE_FILE) > $(( 2200*1000*1000 )) )); then tar cf $MAIN_CACHE_FILE --files-from=/dev/null; echo "Cleaning cache file. $MAIN_CACHE_FILE is now $(stat --format='%s' $MAIN_CACHE_FILE) bytes." fi @@ -50,7 +50,7 @@ shared: jobs: build-vespa: - #requires: [~pr] + requires: [~pr] annotations: screwdriver.cd/cpu: 7 screwdriver.cd/ram: 16 @@ -83,7 +83,6 @@ jobs: df -h component-build: - requires: [~pr] annotations: screwdriver.cd/cpu: 7 screwdriver.cd/ram: 16 @@ -107,10 +106,6 @@ jobs: VESPA_REF=$(meta get vespa.ref) SYSTEM_TEST_REF=$(meta get system-test.ref) - VESPA_VERSION=7.484.46 - VESPA_REF=4d60d2845dba1fcfb2b68bd64a616d50578bf88c - SYSTEM_TEST_REF=eefa08e9fe8dc578ebb60da6079e716c19ba9692 - if [[ $VESPA_VERSION == null ]] || [[ $VESPA_REF == null ]] || [[ $SYSTEM_TEST_REF == null ]]; then echo "Must have valid Vespa version and reference to continue \ (got VESPA_VERSION=$VESPA_VERSION, VESPA_REF=$VESPA_REF, SYSTEM_TEST_REF=$SYSTEM_TEST_REF)." -- cgit v1.2.3