stackchain-dashboard/tests/test_ops_fundamentals.py
timmy 1b448fef23
All checks were successful
CI / build-release (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 3m53s
CI / browser-journey (pull_request) Successful in 6m55s
CI / release-candidate (pull_request) Has been skipped
docs: add disk capacity incident runbook (Closes #1287)
2026-08-23 01:10:16 +00:00

17 lines
571 B
Python

from pathlib import Path
RUNBOOK = Path(__file__).parents[1] / "docs" / "ops-fundamentals.md"
def test_disk_capacity_runbook_requires_safe_remediation_and_release_verification():
text = " ".join(RUNBOOK.read_text().split())
assert "Disk capacity incident" in text
assert "85%" in text
assert "df -h / /var/lib/gitea" in text
assert "disposable caches and abandoned temporary environments" in text
assert "must not delete Gitea data" in text
assert "systemctl is-active gitea act_runner" in text
assert "repository test suite" in text