From 4c56d92df51ae4fd52b59ec86fe112c47263497e Mon Sep 17 00:00:00 2001 From: phlax Date: Tue, 6 Aug 2024 20:54:44 +0100 Subject: [PATCH] ci: Fix diskspace issue when caching checks (#35599) using the CI diskspace hack Signed-off-by: Ryan Northey Signed-off-by: Martin Duke --- .azure-pipelines/ci.yml | 3 +++ .azure-pipelines/stage/checks.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.azure-pipelines/ci.yml b/.azure-pipelines/ci.yml index e73b1a5a059d7..0c407ac00ba0e 100644 --- a/.azure-pipelines/ci.yml +++ b/.azure-pipelines/ci.yml @@ -328,6 +328,9 @@ steps: else sudo chown -R azure-pipelines:azure-pipelines ${{ parameters.pathCacheTemp }}/all fi + sudo systemctl stop docker docker.socket + sudo umount /var/lib/docker + sudo rm -rf /mnt/docker displayName: "Cache/save (${{ parameters.cacheName}})" condition: and(succeeded(), ne('${{ parameters.cacheName }}', ''), ne(variables.CACHE_RESTORED, 'true')) diff --git a/.azure-pipelines/stage/checks.yml b/.azure-pipelines/stage/checks.yml index 63882b9fa1593..b4e650287a239 100644 --- a/.azure-pipelines/stage/checks.yml +++ b/.azure-pipelines/stage/checks.yml @@ -83,6 +83,7 @@ jobs: cacheName: $(CI_TARGET) envoyBuildFilterExample: $(ENVOY_FILTER_EXAMPLE) cacheTestResults: ${{ parameters.cacheTestResults }} + diskspaceHack: true managedAgent: false repoFetchDepth: $(REPO_FETCH_DEPTH) repoFetchTags: $(REPO_FETCH_TAGS)