From 7258f78fbf8621d7560430d11367f4142afffaad Mon Sep 17 00:00:00 2001 From: Jaroslava Fiedlerova Date: Thu, 14 Mar 2024 12:52:49 +0100 Subject: [PATCH] CI: set mem limit for docker build cache to 1h Co-authored-by: Robert Schmidt --- ci-scripts/cls_containerize.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ci-scripts/cls_containerize.py b/ci-scripts/cls_containerize.py index d37330d519..860412e9f3 100644 --- a/ci-scripts/cls_containerize.py +++ b/ci-scripts/cls_containerize.py @@ -517,9 +517,13 @@ class Containerize(): # Remove all intermediate build images and clean up cmd.run(f"{self.cli} image rm ran-build:{imageTag} ran-build-asan:{imageTag}") cmd.run(f"{self.cli} volume prune --force") - # Remove any cached artifacts: we don't use the cache for now, prevent - # out of diskspace problem - cmd.run(f"{self.cli} buildx prune --filter=until=6h --force") + + # Remove some cached artifacts to prevent out of diskspace problem + logging.debug(cmd.run("df -h").stdout) + logging.debug(cmd.run("docker system df").stdout) + cmd.run(f"{self.cli} buildx prune --filter until=1h --force") + logging.debug(cmd.run("df -h").stdout) + logging.debug(cmd.run("docker system df").stdout) # create a zip with all logs build_log_name = f'build_log_{self.testCase_id}'