Files
computer-playbook/roles/test-e2e-playwright/files/dump_disk_diagnostics.sh
T
kevinveenbirkenbachandClaude Opus 4.7 b1b73bc1df refactor(lint): tighten inline-script lint to 11 lines + extract overflows
Drops `MAX_LINES` from 12 to 11 in `test_inline_script_block_size.py`,
catching the five blocks that were sitting exactly on the previous
threshold. Pure-bash blocks move to dedicated `.sh` files invoked via
`ansible.builtin.script:` or `run: bash …`; the keycloak heredoc with a
templated JSON payload splits into a `set_fact` plus a folded
`printf | kcadm … -f -` one-liner.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 22:06:32 +02:00

23 lines
723 B
Bash
Executable File

#!/usr/bin/env bash
#
# Dump host disk diagnostics before the Playwright runner starts so OOM
# / no-space failures (e.g. on GitHub-hosted runners) leave a usable
# audit trail. Invoked from
# roles/test-e2e-playwright/tasks/run_one.yml when MODE_DEBUG is true.
set -o pipefail
echo "== findmnt -T /mnt/docker =="
findmnt -T /mnt/docker || true
echo
echo "== df -h / /mnt /mnt/docker /var/lib/docker =="
df -h / /mnt /mnt/docker /var/lib/docker || true
echo
echo '== container info | grep "Docker Root Dir" =='
container info | grep "Docker Root Dir" || true
echo
echo "== du -xhd1 /usr /usr/local /usr/share /opt /mnt /var | sort -h =="
du -xhd1 /usr /usr/local /usr/share /opt /mnt /var 2>/dev/null | sort -h || true