Browse Source

ci: limit retention on all artifacts

Ivan Dyachkov 2 years atrás
parent
commit
8e7edaf745

+ 3 - 0
.github/workflows/build_packages.yaml

@@ -115,6 +115,7 @@ jobs:
       with:
         name: ${{ matrix.profile }}
         path: _packages/${{ matrix.profile }}/
+        retention-days: 7
 
   mac:
     strategy:
@@ -149,6 +150,7 @@ jobs:
       with:
         name: ${{ matrix.profile }}
         path: _packages/${{ matrix.profile }}/
+        retention-days: 7
 
   linux:
     runs-on: ['self-hosted', 'ephemeral', 'linux', "${{ matrix.arch }}"]
@@ -246,6 +248,7 @@ jobs:
       with:
         name: ${{ matrix.profile }}
         path: _packages/${{ matrix.profile }}/
+        retention-days: 7
 
   publish_artifacts:
     runs-on: ubuntu-latest

+ 1 - 0
.github/workflows/build_packages_cron.yaml

@@ -77,6 +77,7 @@ jobs:
         with:
           name: ${{ matrix.profile[0] }}
           path: _packages/${{ matrix.profile[0] }}/
+          retention-days: 7
       - name: Send notification to Slack
         uses: slackapi/slack-github-action@v1.23.0
         if: failure()

+ 1 - 1
.github/workflows/run_conf_tests.yaml

@@ -45,4 +45,4 @@ jobs:
         with:
           name: logs-${{ matrix.profile }}
           path: _build/${{ matrix.profile }}/rel/emqx/logs
-
+          retention-days: 7

+ 1 - 0
.github/workflows/run_emqx_app_tests.yaml

@@ -63,3 +63,4 @@ jobs:
       with:
         name: logs-emqx-app-tests
         path: apps/emqx/_build/test/logs
+        retention-days: 7

+ 6 - 0
.github/workflows/run_jmeter_tests.yaml

@@ -39,6 +39,7 @@ jobs:
       with:
         name: apache-jmeter.tgz
         path: /tmp/apache-jmeter.tgz
+        retention-days: 3
 
   advanced_feat:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -90,6 +91,7 @@ jobs:
       with:
         name: jmeter_logs
         path: ./jmeter_logs
+        retention-days: 3
 
   pgsql_authn_authz:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -156,6 +158,7 @@ jobs:
       with:
         name: jmeter_logs
         path: ./jmeter_logs
+        retention-days: 3
 
   mysql_authn_authz:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -215,6 +218,7 @@ jobs:
       with:
         name: jmeter_logs
         path: ./jmeter_logs
+        retention-days: 3
 
   JWT_authn:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -266,6 +270,7 @@ jobs:
       with:
         name: jmeter_logs
         path: ./jmeter_logs
+        retention-days: 3
 
   built_in_database_authn_authz:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -309,3 +314,4 @@ jobs:
       with:
         name: jmeter_logs
         path: ./jmeter_logs
+        retention-days: 3

+ 2 - 0
.github/workflows/run_relup_tests.yaml

@@ -54,6 +54,7 @@ jobs:
           _packages
           scripts
           .ci
+        retention-days: 7
 
   relup_test_run:
     needs:
@@ -117,3 +118,4 @@ jobs:
         name: debug_data
         path: |
           lux_logs
+        retention-days: 3

+ 5 - 0
.github/workflows/run_test_cases.yaml

@@ -68,6 +68,7 @@ jobs:
         with:
           name: coverdata
           path: _build/test/cover
+          retention-days: 7
 
   ct_docker:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -111,6 +112,7 @@ jobs:
         with:
           name: coverdata
           path: _build/test/cover
+          retention-days: 7
       - name: compress logs
         if: failure()
         run: tar -czf logs.tar.gz _build/test/logs
@@ -119,6 +121,7 @@ jobs:
         with:
           name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
           path: logs.tar.gz
+          retention-days: 7
 
   ct:
     runs-on: ${{ fromJSON(inputs.runner_labels) }}
@@ -156,6 +159,7 @@ jobs:
           name: coverdata
           path: _build/test/cover
           if-no-files-found: warn # do not fail if no coverdata found
+          retention-days: 7
       - name: compress logs
         if: failure()
         run: tar -czf logs.tar.gz _build/test/logs
@@ -164,6 +168,7 @@ jobs:
         with:
           name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
           path: logs.tar.gz
+          retention-days: 7
 
   tests_passed:
     needs: