Reduce quota on BART and add cleanup Tizen 10 artifacts 65/320465/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 13 Nov 2024 10:43:40 +0000 (11:43 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 13 Nov 2024 11:10:16 +0000 (12:10 +0100)
To reduce storage usage on BART server the quota was reduced from 95 per
Tizen version to 55, which makes 150GB in total for three versions and
should not generate warnings about storage usage limitation.

Change-Id: If578d9e891376f6091715b3b90eff4f059e083c5

.github/workflows/test-image-build.yml

index 7d9431346a1a352678c5c60ec4ec1e7c53375399..1c9059d482d954b881081ea2467a4d5cd0e27c73 100644 (file)
@@ -12,9 +12,7 @@ env:
   BART_REPO: tizen-system-upgrade-tools-generic-local
   BART_OUTPUT_DIR: tests
 
-  # Overall default quota is 100G per BART repo. Here, we do separate cleanup
-  # for different version artifacts, preserving 5G margin.
-  BART_TARGET_QUOTA: 95
+  BART_TARGET_QUOTA: 55
 
 jobs:
   prepare:
@@ -47,6 +45,13 @@ jobs:
           bart_key: ${{ secrets.BART_KEY }}
           search_pattern: "${{ env.BART_REPO }}/${{ env.BART_OUTPUT_DIR }}/Tizen9.0_Unified/"
           target_quota: ${{ env.BART_TARGET_QUOTA }}
+      - name: Cleanup Tizen 9-10 artifacts
+        uses: srpol-ar-glasses/actions/bart-size-cleanup@main
+        with:
+          bart_id: ${{ secrets.BART_ID }}
+          bart_key: ${{ secrets.BART_KEY }}
+          search_pattern: "${{ env.BART_REPO }}/${{ env.BART_OUTPUT_DIR }}/Tizen10.0_Unified/"
+          target_quota: ${{ env.BART_TARGET_QUOTA }}
       - name: Prepare last 3 versions for Tizen 8
         id: versions8
         run: |