From 334b394c3a45ac5abe3d69015ac27ba4c4f69437 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 3 Nov 2025 12:06:39 +0100 Subject: [PATCH] auth-backend tests: make more diskspace on the github runner --- .github/workflows/build-and-test-all.yml | 3 ++- tasks.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index 6de7c04642..ea424e68a7 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -408,7 +408,7 @@ jobs: LDAPHOST: ldap://ldapserver/ ODBCINI: /github/home/.odbc.ini AUTH_BACKEND_IP_ADDR: "172.17.0.1" - options: --sysctl net.ipv6.conf.all.disable_ipv6=0 + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 -v /:/hostroot strategy: matrix: include: @@ -512,6 +512,7 @@ jobs: run: | python3 -m venv ${REPO_HOME}/.venv . ${REPO_HOME}/.venv/bin/activate && pip install -r ${REPO_HOME}/meson/requirements.txt + - run: ${{ env.INV_CMD }} github-more-diskspace - run: ${{ env.INV_CMD }} install-clang-runtime - run: ${{ env.INV_CMD }} install-auth-test-deps -b ${{ matrix.backend }} - run: ${{ env.INV_CMD }} test-auth-backend -b ${{ matrix.backend }} diff --git a/tasks.py b/tasks.py index 464e1d78d4..7bfdd70a2c 100644 --- a/tasks.py +++ b/tasks.py @@ -1457,6 +1457,16 @@ RUN apt-get update && apt-get install -y {package_name}={package_version}* c.run(f'docker build . -t test-build-{product_name}-{distro_release}:latest -f /tmp/Dockerfile') +@task +def github_more_diskspace(c): + c.run('df -h / /hostroot') + for path in ['/usr/local/lib/android', + '/usr/local/.ghcup', + '/usr/share/dotnet', + '/usr/share/swift']: + c.sudo(f'rm -rf {path} /hostroot{path}') + c.run('df -h / /hostroot') + # this is run always def setup(): if '/usr/lib/ccache' not in os.environ['PATH']: -- 2.47.3