From f01bedb88549f22b19e7f6ca29816736776a48ef Mon Sep 17 00:00:00 2001 From: MiroCillik Date: Fri, 10 Jul 2026 21:53:19 +0200 Subject: [PATCH] ci: free disk space before Runner Tests to avoid Docker pull failures The Runner Tests job runs on a Microsoft-hosted ubuntu-latest agent and pulls many large component images during the suite, exhausting /var/lib/docker and failing with 'no space left on device'. Reclaim the OS disk by removing the unused preinstalled toolsets (dotnet, Android SDK, Haskell, CodeQL) and pruning Docker before the tests run. Reports disk usage before/after for future tuning. --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 08526574..522df23b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,15 @@ stages: displayName: 'Runner Tests' timeoutInMinutes: 100 steps: + - script: | + echo '=== disk usage before cleanup ===' + df -h / + sudo du -sh /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/.ghcup /opt/hostedtoolcache 2>/dev/null | sort -h || true + sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/.ghcup /opt/hostedtoolcache/CodeQL + docker system prune -af || true + echo '=== disk usage after cleanup ===' + df -h / + displayName: 'Free disk space' - script: | docker compose build --pull docker compose run tests ./vendor/bin/phpunit --testsuite runner-tests