From a32050a998d24c14255fb042fb97ba89de74536b Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Tue, 6 Feb 2024 17:31:14 +0100 Subject: [PATCH] Ensure the Git cache cleanup is happening according to local settings * Treat `GIT_CACHE_DIR_LIMIT` limit like `GIT_CACHE_DIR` * See 6085a1a88815735f160de07ca58dc7a21743a1c0 for details --- lib/OpenQA/Worker/Job.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenQA/Worker/Job.pm b/lib/OpenQA/Worker/Job.pm index 86f4f5746589..0d2411d8320d 100644 --- a/lib/OpenQA/Worker/Job.pm +++ b/lib/OpenQA/Worker/Job.pm @@ -237,7 +237,7 @@ sub start { # delete settings we better not allow to be set on job-level (and instead should only be set within the # worker config) my $job_settings = $self->info->{settings} // {}; - delete $job_settings->{$_} for qw(GENERAL_HW_CMD_DIR GIT_CACHE_DIR); + delete $job_settings->{$_} for qw(GENERAL_HW_CMD_DIR GIT_CACHE_DIR GIT_CACHE_DIR_LIMIT); for my $key (keys %$job_settings) { delete $job_settings->{$key} if rindex($key, 'EXTERNAL_VIDEO_ENCODER', 0) == 0; }