[libvirt PATCH] ci: gitlab: Expire artifacts after 1 day

Erik Skultety eskultet at redhat.com
Thu Jun 2 13:02:24 UTC 2022


With GitLab cutting down on shared resource usage it's very likely that
following our measure to decrease the number of CI minutes we'll also
need to decrease our usage of storage. Start by decreasing artifact
expiration time to 1 day for jobs that are currently exceeding it (by a
lot -> 30 days). At the same time, define expiration on the integration
jobs' artifacts where there currently isn't one defined.
Although 1 day doesn't seem to be enough of a time period, given the
cadency of libvirt pipeline executions it should suffice giving
everyone/jobs enough time to download artifacts if needed.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 .gitlab-ci.yml              | 4 ++--
 ci/integration-template.yml | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6a8b89729f..1b39047862 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,7 +74,7 @@ website:
     expose_as: 'Website'
     name: 'website'
     when: on_success
-    expire_in: 30 days
+    expire_in: 1 day
     paths:
       - website
 
@@ -115,7 +115,7 @@ potfile:
     expose_as: 'Potfile'
     name: 'potfile'
     when: on_success
-    expire_in: 30 days
+    expire_in: 1 day
     paths:
       - libvirt.pot
 
diff --git a/ci/integration-template.yml b/ci/integration-template.yml
index e2ccebd1f6..bd634a971b 100644
--- a/ci/integration-template.yml
+++ b/ci/integration-template.yml
@@ -80,6 +80,7 @@
     SCRATCH_DIR: "/tmp/scratch"
   artifacts:
     name: logs
+    expire_in: 1 day
     paths:
       - logs
     when: on_failure
-- 
2.36.1



More information about the libvir-list mailing list