From: Peter van Dijk Date: Mon, 3 Nov 2025 11:06:39 +0000 (+0100) Subject: auth-backend tests: make more diskspace on the github runner X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16409%2Fhead;p=thirdparty%2Fpdns.git auth-backend tests: make more diskspace on the github runner --- diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index aefdf80036..de5ce3a33d 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -409,7 +409,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: @@ -513,6 +513,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 a3e4fe96d2..d17a690f96 100644 --- a/tasks.py +++ b/tasks.py @@ -1487,6 +1487,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']: