Message ID | 20250521162441.3472273-1-ross.burton@arm.com |
---|---|
State | New |
Headers | show |
Series | CI: don't save all task logs on every build | expand |
On Wed, 21 May 2025 17:24:41 +0100, Ross Burton wrote: > We currently archive all of the task logs on every job, but this ends up > being between 2-10MB per job and our pipelines have ~100 jobs. > > To save space and time, change the log collection to only happen if the > job fails, and explicitly expire them after a week. > > This reverts meta-arm 60abe46, but in two years we've not really needed > successful logs, and they can be easily toggled back on if needed in a > branch. > > [...] Applied, thanks! [1/1] CI: don't save all task logs on every build commit: 9ee6fc270b8785642bfe68b9740c7e5d90507f93 Best regards,
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fdc3afd5..fc8023c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,7 +76,8 @@ stages: artifacts: name: "logs" - when: always + when: on_failure + expire_in: 1 week paths: - $KAS_BUILD_DIR/tmp*/work*/**/temp/log.do_*.* - $KAS_BUILD_DIR/tmp*/work*/**/testimage/*
We currently archive all of the task logs on every job, but this ends up being between 2-10MB per job and our pipelines have ~100 jobs. To save space and time, change the log collection to only happen if the job fails, and explicitly expire them after a week. This reverts meta-arm 60abe46, but in two years we've not really needed successful logs, and they can be easily toggled back on if needed in a branch. Signed-off-by: Ross Burton <ross.burton@arm.com> --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)