feat: reconcile the bucket against attachment rows in the cleaner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 19:32:08 +03:00
co-authored by Claude Opus 5.5
parent c13df14f36
commit c1648d9b83
53 changed files with 4207 additions and 205 deletions
+7 -6
View File
@@ -150,18 +150,19 @@ def stand() -> Callable[..., str]:
маркером `fault`: он только выбирает тесты (`-m fault`).
"""
def call(*args: str) -> str:
def call(*args: str, stdin: bytes = b"") -> str:
# stdin — байты: тело объекта, который hook пишет мимо API
# (`put-object`, design change track2-reconciler, решение 11)
result = subprocess.run(
[FAULT_HOOK, *args],
input=stdin,
capture_output=True,
text=True,
timeout=FAULT_HOOK_TIMEOUT_S,
check=False,
)
assert result.returncode == 0, (
f"fault hook {' '.join(args)}: {result.stderr.strip()}"
)
return result.stdout.strip()
stderr = result.stderr.decode(errors="replace").strip()
assert result.returncode == 0, f"fault hook {' '.join(args)}: {stderr}"
return result.stdout.decode().strip()
return call