diff --git a/runner/harness/abra.py b/runner/harness/abra.py index 07624e3..42f384f 100644 --- a/runner/harness/abra.py +++ b/runner/harness/abra.py @@ -188,7 +188,13 @@ def backup_create(domain: str, timeout: int = 900) -> str: def restore(domain: str, timeout: int = 900) -> None: - _run_pty(["app", "restore", domain, "-n", "-C", "-o"], timeout=timeout) + # Echo the restore output (incl. backupbot's restore.post-hook stdout/stderr, e.g. a recipe's + # pg_backup.sh reimport) into the run log. Restore is otherwise opaque: a post-hook that fails or + # silently no-ops shows up only as a downstream data-integrity assertion RED with no cause. Bounded + # tail keeps it readable. + out = _run_pty(["app", "restore", domain, "-n", "-C", "-o"], timeout=timeout).stdout or "" + tail = out[-4000:] + print(f" [restore output]\n{tail}", flush=True) def recipe_head_commit(recipe: str) -> str | None: